summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2010-09-17 08:58:23 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2010-09-17 08:58:23 +0000
commit3e98b064d3346a533a6bd35d136951dd26c8da4a (patch)
tree25f3baa47a6c6b8f569b720b78e5fa92edfe88ae /legacy/ecore/src/lib
parentf3a9a92d36f545f3fb31cdef97cd669bd288ec8b (diff)
use right pointer for ssl ctx to avoid segv
SVN revision: 52362
Diffstat (limited to 'legacy/ecore/src/lib')
-rw-r--r--legacy/ecore/src/lib/ecore_con/ecore_con_ssl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/legacy/ecore/src/lib/ecore_con/ecore_con_ssl.c b/legacy/ecore/src/lib/ecore_con/ecore_con_ssl.c
index 7a74069cae..415cc6b983 100644
--- a/legacy/ecore/src/lib/ecore_con/ecore_con_ssl.c
+++ b/legacy/ecore/src/lib/ecore_con/ecore_con_ssl.c
@@ -971,9 +971,9 @@ _ecore_con_ssl_client_init_openssl(Ecore_Con_Client *cl)
971 ((cl->server->type & ECORE_CON_SSL) & ECORE_CON_LOAD_CERT) == ECORE_CON_LOAD_CERT) 971 ((cl->server->type & ECORE_CON_SSL) & ECORE_CON_LOAD_CERT) == ECORE_CON_LOAD_CERT)
972 { 972 {
973 //FIXME: just log and go on without cert if loading fails? 973 //FIXME: just log and go on without cert if loading fails?
974 if (!SSL_CTX_use_certificate(cl->server->ssl_ctx, client_cert->cert) || 974 if (!SSL_CTX_use_certificate(cl->ssl_ctx, client_cert->cert) ||
975 !SSL_CTX_use_PrivateKey(cl->server->ssl_ctx, private_key->key) || 975 !SSL_CTX_use_PrivateKey(cl->ssl_ctx, private_key->key) ||
976 !SSL_CTX_check_private_key(cl->server->ssl_ctx)) 976 !SSL_CTX_check_private_key(cl->ssl_ctx))
977 ERR( 977 ERR(
978 "ssl cert load failed: %s", ERR_reason_error_string(ERR_get_error())); 978 "ssl cert load failed: %s", ERR_reason_error_string(ERR_get_error()));
979 979