Software /
code /
verse
Changeset
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 |
parents | 383:72be3c2cf602 |
children | 385:e6bf19ad5c19 |
files | plugins/tls.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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)