Software /
code /
prosody
Comparison
util/dependencies.lua @ 7769:2a7b52437167 0.9.12
util.dependencies: Set ssl.x509 so core.certmanager knows that LuaSec is capable of certificate validation (fixes #781)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 28 Nov 2016 14:27:59 +0100 |
parent | 7675:decb657bc0a0 |
child | 7779:b1f80447a2b1 |
child | 8223:adfffc5b4e2a |
comparison
equal
deleted
inserted
replaced
7736:5a07fe977002 | 7769:2a7b52437167 |
---|---|
100 ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/"; | 100 ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/"; |
101 }, "SSL/TLS support will not be available"); | 101 }, "SSL/TLS support will not be available"); |
102 elseif not _G.ssl then | 102 elseif not _G.ssl then |
103 _G.ssl = ssl; | 103 _G.ssl = ssl; |
104 _G.ssl.context = require "ssl.context"; | 104 _G.ssl.context = require "ssl.context"; |
105 _G.ssl.x509 = softreq "ssl.x509"; | |
105 end | 106 end |
106 | 107 |
107 local encodings, err = softreq "util.encodings" | 108 local encodings, err = softreq "util.encodings" |
108 if not encodings then | 109 if not encodings then |
109 if err:match("not found") then | 110 if err:match("not found") then |