Blame SOURCES/openssl-0.9.6-x509.patch

a5ef24
Do not treat duplicate certs as an error.
a5ef24
a5ef24
--- openssl-0.9.6/crypto/x509/by_file.c	Wed Sep 27 15:09:05 2000
a5ef24
+++ openssl-0.9.6/crypto/x509/by_file.c	Wed Sep 27 14:21:20 2000
a5ef24
@@ -163,8 +163,12 @@
a5ef24
 					}
a5ef24
 				}
a5ef24
 			i=X509_STORE_add_cert(ctx->store_ctx,x);
a5ef24
-			if (!i) goto err;
a5ef24
-			count++;
a5ef24
+			/* ignore any problems with current certificate 
a5ef24
+			    and continue with the next one */
a5ef24
+			if (i)
a5ef24
+			    count++;
a5ef24
+			else
a5ef24
+			    ERR_clear_error();
a5ef24
 			X509_free(x);
a5ef24
 			x=NULL;
a5ef24
 			}
a5ef24
@@ -179,7 +183,8 @@
a5ef24
 			goto err;
a5ef24
 			}
a5ef24
 		i=X509_STORE_add_cert(ctx->store_ctx,x);
a5ef24
-		if (!i) goto err;
a5ef24
+		if (!i)
a5ef24
+		  ERR_clear_error();
a5ef24
 		ret=i;
a5ef24
 		}
a5ef24
 	else