Changeset

10454:6c3fccb75b38

mod_s2s_auth_certs: Save chain validation errors for later use
author Kim Alvefur <zash@zash.se>
date Wed, 27 Nov 2019 23:23:25 +0100
parents 10453:926d6086a95a
children 10455:698ff3610e57
files plugins/mod_s2s_auth_certs.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_s2s_auth_certs.lua	Tue Nov 26 15:29:01 2019 +0000
+++ b/plugins/mod_s2s_auth_certs.lua	Wed Nov 27 23:23:25 2019 +0100
@@ -27,6 +27,7 @@
 			log("debug", "certificate error(s) at depth %d: %s", depth-1, table.concat(t, ", "))
 		end
 		session.cert_chain_status = "invalid";
+		session.cert_chain_errors = errors;
 	else
 		log("debug", "certificate chain validation result: valid");
 		session.cert_chain_status = "valid";