2006-11-23 20:38:24 +00:00
|
|
|
--- openssl-0.9.8b/crypto/x509/x509_cmp.c.name-cmp 2004-12-01 02:45:30.000000000 +0100
|
2006-11-30 23:10:43 +00:00
|
|
|
+++ openssl-0.9.8b/crypto/x509/x509_cmp.c 2006-11-30 23:37:26.000000000 +0100
|
|
|
|
@@ -282,14 +282,7 @@
|
|
|
|
nb=sk_X509_NAME_ENTRY_value(b->entries,i);
|
|
|
|
j=na->value->type-nb->value->type;
|
|
|
|
if (j)
|
|
|
|
- {
|
|
|
|
- nabit = ASN1_tag2bit(na->value->type);
|
|
|
|
- nbbit = ASN1_tag2bit(nb->value->type);
|
|
|
|
- if (!(nabit & STR_TYPE_CMP) ||
|
|
|
|
- !(nbbit & STR_TYPE_CMP))
|
2006-11-23 20:38:24 +00:00
|
|
|
- return j;
|
2006-11-30 23:10:43 +00:00
|
|
|
- j = asn1_string_memcmp(na->value, nb->value);
|
|
|
|
- }
|
|
|
|
+ return j;
|
2006-11-23 20:38:24 +00:00
|
|
|
else if (na->value->type == V_ASN1_PRINTABLESTRING)
|
2006-11-30 23:10:43 +00:00
|
|
|
j=nocase_spacenorm_cmp(na->value, nb->value);
|
|
|
|
else if (na->value->type == V_ASN1_IA5STRING
|