aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2017-09-12 17:43:36 (GMT)
committerJouni Malinen <j@w1.fi>2019-01-01 18:07:19 (GMT)
commit9805bb1bdb8dad4c58725cb25766fc7593e08098 (patch)
treeb57ea926408e60eb513d6821d0d68904f5e5f6ef /src
parenta898113823a3b76e0078764edabfac916de7e539 (diff)
downloadhostap-9805bb1bdb8dad4c58725cb25766fc7593e08098.zip
hostap-9805bb1bdb8dad4c58725cb25766fc7593e08098.tar.gz
hostap-9805bb1bdb8dad4c58725cb25766fc7593e08098.tar.bz2
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>
Diffstat (limited to 'src')
-rw-r--r--src/utils/http_curl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/http_curl.c b/src/utils/http_curl.c
index 58519ea..3fd8e42 100644
--- a/src/utils/http_curl.c
+++ b/src/utils/http_curl.c
@@ -1136,7 +1136,7 @@ static int ocsp_resp_cb(SSL *s, void *arg)
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) {
wpa_printf(MSG_DEBUG, "OpenSSL: Add issuer");
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)
{
- SSL_CTX *ssl = s->ctx;
+ SSL_CTX *ssl = SSL_get_SSL_CTX(s);
int ret;
ssl->method = real_ssl_method;