File tree 2 files changed +22
-0
lines changed
2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -1273,4 +1273,11 @@ menu "mbedTLS"
1273
1273
which is added through vfs component for ESP32 based targets or by
1274
1274
the host system when the target is Linux.
1275
1275
1276
+ config MBEDTLS_ALLOW_WEAK_CERTIFICATE_VERIFICATION
1277
+ bool "Allow weak certificate verification"
1278
+ default n
1279
+ help
1280
+ This options allows weak certificate verification by skipping the hostname verification.
1281
+ It is not recommended to use this option.
1282
+
1276
1283
endmenu # mbedTLS
Original file line number Diff line number Diff line change 2117
2117
#undef MBEDTLS_ERROR_C
2118
2118
#endif
2119
2119
2120
+ /**
2121
+ * \def MBEDTLS_SSL_CLI_ALLOW_WEAK_CERTIFICATE_VERIFICATION_WITHOUT_HOSTNAME
2122
+ *
2123
+ * Caller: library/ssl_tls.c
2124
+ *
2125
+ * Allow weak certificate verification without a hostname.
2126
+ * This option is not recommended for production use.
2127
+ */
2128
+
2129
+ #if CONFIG_MBEDTLS_ALLOW_WEAK_CERTIFICATE_VERIFICATION
2130
+ #define MBEDTLS_SSL_CLI_ALLOW_WEAK_CERTIFICATE_VERIFICATION_WITHOUT_HOSTNAME
2131
+ #else
2132
+ #undef MBEDTLS_SSL_CLI_ALLOW_WEAK_CERTIFICATE_VERIFICATION_WITHOUT_HOSTNAME
2133
+ #endif
2134
+
2120
2135
/**
2121
2136
* \def MBEDTLS_GCM_C
2122
2137
*
You can’t perform that action at this time.
0 commit comments