Software / code / verse
Diff
plugins/tls.lua @ 399:82ad158714e5
Merge with Zash
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 12 Jan 2016 13:14:36 +0000 |
| parent | 384:532a379acfea |
| child | 428:bde804b01f28 |
line wrap: on
line diff
--- a/plugins/tls.lua Sat Jan 09 11:03:30 2016 +0000 +++ b/plugins/tls.lua Tue Jan 12 13:14:36 2016 +0000 @@ -18,7 +18,7 @@ local function handle_tls(tls_status) if tls_status.name == "proceed" then stream:debug("Server says proceed, handshake starting..."); - stream.conn:starttls({mode="client", protocol="sslv23", options="no_sslv2"}, true); + stream.conn:starttls(stream.ssl or {mode="client", protocol="sslv23", options="no_sslv2",capath="/etc/ssl/certs"}, true); end end local function handle_status(new_status) @@ -31,6 +31,6 @@ stream:hook("stream-features", handle_features, 400); stream:hook("stream/"..xmlns_tls, handle_tls); stream:hook("status", handle_status, 400); - + return true; end