Changeset

1068:8ad0d234608c

mod_auth_ccert: Pass the session username-outfigurer function too
author Kim Alvefur <zash@zash.se>
date Fri, 14 Jun 2013 20:27:58 +0200
parents 1067:8649f78b1dde
children 1069:d7719bf1aed6
files mod_auth_ccert/mod_auth_ccert.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mod_auth_ccert/mod_auth_ccert.lua	Fri Jun 14 20:22:17 2013 +0200
+++ b/mod_auth_ccert/mod_auth_ccert.lua	Fri Jun 14 20:27:58 2013 +0200
@@ -12,9 +12,9 @@
 
 local cert_match = module:get_option("certificate_match", "xmppaddr");
 
-local username_extractor = {}
+local username_extractor = {};
 
-function username_extractor.xmppaddr(cert, authz)
+function username_extractor.xmppaddr(cert, authz, session)
 	local extensions = cert:extensions();
 	local SANs = extensions[subject_alternative_name];
 	local xmppAddrs = SANs and SANs[id_on_xmppAddr];
@@ -84,7 +84,7 @@
 				return nil, false;
 			end
 
-			return find_username(cert, authz);
+			return find_username(cert, authz, session);
 		end
 	});
 end