From a05da7dad68d03ef8399c901d32bcbe3ac77a606 Mon Sep 17 00:00:00 2001 From: nandika Date: Tue, 3 Aug 2010 08:11:07 +0000 Subject: code updated git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@981770 13f79535-47bb-0310-9956-ffa450edef68 --- src/core/transport/http/sender/ssl/ssl_utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/transport/http/sender/ssl/ssl_utils.c b/src/core/transport/http/sender/ssl/ssl_utils.c index 33ff2b6..01fe993 100644 --- a/src/core/transport/http/sender/ssl/ssl_utils.c +++ b/src/core/transport/http/sender/ssl/ssl_utils.c @@ -56,6 +56,7 @@ axis2_ssl_utils_initialize_ctx( /* Global system initialization */ SSL_library_init(); SSL_load_error_strings(); + OpenSSL_add_all_algorithms(); /* An error write context */ bio_err = BIO_new_fp(stderr, BIO_NOCLOSE); @@ -106,7 +107,7 @@ key file %s and server cert %s", key_file, server_cert); } /* Load the CAs we trust */ - if (!(SSL_CTX_load_verify_locations(ctx, ca_file, 0))) + if (!(SSL_CTX_load_verify_locations(ctx, ca_file, 0) || (!SSL_CTX_set_default_verify_paths(ctx)))) { AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "[ssl client] Loading CA certificate failed, \ -- cgit v1.1-32-gdbae