Fix compiler warning for OpenSSL without HAVE_OCSP
Commit 080585c01a
added ssl_ctx outside
ifdef HAVE_OCSP block that was the only user for this.
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
68d628accd
commit
81cbc046fe
1 changed files with 1 additions and 1 deletions
|
@ -3060,7 +3060,6 @@ int tls_connection_set_params(void *tls_ctx, struct tls_connection *conn,
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
unsigned long err;
|
unsigned long err;
|
||||||
SSL_CTX *ssl_ctx = tls_ctx;
|
|
||||||
|
|
||||||
if (conn == NULL)
|
if (conn == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -3133,6 +3132,7 @@ int tls_connection_set_params(void *tls_ctx, struct tls_connection *conn,
|
||||||
|
|
||||||
#ifdef HAVE_OCSP
|
#ifdef HAVE_OCSP
|
||||||
if (params->flags & TLS_CONN_REQUEST_OCSP) {
|
if (params->flags & TLS_CONN_REQUEST_OCSP) {
|
||||||
|
SSL_CTX *ssl_ctx = tls_ctx;
|
||||||
SSL_set_tlsext_status_type(conn->ssl, TLSEXT_STATUSTYPE_ocsp);
|
SSL_set_tlsext_status_type(conn->ssl, TLSEXT_STATUSTYPE_ocsp);
|
||||||
SSL_CTX_set_tlsext_status_cb(ssl_ctx, ocsp_resp_cb);
|
SSL_CTX_set_tlsext_status_cb(ssl_ctx, ocsp_resp_cb);
|
||||||
SSL_CTX_set_tlsext_status_arg(ssl_ctx, conn);
|
SSL_CTX_set_tlsext_status_arg(ssl_ctx, conn);
|
||||||
|
|
Loading…
Reference in a new issue