aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Aurich <paul@darkrain42.org>2010-12-06 21:46:50 -0800
committerPaul Aurich <paul@darkrain42.org>2010-12-06 21:46:50 -0800
commit722b1b2a3da73111a2d7936f915eaa717343bce5 (patch)
tree7041b8de4fad2f3f54da65c5b3898156a5609600
parent29aaf682576bd34395a56b1a488f08946fcf6b7e (diff)
downloadprosody-722b1b2a3da73111a2d7936f915eaa717343bce5.tar.gz
prosody-722b1b2a3da73111a2d7936f915eaa717343bce5.zip
s2smanager: Update to newer luasec
-rw-r--r--core/s2smanager.lua6
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