summary refs log tree commit diff
diff options
context:
space:
mode:
authorLain Iwakura <lain@lainmail.xyz>2025-12-30 01:01:06 +0300
committerLain Iwakura <lain@lainmail.xyz>2025-12-30 01:01:06 +0300
commita071e36ff65b58d0084cdffe7619a78311de4847 (patch)
treecdcaaece928ec8bd6aa2acf65f322cf5c9bf2c16
parentfix(ssl): fix ssl (diff)
downloadftp-a071e36ff65b58d0084cdffe7619a78311de4847.tar.gz
ftp-a071e36ff65b58d0084cdffe7619a78311de4847.zip
fix(ssl): fix ssl fully
-rw-r--r--tls_compat.c3
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;