diff options
author | nandika | 2010-08-03 08:11:07 +0000 |
---|---|---|
committer | nandika | 2010-08-03 08:11:07 +0000 |
commit | a05da7dad68d03ef8399c901d32bcbe3ac77a606 (patch) | |
tree | 7948021fbc58860f7ece621553594fe002b43c9b | |
parent | 223da89a755dc99c4e713c08e62c950cc6c02692 (diff) | |
download | axis2c-a05da7dad68d03ef8399c901d32bcbe3ac77a606.tar.gz axis2c-a05da7dad68d03ef8399c901d32bcbe3ac77a606.tar.bz2 |
code updated
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@981770 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/core/transport/http/sender/ssl/ssl_utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, \ |