Blame SOURCES/openssl-0.9.6-x509.patch

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