Software / code / prosody
Comparison
net/server_event.lua @ 2639:a7f683622b35
net.server_event: Fix another instance of creating an SSL context - certmanager now does this
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sun, 14 Feb 2010 20:36:54 +0000 |
| parent | 2638:115104acdd7b |
| child | 2641:b083a667e3be |
comparison
equal
deleted
inserted
replaced
| 2638:115104acdd7b | 2639:a7f683622b35 |
|---|---|
| 743 if sslcfg then -- handle ssl/new context | 743 if sslcfg then -- handle ssl/new context |
| 744 if not ssl then | 744 if not ssl then |
| 745 debug "need luasec, but not available" | 745 debug "need luasec, but not available" |
| 746 return nil, "luasec not found" | 746 return nil, "luasec not found" |
| 747 end | 747 end |
| 748 sslctx, err = ssl.newcontext( sslcfg ) | 748 sslctx, err = sslcfg |
| 749 if err then | 749 if err then |
| 750 debug( "cannot create new ssl context:", err ) | 750 debug( "cannot create new ssl context:", err ) |
| 751 return nil, err | 751 return nil, err |
| 752 end | 752 end |
| 753 end | 753 end |