aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHu Wang <huw@qti.qualcomm.com>2017-08-23 08:40:10 (GMT)
committerJouni Malinen <j@w1.fi>2017-08-23 08:40:10 (GMT)
commita28675da2337bf4a5dde07d2a4159ea3ac0b6acd (patch)
treed1ed8f7ae63dd40d757df93f297180ffaa6308fb /src
parentcf39475b4025899f515e5bd17a18d81380083b9c (diff)
downloadhostap-a28675da2337bf4a5dde07d2a4159ea3ac0b6acd.zip
hostap-a28675da2337bf4a5dde07d2a4159ea3ac0b6acd.tar.gz
hostap-a28675da2337bf4a5dde07d2a4159ea3ac0b6acd.tar.bz2
hs20-osu-client: Fix build with new OpenSSL and BoringSSL
Use the SSL_get_SSL_CTX() helper instead of dereferencing SSL* since struct ssl_st is not exposed in public header files anymore. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src')
-rw-r--r--src/utils/http_curl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/http_curl.c b/src/utils/http_curl.c
index 735ef38..58519ea 100644
--- a/src/utils/http_curl.c
+++ b/src/utils/http_curl.c
@@ -986,7 +986,7 @@ static int curl_cb_ssl_verify(int preverify_ok, X509_STORE_CTX *x509_ctx)
ssl = X509_STORE_CTX_get_ex_data(x509_ctx,
SSL_get_ex_data_X509_STORE_CTX_idx());
- ssl_ctx = ssl->ctx;
+ ssl_ctx = SSL_get_SSL_CTX(ssl);
ctx = SSL_CTX_get_app_data(ssl_ctx);
wpa_printf(MSG_DEBUG, "curl_cb_ssl_verify, preverify_ok: %d",