We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 262dfcf commit 4165bb7Copy full SHA for 4165bb7
src/streams/mbedtls.c
@@ -82,7 +82,11 @@ int git_mbedtls_stream_global_init(void)
82
83
/* configure TLSv1 */
84
mbedtls_ssl_conf_min_version(git__ssl_conf, MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_0);
85
- mbedtls_ssl_conf_authmode(git__ssl_conf, MBEDTLS_SSL_VERIFY_REQUIRED);
+
86
+ /* verify_server_cert is responsible for making the check.
87
+ * OPTIONAL because REQUIRED drops the certificate as soon as the check
88
+ * is made, so we can never see the certificate and override it. */
89
+ mbedtls_ssl_conf_authmode(git__ssl_conf, MBEDTLS_SSL_VERIFY_OPTIONAL);
90
91
/* set the list of allowed ciphersuites */
92
ciphers_list = calloc(GIT_SSL_DEFAULT_CIPHERS_COUNT, sizeof(int));
0 commit comments