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:
parent
e468e15a2b
commit
668a6fbf29
1 changed files with 3 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue