From: Simon Josefsson Date: Wed, 27 Dec 2006 18:20:47 +0000 (+0000) Subject: Encoded UID DN fields as DirectoryString (e.g., PrintableString), not X-Git-Tag: gnutls_1_6_1~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9e0ca3194d84bb1e341d34eabc5c630bdd3cf60b;p=thirdparty%2Fgnutls.git Encoded UID DN fields as DirectoryString (e.g., PrintableString), not as IA5String. Add IA5String as a CHOICE for DirectoryString, to deal with backwards compatibility if there are IA5String UID fields out there that were generated by older versions. Reported by Max Kellermann . --- diff --git a/lib/pkix.asn b/lib/pkix.asn index 52e6f109fd..979ff9c0ac 100644 --- a/lib/pkix.asn +++ b/lib/pkix.asn @@ -114,7 +114,11 @@ DirectoryString ::= CHOICE { printableString PrintableString (SIZE (1..MAX)), universalString UniversalString (SIZE (1..MAX)), utf8String UTF8String (SIZE (1..MAX)), - bmpString BMPString (SIZE(1..MAX)) } + bmpString BMPString (SIZE(1..MAX)), + -- IA5String is added here to handle old UID encoded as ia5String -- + -- See tests/userid/ for more information. It shouldn't be here, -- + -- so if it causes problems, considering dropping it. -- + ia5String IA5String (SIZE(1..MAX)) } id-ce-subjectAltName OBJECT IDENTIFIER ::= { id-ce 17 } @@ -1187,7 +1191,7 @@ ldap-DC ::= IA5String id-at-ldap-UID AttributeType ::= { 0 9 2342 19200300 100 1 1 } -ldap-UID ::= IA5String +ldap-UID ::= DirectoryString -- rfc3039