From: Jared Bents <jared.bents@xxxxxxxxxxxxxxxxxxx> Update to use ctx cert_store functions instead of directly using the struct to work with versions of openssl that made the struct internal only. Signed-off-by: Jared Bents <jared.bents@xxxxxxxxxxxxxxxxxxx> --- src/crypto/tls_openssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crypto/tls_openssl.c b/src/crypto/tls_openssl.c index b3cbc952b..62591c05e 100644 --- a/src/crypto/tls_openssl.c +++ b/src/crypto/tls_openssl.c @@ -1538,8 +1538,8 @@ struct tls_connection * tls_connection_init(void *ssl_ctx) } else { /*Free old store */ if (data->old_x509_store) X509_STORE_free(data->old_x509_store); - data->old_x509_store = ssl->cert_store; - ssl->cert_store = new_cert_store; + data->old_x509_store = SSL_CTX_get_cert_store(ssl); + SSL_CTX_set_cert_store(ssl, new_cert_store); data->crl_last_reload = now.sec; } } -- 2.18.0 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap