76 missingdep("LuaSec", { |
76 missingdep("LuaSec", { |
77 ["Debian/Ubuntu"] = "http://prosody.im/download/start#debian_and_ubuntu"; |
77 ["Debian/Ubuntu"] = "http://prosody.im/download/start#debian_and_ubuntu"; |
78 ["luarocks"] = "luarocks install luasec"; |
78 ["luarocks"] = "luarocks install luasec"; |
79 ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/"; |
79 ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/"; |
80 }, "SSL/TLS support will not be available"); |
80 }, "SSL/TLS support will not be available"); |
81 else |
|
82 local major, minor, veryminor, patched = ssl._VERSION:match("(%d+)%.(%d+)%.?(%d*)(M?)"); |
|
83 if not major or ((tonumber(major) == 0 and (tonumber(minor) or 0) <= 3 and (tonumber(veryminor) or 0) <= 2) and patched ~= "M") then |
|
84 log("error", "This version of LuaSec contains a known bug that causes disconnects, see http://prosody.im/doc/depends"); |
|
85 end |
|
86 end |
81 end |
87 |
82 |
88 local encodings, err = softreq "util.encodings" |
83 local encodings, err = softreq "util.encodings" |
89 if not encodings then |
84 if not encodings then |
90 if err:match("not found") then |
85 if err:match("not found") then |