diff options
author | Peter Sylvester <peter.sylvester@edelweb.fr> | 2012-01-04 23:02:36 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-01-04 23:02:36 +0100 |
commit | 81524cbfa02f8882040ecf2947dcf5c8523591ca (patch) | |
tree | daecd32969c5d773b39b67c4412499963011b747 /lib/ssluse.c | |
parent | 8ef7a5706e4abaf841ee8577311ab0fde8a2ab37 (diff) | |
download | curl-81524cbfa02f8882040ecf2947dcf5c8523591ca.tar.gz |
OpenSSL: remove reference to openssl internal struct
With this change, curl compiles with the new OPENSSL_NO_SSL_INTERN
cflag. This flag might become the default in some distant future.
Diffstat (limited to 'lib/ssluse.c')
-rw-r--r-- | lib/ssluse.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c index 8deea26ae..975ab8cf6 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -1636,7 +1636,8 @@ ossl_connect_step1(struct connectdata *conn, if(data->set.str[STRING_SSL_CRLFILE]) { /* tell SSL where to find CRL file that is used to check certificate * revocation */ - lookup=X509_STORE_add_lookup(connssl->ctx->cert_store,X509_LOOKUP_file()); + lookup=X509_STORE_add_lookup(SSL_CTX_get_cert_store(connssl->ctx), + X509_LOOKUP_file()); if(!lookup || (!X509_load_crl_file(lookup,data->set.str[STRING_SSL_CRLFILE], X509_FILETYPE_PEM)) ) { @@ -1647,7 +1648,7 @@ ossl_connect_step1(struct connectdata *conn, else { /* Everything is fine. */ infof(data, "successfully load CRL file:\n"); - X509_STORE_set_flags(connssl->ctx->cert_store, + X509_STORE_set_flags(SSL_CTX_get_cert_store(connssl->ctx), X509_V_FLAG_CRL_CHECK|X509_V_FLAG_CRL_CHECK_ALL); } infof(data, |