Mercurial > prosody-modules
comparison mod_auth_ccert/mod_auth_ccert.lua @ 1069:d7719bf1aed6
mod_auth_ccert: Add missing OID for email
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 14 Jun 2013 20:28:23 +0200 |
parents | 8ad0d234608c |
children | dee31eeae7ae |
comparison
equal
deleted
inserted
replaced
1068:8ad0d234608c | 1069:d7719bf1aed6 |
---|---|
3 -- This file is MIT/X11 licensed. | 3 -- This file is MIT/X11 licensed. |
4 | 4 |
5 local jid_compare = require "util.jid".compare; | 5 local jid_compare = require "util.jid".compare; |
6 local jid_split = require "util.jid".prepped_split; | 6 local jid_split = require "util.jid".prepped_split; |
7 local new_sasl = require "util.sasl".new; | 7 local new_sasl = require "util.sasl".new; |
8 local now = os.time; | |
8 local log = module._log; | 9 local log = module._log; |
10 | |
9 local subject_alternative_name = "2.5.29.17"; | 11 local subject_alternative_name = "2.5.29.17"; |
10 local id_on_xmppAddr = "1.3.6.1.5.5.7.8.5"; | 12 local id_on_xmppAddr = "1.3.6.1.5.5.7.8.5"; |
11 local now = os.time; | 13 local oid_emailAddress = "1.2.840.113549.1.9.1"; |
12 | 14 |
13 local cert_match = module:get_option("certificate_match", "xmppaddr"); | 15 local cert_match = module:get_option("certificate_match", "xmppaddr"); |
14 | 16 |
15 local username_extractor = {}; | 17 local username_extractor = {}; |
16 | 18 |