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 /docs | |
parent | 8ef7a5706e4abaf841ee8577311ab0fde8a2ab37 (diff) |
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 'docs')
-rw-r--r-- | docs/examples/curlx.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/examples/curlx.c b/docs/examples/curlx.c index 62bdfe405..89d5f407b 100644 --- a/docs/examples/curlx.c +++ b/docs/examples/curlx.c @@ -239,8 +239,7 @@ static CURLcode sslctxfun(CURL * curl, void * sslctx, void * parm) { SSL_CTX_set_cipher_list(ctx,"RC4-MD5"); SSL_CTX_set_mode(ctx, SSL_MODE_AUTO_RETRY); - X509_STORE_add_cert(ctx->cert_store,sk_X509_value(p->ca, - sk_X509_num(p->ca)-1)); + X509_STORE_add_cert(SSL_CTX_get_cert_store(ctx), sk_X509_value(p->ca, sk_X509_num(p->ca)-1)); SSL_CTX_set_verify_depth(ctx,2); |