HTTP (curl): Use SSL_get_SSL_CTX() helper
The direct ssl->ctx access are not allowed anymore in newer OpenSSL versions, so use the SSL_get_SSL_CTX() helper for this. Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
parent
a898113823
commit
9805bb1bdb
1 changed files with 2 additions and 2 deletions
|
@ -1136,7 +1136,7 @@ static int ocsp_resp_cb(SSL *s, void *arg)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
store = SSL_CTX_get_cert_store(s->ctx);
|
store = SSL_CTX_get_cert_store(SSL_get_SSL_CTX(s));
|
||||||
if (ctx->peer_issuer) {
|
if (ctx->peer_issuer) {
|
||||||
wpa_printf(MSG_DEBUG, "OpenSSL: Add issuer");
|
wpa_printf(MSG_DEBUG, "OpenSSL: Add issuer");
|
||||||
debug_dump_cert("OpenSSL: Issuer certificate",
|
debug_dump_cert("OpenSSL: Issuer certificate",
|
||||||
|
@ -1277,7 +1277,7 @@ static const SSL_METHOD *real_ssl_method;
|
||||||
|
|
||||||
static int curl_patch_ssl_new(SSL *s)
|
static int curl_patch_ssl_new(SSL *s)
|
||||||
{
|
{
|
||||||
SSL_CTX *ssl = s->ctx;
|
SSL_CTX *ssl = SSL_get_SSL_CTX(s);
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ssl->method = real_ssl_method;
|
ssl->method = real_ssl_method;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue