forked from rpms/openssl
19 lines
675 B
Diff
19 lines
675 B
Diff
--- openssl-0.9.8b/crypto/x509/x509_cmp.c.name-cmp 2004-12-01 02:45:30.000000000 +0100
|
|
+++ 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))
|
|
- return j;
|
|
- j = asn1_string_memcmp(na->value, nb->value);
|
|
- }
|
|
+ return j;
|
|
else if (na->value->type == V_ASN1_PRINTABLESTRING)
|
|
j=nocase_spacenorm_cmp(na->value, nb->value);
|
|
else if (na->value->type == V_ASN1_IA5STRING
|