Software / code / verse
Diff
plugins/tls.lua @ 384:532a379acfea
plugins.tls: Allow configuring TLS options at stream.ssl
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 17 May 2015 14:59:28 +0200 |
| parent | 380:0891b4e27766 |
| child | 428:bde804b01f28 |
line wrap: on
line diff
--- a/plugins/tls.lua Tue May 05 01:10:33 2015 +0200 +++ b/plugins/tls.lua Sun May 17 14:59:28 2015 +0200 @@ -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)