diff options
| -rw-r--r-- | tls_compat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tls_compat.c b/tls_compat.c index 3a0242d..dfddc4b 100644 --- a/tls_compat.c +++ b/tls_compat.c @@ -233,6 +233,9 @@ tls_verify_hostname(tls_t ctx, const char *hostname) if (global_tls_config == NULL || global_tls_config->noverifyname) return 0; + if (global_tls_config->noverifycert) + return 0; + verify_result = SSL_get_verify_result(ctx->ssl); if (verify_result != X509_V_OK) return -1; |