18 -- [LDAP] - http://tools.ietf.org/html/rfc4519 |
18 -- [LDAP] - http://tools.ietf.org/html/rfc4519 |
19 -- [PKIX] - http://tools.ietf.org/html/rfc5280 |
19 -- [PKIX] - http://tools.ietf.org/html/rfc5280 |
20 |
20 |
21 local nameprep = require "util.encodings".stringprep.nameprep; |
21 local nameprep = require "util.encodings".stringprep.nameprep; |
22 local idna_to_ascii = require "util.encodings".idna.to_ascii; |
22 local idna_to_ascii = require "util.encodings".idna.to_ascii; |
23 local log = require "util.logger".init("certverification"); |
23 local log = require "util.logger".init("x509"); |
24 |
24 |
25 module "certverification" |
25 module "x509" |
26 |
26 |
27 local oid_commonname = "2.5.4.3"; -- [LDAP] 2.3 |
27 local oid_commonname = "2.5.4.3"; -- [LDAP] 2.3 |
28 local oid_subjectaltname = "2.5.29.17"; -- [PKIX] 4.2.1.6 |
28 local oid_subjectaltname = "2.5.29.17"; -- [PKIX] 4.2.1.6 |
29 local oid_xmppaddr = "1.3.6.1.5.5.7.8.5"; -- [XMPP-CORE] |
29 local oid_xmppaddr = "1.3.6.1.5.5.7.8.5"; -- [XMPP-CORE] |
30 local oid_dnssrv = "1.3.6.1.5.5.7.8.7"; -- [SRV-ID] |
30 local oid_dnssrv = "1.3.6.1.5.5.7.8.7"; -- [SRV-ID] |