mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Add POLARSSL_REMOVE_RC4_CIPHERSUITES
This commit is contained in:
committed by
Paul Bakker
parent
2a45d1c8bb
commit
01edb1044c
@ -1694,7 +1694,13 @@ const int *ssl_list_ciphersuites( void )
|
||||
|
||||
for( i = 0; i < max - 1 && p[i] != 0; i++ )
|
||||
{
|
||||
#if defined(POLARSSL_REMOVE_ARC4_CIPHERSUITES)
|
||||
const ssl_ciphersuite_t *cs_info;
|
||||
if( ( cs_info = ssl_ciphersuite_from_id( p[i] ) ) != NULL &&
|
||||
cs_info->cipher != POLARSSL_CIPHER_ARC4_128 )
|
||||
#else
|
||||
if( ssl_ciphersuite_from_id( p[i] ) != NULL )
|
||||
#endif
|
||||
*(q++) = p[i];
|
||||
}
|
||||
*q = 0;
|
||||
|
Reference in New Issue
Block a user