The patch below fixes a bug in the objects list
where the UID object shortname is incorrectly
specified to be identical to its longname
("uniqueIdentifier"). This evidences itself,
for example, when using OBJ_sn2nid() to convert
the UID rdn of a dn (i.e., "uid=test,o=myorg")
to an object. The following two files were
modified:
crypto/objects/objects.txt
crypto/objects/obj_dat.h
This was fine in 0.9.6b, but is incorrect in
0.9.6c and 0.9.7.
Dan Lanz
Zolera Systems
==========================================
diff -ur objects.txt.orig objects.txt
--- objects.txt.orig Tue Dec 4 06:10:53 2001
+++ objects.txt Wed Feb 20 15:20:49 2002
@@ -508,7 +508,7 @@
X509 41 : name : name
X509 42 : G : givenName
X509 43 : I : initials
-X509 45 : :
uniqueIdentifier
+X509 45 : UID :
uniqueIdentifier
X509 46 : dnQualifier : dnQualifier
X509 72 : role : role
diff -ur obj_dat.h.orig obj_dat.h
--- obj_dat.h.orig Tue Dec 4 06:10:54 2001
+++ obj_dat.h Wed Feb 20 15:17:13 2002
@@ -587,7 +587,7 @@
{"G","givenName",NID_givenName,3,&(lvalues[535]),0},
{"S","surname",NID_surname,3,&(lvalues[538]),0},
{"I","initials",NID_initials,3,&(lvalues[541]),0},
-{"uniqueIdentifier","uniqueIdentifier",NID_uniqueIdentifier,3,
+{"UID","uniqueIdentifier",NID_uniqueIdentifier,3,
&(lvalues[544]),0},
{"crlDistributionPoints","X509v3 CRL Distribution Points",
NID_crl_distribution_points,3,&(lvalues[547]),0},
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]