Skip to content
Snippets Groups Projects
Commit 668a6fbf authored by Benjamin Ness's avatar Benjamin Ness Committed by Andy Green
Browse files

fix build problem on systems without X509_VERIFY_PARAM type

parent e468e15a
No related branches found
No related tags found
No related merge requests found
...@@ -39,10 +39,8 @@ lws_ssl_client_bio_create(struct lws *wsi) ...@@ -39,10 +39,8 @@ lws_ssl_client_bio_create(struct lws *wsi)
#else #else
struct lws_context *context = wsi->context; struct lws_context *context = wsi->context;
const char *hostname = lws_hdr_simple_ptr(wsi, _WSI_TOKEN_CLIENT_HOST); const char *hostname = lws_hdr_simple_ptr(wsi, _WSI_TOKEN_CLIENT_HOST);
X509_VERIFY_PARAM *param;
(void)hostname; (void)hostname;
(void)param;
wsi->ssl = SSL_new(wsi->vhost->ssl_client_ctx); wsi->ssl = SSL_new(wsi->vhost->ssl_client_ctx);
if (!wsi->ssl) { if (!wsi->ssl) {
...@@ -53,6 +51,9 @@ lws_ssl_client_bio_create(struct lws *wsi) ...@@ -53,6 +51,9 @@ lws_ssl_client_bio_create(struct lws *wsi)
} }
#if defined LWS_HAVE_X509_VERIFY_PARAM_set1_host #if defined LWS_HAVE_X509_VERIFY_PARAM_set1_host
X509_VERIFY_PARAM *param;
(void)param;
if (!(wsi->use_ssl & LCCSCF_SKIP_SERVER_CERT_HOSTNAME_CHECK)) { if (!(wsi->use_ssl & LCCSCF_SKIP_SERVER_CERT_HOSTNAME_CHECK)) {
param = SSL_get0_param(wsi->ssl); param = SSL_get0_param(wsi->ssl);
/* Enable automatic hostname checks */ /* Enable automatic hostname checks */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment