Blame SOURCES/openssl-0.9.6-x509.patch

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