mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Move ssl_set_fallback() to work on conf
Initially thought it would be per-connection, but since max_version is in conf too, and you need to lower that for a fallback connection, the fallback flag should be in the same place
This commit is contained in:
@ -5569,9 +5569,9 @@ int mbedtls_ssl_set_min_version( mbedtls_ssl_config *conf, int major, int minor
|
||||
}
|
||||
|
||||
#if defined(MBEDTLS_SSL_FALLBACK_SCSV) && defined(MBEDTLS_SSL_CLI_C)
|
||||
void mbedtls_ssl_set_fallback( mbedtls_ssl_context *ssl, char fallback )
|
||||
void mbedtls_ssl_set_fallback( mbedtls_ssl_config *conf, char fallback )
|
||||
{
|
||||
ssl->fallback = fallback;
|
||||
conf->fallback = fallback;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user