]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hs20-osu-client: Fix build with new OpenSSL and BoringSSL
authorHu Wang <huw@qti.qualcomm.com>
Wed, 23 Aug 2017 08:40:10 +0000 (11:40 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 23 Aug 2017 08:40:10 +0000 (11:40 +0300)
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>
src/utils/http_curl.c

index 735ef382d47c3a2667c07d86010c96558ccd9199..58519ea8d2489362d756ba03c9edf1cbbb9685b3 100644 (file)
@@ -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",