Blame SOURCES/openssl-fips-0.9.8e-default-paths.patch

5820f5
diff -up openssl-fips-0.9.8e/apps/s_client.c.default-paths openssl-fips-0.9.8e/apps/s_client.c
5820f5
--- openssl-fips-0.9.8e/apps/s_client.c.default-paths	2008-09-06 12:17:46.000000000 +0200
5820f5
+++ openssl-fips-0.9.8e/apps/s_client.c	2008-09-06 12:17:46.000000000 +0200
5820f5
@@ -610,12 +610,13 @@ bad:
5820f5
 	if (!set_cert_key_stuff(ctx,cert,key))
5820f5
 		goto end;
5820f5
 
5820f5
-	if ((!SSL_CTX_load_verify_locations(ctx,CAfile,CApath)) ||
5820f5
-		(!SSL_CTX_set_default_verify_paths(ctx)))
5820f5
+	if (!SSL_CTX_load_verify_locations(ctx,CAfile,CApath))
5820f5
+		{
5820f5
+		ERR_print_errors(bio_err);
5820f5
+		}
5820f5
+	if (!SSL_CTX_set_default_verify_paths(ctx))
5820f5
 		{
5820f5
-		/* BIO_printf(bio_err,"error setting default verify locations\n"); */
5820f5
 		ERR_print_errors(bio_err);
5820f5
-		/* goto end; */
5820f5
 		}
5820f5
 
5820f5
 	store = SSL_CTX_get_cert_store(ctx);
5820f5
diff -up openssl-fips-0.9.8e/apps/s_server.c.default-paths openssl-fips-0.9.8e/apps/s_server.c
5820f5
--- openssl-fips-0.9.8e/apps/s_server.c.default-paths	2008-09-06 12:17:46.000000000 +0200
5820f5
+++ openssl-fips-0.9.8e/apps/s_server.c	2008-09-06 12:17:46.000000000 +0200
5820f5
@@ -956,12 +956,13 @@ bad:
5820f5
 		}
5820f5
 #endif
5820f5
 
5820f5
-	if ((!SSL_CTX_load_verify_locations(ctx,CAfile,CApath)) ||
5820f5
-		(!SSL_CTX_set_default_verify_paths(ctx)))
5820f5
+	if (!SSL_CTX_load_verify_locations(ctx,CAfile,CApath))
5820f5
+		{
5820f5
+		ERR_print_errors(bio_err);
5820f5
+		}
5820f5
+	if (!SSL_CTX_set_default_verify_paths(ctx))
5820f5
 		{
5820f5
-		/* BIO_printf(bio_err,"X509_load_verify_locations\n"); */
5820f5
 		ERR_print_errors(bio_err);
5820f5
-		/* goto end; */
5820f5
 		}
5820f5
 	store = SSL_CTX_get_cert_store(ctx);
5820f5
 	X509_STORE_set_flags(store, vflags);
5820f5
diff -up openssl-fips-0.9.8e/apps/s_time.c.default-paths openssl-fips-0.9.8e/apps/s_time.c
5820f5
--- openssl-fips-0.9.8e/apps/s_time.c.default-paths	2003-12-27 15:40:17.000000000 +0100
5820f5
+++ openssl-fips-0.9.8e/apps/s_time.c	2008-09-06 12:17:46.000000000 +0200
5820f5
@@ -476,12 +476,13 @@ int MAIN(int argc, char **argv)
5820f5
 
5820f5
 	SSL_load_error_strings();
5820f5
 
5820f5
-	if ((!SSL_CTX_load_verify_locations(tm_ctx,CAfile,CApath)) ||
5820f5
-		(!SSL_CTX_set_default_verify_paths(tm_ctx)))
5820f5
+	if (!SSL_CTX_load_verify_locations(tm_ctx,CAfile,CApath))
5820f5
+		{
5820f5
+		ERR_print_errors(bio_err);
5820f5
+		}
5820f5
+	if (!SSL_CTX_set_default_verify_paths(tm_ctx))
5820f5
 		{
5820f5
-		/* BIO_printf(bio_err,"error setting default verify locations\n"); */
5820f5
 		ERR_print_errors(bio_err);
5820f5
-		/* goto end; */
5820f5
 		}
5820f5
 
5820f5
 	if (tm_cipher == NULL)