1 |
wellsi |
1.1 |
--- openssl-0.9.8b/crypto/x509/x509_cmp.c.name-cmp 2004-12-01 02:45:30.000000000 +0100 |
2 |
|
|
+++ openssl-0.9.8b/crypto/x509/x509_cmp.c 2006-11-30 23:37:26.000000000 +0100 |
3 |
|
|
@@ -282,14 +282,7 @@ |
4 |
|
|
nb=sk_X509_NAME_ENTRY_value(b->entries,i); |
5 |
|
|
j=na->value->type-nb->value->type; |
6 |
|
|
if (j) |
7 |
|
|
- { |
8 |
|
|
- nabit = ASN1_tag2bit(na->value->type); |
9 |
|
|
- nbbit = ASN1_tag2bit(nb->value->type); |
10 |
|
|
- if (!(nabit & STR_TYPE_CMP) || |
11 |
|
|
- !(nbbit & STR_TYPE_CMP)) |
12 |
|
|
- return j; |
13 |
|
|
- j = asn1_string_memcmp(na->value, nb->value); |
14 |
|
|
- } |
15 |
|
|
+ return j; |
16 |
|
|
else if (na->value->type == V_ASN1_PRINTABLESTRING) |
17 |
|
|
j=nocase_spacenorm_cmp(na->value, nb->value); |
18 |
|
|
else if (na->value->type == V_ASN1_IA5STRING |