mirror of
https://github.com/espressif/mbedtls.git
synced 2026-09-04 17:39:55 +00:00
Merge branch 'development-restricted' into merge-from-restricted
* development-restricted: Add missing credit for set_hostname issue Add changelog entry for TLS 1.2 Finished fix TLS1.2: Check for failures in Finished calculation ssl_session_reset: preserve HOSTNAME_SET flag Document the need to call mbedtls_ssl_set_hostname Improve documentation of mbedtls_ssl_set_hostname Changelog entries for requiring mbedls_ssl_set_hostname() in TLS clients Add a note about calling mbedtls_ssl_set_hostname to mbedtls_ssl_setup mbedtls_ssl_set_hostname tests: add tests with CA callback Call mbedtls_ssl_set_hostname in the generic endpoint setup in unit tests Require calling mbedtls_ssl_set_hostname() for security Create error code for mbedtls_ssl_set_hostname not called Keep track of whether mbedtls_ssl_set_hostname() has been called Access ssl->hostname through abstractions in certificate verification mbedtls_ssl_set_hostname tests: baseline Add a flags field to mbedtls_ssl_context Automate MBEDTLS_X509_TRUSTED_CERTIFICATE_CALLBACK dependency Make guards more consistent between X.509-has-certs and SSL-has-certs Fix Doxygen markup Make ticket_alpn field private Conflicts: programs/ssl/ssl_test_common_source.c
This commit is contained in:
@@ -863,6 +863,10 @@ int mbedtls_test_ssl_endpoint_init(
|
||||
ret = mbedtls_ssl_setup(&(ep->ssl), &(ep->conf));
|
||||
TEST_ASSERT(ret == 0);
|
||||
|
||||
if (MBEDTLS_SSL_IS_CLIENT == endpoint_type) {
|
||||
ret = mbedtls_ssl_set_hostname(&(ep->ssl), "localhost");
|
||||
}
|
||||
|
||||
#if defined(MBEDTLS_SSL_PROTO_DTLS) && defined(MBEDTLS_SSL_SRV_C)
|
||||
if (endpoint_type == MBEDTLS_SSL_IS_SERVER && dtls_context != NULL) {
|
||||
mbedtls_ssl_conf_dtls_cookies(&(ep->conf), NULL, NULL, NULL);
|
||||
|
||||
Reference in New Issue
Block a user