diff options
Diffstat (limited to 'src/pluto/x509.c')
-rw-r--r-- | src/pluto/x509.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pluto/x509.c b/src/pluto/x509.c index 0953f18f5..b019f42c3 100644 --- a/src/pluto/x509.c +++ b/src/pluto/x509.c @@ -845,7 +845,7 @@ bool same_dn(chunk_t a, chunk_t b) /* printableStrings and email RDNs require uppercase comparison */ if (type_a == type_b && (type_a == ASN1_PRINTABLESTRING || - (type_a == ASN1_IA5STRING && asn1_known_oid(oid_a) == OID_PKCS9_EMAIL))) + (type_a == ASN1_IA5STRING && asn1_known_oid(oid_a) == OID_EMAIL_ADDRESS))) { if (strncasecmp(value_a.ptr, value_b.ptr, value_b.len) != 0) { @@ -923,7 +923,7 @@ bool match_dn(chunk_t a, chunk_t b, int *wildcards) /* printableStrings and email RDNs require uppercase comparison */ if (type_a == type_b && (type_a == ASN1_PRINTABLESTRING || - (type_a == ASN1_IA5STRING && asn1_known_oid(oid_a) == OID_PKCS9_EMAIL))) + (type_a == ASN1_IA5STRING && asn1_known_oid(oid_a) == OID_EMAIL_ADDRESS))) { if (strncasecmp(value_a.ptr, value_b.ptr, value_b.len) != 0) { |