diff options
author | nandika | 2011-09-03 08:37:52 +0000 |
---|---|---|
committer | nandika | 2011-09-03 08:37:52 +0000 |
commit | 7bf2ba12647b1669cf2984c70ddccf33092cae5c (patch) | |
tree | fdf11010ff1fc5d35cfa48d41d7ae76effc0fdbb /src/core | |
parent | 2925ecad814c419679f963ac50fb90e36bf5951a (diff) | |
download | axis2c-7bf2ba12647b1669cf2984c70ddccf33092cae5c.tar.gz axis2c-7bf2ba12647b1669cf2984c70ddccf33092cae5c.tar.bz2 |
fixing the build issue with SSL
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@1164835 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/transport/http/sender/ssl/ssl_utils.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core/transport/http/sender/ssl/ssl_utils.c b/src/core/transport/http/sender/ssl/ssl_utils.c index 603eac5..ad0ac3c 100644 --- a/src/core/transport/http/sender/ssl/ssl_utils.c +++ b/src/core/transport/http/sender/ssl/ssl_utils.c @@ -42,7 +42,7 @@ axis2_ssl_utils_initialize_ctx( { SSL_CTX *ctx = NULL; axis2_char_t *ca_file = server_cert; - + SSL_METHOD *meth; if (!ca_file) { AXIS2_LOG_INFO(env->log, "[ssl client] CA certificate not specified"); @@ -63,9 +63,12 @@ axis2_ssl_utils_initialize_ctx( /* Create our context */ # if defined OPENSSL_VERSION_NUMBER && (OPENSSL_VERSION_NUMBER >= 0x1000000fL) - const SSL_METHOD *meth = SSLv23_method(); + + meth = SSLv23_method(); # else - SSL_METHOD *meth = SSLv23_method(); + + meth = SSLv23_method(); + # endif ctx = SSL_CTX_new(meth); |