]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Encoded UID DN fields as DirectoryString (e.g., PrintableString), not
authorSimon Josefsson <simon@josefsson.org>
Wed, 27 Dec 2006 18:20:47 +0000 (18:20 +0000)
committerSimon Josefsson <simon@josefsson.org>
Wed, 27 Dec 2006 18:20:47 +0000 (18:20 +0000)
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 <max@duempel.org>.

lib/pkix.asn

index 52e6f109fdd4cd6efc8982b08d6aa104a2a12343..979ff9c0ac3e32d01e9909502f12a1dbbb2ba0e8 100644 (file)
@@ -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