diff options
author | Paul Aurich <paul@darkrain42.org> | 2010-12-06 21:46:50 -0800 |
---|---|---|
committer | Paul Aurich <paul@darkrain42.org> | 2010-12-06 21:46:50 -0800 |
commit | 2fa9066d4206ad09ca74422d62d0096bbb39f8cf (patch) | |
tree | 7041b8de4fad2f3f54da65c5b3898156a5609600 | |
parent | ac0119be7a923cf4e3f3eb2e14b158eae3c8c22a (diff) | |
download | prosody-2fa9066d4206ad09ca74422d62d0096bbb39f8cf.tar.gz prosody-2fa9066d4206ad09ca74422d62d0096bbb39f8cf.zip |
s2smanager: Update to newer luasec
-rw-r--r-- | core/s2smanager.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua index c87540e4..974b2f4f 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -401,11 +401,13 @@ local function check_cert_status(session) end if cert then - local chain_valid, err = conn:getpeerchainvalid() + local chain_valid, errors = conn:getpeerverification() + -- Is there any interest in printing out all/the number of errors here? if not chain_valid then + (session.log or log)("debug", "certificate chain validation result: invalid"); session.cert_chain_status = "invalid"; - (session.log or log)("debug", "certificate chain validation result: %s", err); else + (session.log or log)("debug", "certificate chain validation result: valid"); session.cert_chain_status = "valid"; local host = session.direction == "incoming" and session.from_host or session.to_host |