mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-03 20:54:00 +00:00
Use rarely used conf function to cover them
This commit is contained in:
parent
66dc5555f0
commit
0de074fbc1
@ -6649,8 +6649,10 @@ int mbedtls_ssl_config_defaults( mbedtls_ssl_config *conf,
|
|||||||
int ret;
|
int ret;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
conf->endpoint = endpoint;
|
/* Use the functions here so that they are covered in tests,
|
||||||
conf->transport = transport;
|
* but otherwise access member directly for efficiency */
|
||||||
|
mbedtls_ssl_conf_endpoint( conf, endpoint );
|
||||||
|
mbedtls_ssl_conf_transport( conf, transport );
|
||||||
|
|
||||||
conf->min_major_ver = MBEDTLS_SSL_MAJOR_VERSION_3;
|
conf->min_major_ver = MBEDTLS_SSL_MAJOR_VERSION_3;
|
||||||
conf->min_minor_ver = MBEDTLS_SSL_MINOR_VERSION_1; /* TLS 1.0 */
|
conf->min_minor_ver = MBEDTLS_SSL_MINOR_VERSION_1; /* TLS 1.0 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user