mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Add ssl_set_arc4_support()
Rationale: if people want to disable RC4 but otherwise keep the default suite list, it was cumbersome. Also, since it uses a global array, ssl_list_ciphersuite() is not a convenient place. So the SSL modules look like the best place, even if it means temporarily adding one SSL setting.
This commit is contained in:
parent
448ea506bf
commit
bd47a58221
9 changed files with 114 additions and 15 deletions
|
|
@ -3977,6 +3977,11 @@ void ssl_set_min_version( ssl_context *ssl, int major, int minor )
|
|||
}
|
||||
}
|
||||
|
||||
void ssl_set_arc4_support( ssl_context *ssl, char arc4 )
|
||||
{
|
||||
ssl->arc4_disabled = arc4;
|
||||
}
|
||||
|
||||
#if defined(POLARSSL_SSL_MAX_FRAGMENT_LENGTH)
|
||||
int ssl_set_max_frag_len( ssl_context *ssl, unsigned char mfl_code )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue