aabbc9
diff -up openssl-1.0.0-beta4/apps/s_client.c.default-paths openssl-1.0.0-beta4/apps/s_client.c
aabbc9
--- openssl-1.0.0-beta4/apps/s_client.c.default-paths	2009-08-12 15:21:26.000000000 +0200
aabbc9
+++ openssl-1.0.0-beta4/apps/s_client.c	2009-11-12 12:26:32.000000000 +0100
aabbc9
@@ -889,12 +889,13 @@ bad:
2ccfa6
 	if (!set_cert_key_stuff(ctx,cert,key))
2ccfa6
 		goto end;
2ccfa6
 
2ccfa6
-	if ((!SSL_CTX_load_verify_locations(ctx,CAfile,CApath)) ||
2ccfa6
-		(!SSL_CTX_set_default_verify_paths(ctx)))
2ccfa6
+	if (!SSL_CTX_load_verify_locations(ctx,CAfile,CApath))
2ccfa6
+		{
2ccfa6
+		ERR_print_errors(bio_err);
2ccfa6
+		}
2ccfa6
+	if (!SSL_CTX_set_default_verify_paths(ctx))
2ccfa6
 		{
2ccfa6
-		/* BIO_printf(bio_err,"error setting default verify locations\n"); */
2ccfa6
 		ERR_print_errors(bio_err);
2ccfa6
-		/* goto end; */
2ccfa6
 		}
2ccfa6
 
2ccfa6
 #ifndef OPENSSL_NO_TLSEXT
aabbc9
diff -up openssl-1.0.0-beta4/apps/s_server.c.default-paths openssl-1.0.0-beta4/apps/s_server.c
aabbc9
--- openssl-1.0.0-beta4/apps/s_server.c.default-paths	2009-10-28 18:49:37.000000000 +0100
aabbc9
+++ openssl-1.0.0-beta4/apps/s_server.c	2009-11-12 12:31:23.000000000 +0100
aabbc9
@@ -1408,12 +1408,13 @@ bad:
d8cd5c
 		}
d8cd5c
 #endif
d8cd5c
 
d8cd5c
-	if ((!SSL_CTX_load_verify_locations(ctx,CAfile,CApath)) ||
d8cd5c
-		(!SSL_CTX_set_default_verify_paths(ctx)))
d8cd5c
+	if (!SSL_CTX_load_verify_locations(ctx,CAfile,CApath))
d8cd5c
+		{
d8cd5c
+		ERR_print_errors(bio_err);
d8cd5c
+		}
d8cd5c
+	if (!SSL_CTX_set_default_verify_paths(ctx))
d8cd5c
 		{
d8cd5c
-		/* BIO_printf(bio_err,"X509_load_verify_locations\n"); */
d8cd5c
 		ERR_print_errors(bio_err);
d8cd5c
-		/* goto end; */
d8cd5c
 		}
2ccfa6
 	if (vpm)
2ccfa6
 		SSL_CTX_set1_param(ctx, vpm);
aabbc9
@@ -1465,8 +1466,11 @@ bad:
aabbc9
 		else
aabbc9
 			SSL_CTX_sess_set_cache_size(ctx2,128);
d8cd5c
 
d8cd5c
-		if ((!SSL_CTX_load_verify_locations(ctx2,CAfile,CApath)) ||
d8cd5c
-			(!SSL_CTX_set_default_verify_paths(ctx2)))
d8cd5c
+		if (!SSL_CTX_load_verify_locations(ctx2,CAfile,CApath))
d8cd5c
+			{
d8cd5c
+			ERR_print_errors(bio_err);
d8cd5c
+			}
d8cd5c
+		if (!SSL_CTX_set_default_verify_paths(ctx2))
d8cd5c
 			{
d8cd5c
 			ERR_print_errors(bio_err);
d8cd5c
 			}
aabbc9
diff -up openssl-1.0.0-beta4/apps/s_time.c.default-paths openssl-1.0.0-beta4/apps/s_time.c
aabbc9
--- openssl-1.0.0-beta4/apps/s_time.c.default-paths	2006-04-17 14:22:13.000000000 +0200
aabbc9
+++ openssl-1.0.0-beta4/apps/s_time.c	2009-11-12 12:26:32.000000000 +0100
2ccfa6
@@ -373,12 +373,13 @@ int MAIN(int argc, char **argv)
d8cd5c
 
d8cd5c
 	SSL_load_error_strings();
d8cd5c
 
d8cd5c
-	if ((!SSL_CTX_load_verify_locations(tm_ctx,CAfile,CApath)) ||
d8cd5c
-		(!SSL_CTX_set_default_verify_paths(tm_ctx)))
d8cd5c
+	if (!SSL_CTX_load_verify_locations(tm_ctx,CAfile,CApath))
d8cd5c
+		{
d8cd5c
+		ERR_print_errors(bio_err);
d8cd5c
+		}
d8cd5c
+	if (!SSL_CTX_set_default_verify_paths(tm_ctx))
d8cd5c
 		{
d8cd5c
-		/* BIO_printf(bio_err,"error setting default verify locations\n"); */
d8cd5c
 		ERR_print_errors(bio_err);
d8cd5c
-		/* goto end; */
d8cd5c
 		}
d8cd5c
 
d8cd5c
 	if (tm_cipher == NULL)