1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

fix build problem on systems without X509_VERIFY_PARAM type

This commit is contained in:
Benjamin Ness 2016-09-26 14:18:16 -05:00 committed by Andy Green
parent e468e15a2b
commit 668a6fbf29

View file

@ -39,10 +39,8 @@ lws_ssl_client_bio_create(struct lws *wsi)
#else
struct lws_context *context = wsi->context;
const char *hostname = lws_hdr_simple_ptr(wsi, _WSI_TOKEN_CLIENT_HOST);
X509_VERIFY_PARAM *param;
(void)hostname;
(void)param;
wsi->ssl = SSL_new(wsi->vhost->ssl_client_ctx);
if (!wsi->ssl) {
@ -53,6 +51,9 @@ lws_ssl_client_bio_create(struct lws *wsi)
}
#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)) {
param = SSL_get0_param(wsi->ssl);
/* Enable automatic hostname checks */