diff options
Diffstat (limited to 'aclk/aclk_lws_https_client.c')
-rw-r--r-- | aclk/aclk_lws_https_client.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/aclk/aclk_lws_https_client.c b/aclk/aclk_lws_https_client.c index cd17625232..018aee259c 100644 --- a/aclk/aclk_lws_https_client.c +++ b/aclk/aclk_lws_https_client.c @@ -193,6 +193,10 @@ int aclk_send_https_request(char *method, char *host, char *port, char *url, cha #else i.ssl_connection = LCCSCF_USE_SSL; #endif +#if defined(HAVE_X509_VERIFY_PARAM_set1_host) && HAVE_X509_VERIFY_PARAM_set1_host == 0 +#warning DISABLING SSL HOSTNAME VALIDATION BECAUSE IT IS NOT AVAILABLE ON THIS SYSTEM. + i.ssl_connection |= LCCSCF_SKIP_SERVER_CERT_HOSTNAME_CHECK; +#endif i.port = atoi(port); i.address = host; |