Mostly working, but not complete, port of openssl
[fedora-mingw.git] / openssl / openssl-0.9.8b-x509-name-cmp.patch
diff --git a/openssl/openssl-0.9.8b-x509-name-cmp.patch b/openssl/openssl-0.9.8b-x509-name-cmp.patch
new file mode 100644 (file)
index 0000000..c7e8848
--- /dev/null
@@ -0,0 +1,18 @@
+--- 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