mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 12:45:39 +01:00
Disable RC4 by default in example programs.
This commit is contained in:
parent
bd47a58221
commit
fa06581c73
@ -3,6 +3,7 @@ PolarSSL ChangeLog (Sorted per branch, date)
|
||||
= PolarSSL 1.3.10 released ???
|
||||
Changes
|
||||
* Example programs for SSL client and server now disable SSLv3 by default.
|
||||
* Example programs for SSL client and server now disable RC4 by default.
|
||||
|
||||
Features
|
||||
* Add ssl_set_arc4_support() to make it easier to diable RC4 at runtime
|
||||
|
@ -170,6 +170,8 @@ int main( int argc, char *argv[] )
|
||||
|
||||
/* SSLv3 is deprecated, set minimum to TLS 1.0 */
|
||||
ssl_set_min_version( &ssl, SSL_MAJOR_VERSION_3, SSL_MINOR_VERSION_1 );
|
||||
/* RC4 is deprecated, disable it */
|
||||
ssl_set_arc4_support( &ssl, SSL_ARC4_DISABLED );
|
||||
|
||||
ssl_set_rng( &ssl, ctr_drbg_random, &ctr_drbg );
|
||||
ssl_set_dbg( &ssl, my_debug, stdout );
|
||||
|
@ -267,6 +267,8 @@ int main( int argc, char *argv[] )
|
||||
/* SSLv3 is deprecated, set minimum to TLS 1.0 */
|
||||
ssl_set_min_version( &ssl, SSL_MAJOR_VERSION_3,
|
||||
SSL_MINOR_VERSION_1 );
|
||||
/* RC4 is deprecated, disable it */
|
||||
ssl_set_arc4_support( &ssl, SSL_ARC4_DISABLED );
|
||||
|
||||
ssl_set_rng( &ssl, ctr_drbg_random, &ctr_drbg );
|
||||
ssl_set_dbg( &ssl, my_debug, stdout );
|
||||
|
@ -603,6 +603,8 @@ int main( int argc, char *argv[] )
|
||||
|
||||
/* SSLv3 is deprecated, set minimum to TLS 1.0 */
|
||||
ssl_set_min_version( &ssl, SSL_MAJOR_VERSION_3, SSL_MINOR_VERSION_1 );
|
||||
/* RC4 is deprecated, disable it */
|
||||
ssl_set_arc4_support( &ssl, SSL_ARC4_DISABLED );
|
||||
|
||||
ssl_set_rng( &ssl, ctr_drbg_random, &ctr_drbg );
|
||||
ssl_set_dbg( &ssl, my_debug, stdout );
|
||||
|
@ -167,6 +167,8 @@ static void *handle_ssl_connection( void *data )
|
||||
|
||||
/* SSLv3 is deprecated, set minimum to TLS 1.0 */
|
||||
ssl_set_min_version( &ssl, SSL_MAJOR_VERSION_3, SSL_MINOR_VERSION_1 );
|
||||
/* RC4 is deprecated, disable it */
|
||||
ssl_set_arc4_support( &ssl, SSL_ARC4_DISABLED );
|
||||
|
||||
ssl_set_rng( &ssl, ctr_drbg_random, &ctr_drbg );
|
||||
ssl_set_dbg( &ssl, my_mutexed_debug, stdout );
|
||||
|
@ -200,6 +200,8 @@ int main( int argc, char *argv[] )
|
||||
|
||||
/* SSLv3 is deprecated, set minimum to TLS 1.0 */
|
||||
ssl_set_min_version( &ssl, SSL_MAJOR_VERSION_3, SSL_MINOR_VERSION_1 );
|
||||
/* RC4 is deprecated, disable it */
|
||||
ssl_set_arc4_support( &ssl, SSL_ARC4_DISABLED );
|
||||
|
||||
ssl_set_rng( &ssl, ctr_drbg_random, &ctr_drbg );
|
||||
ssl_set_dbg( &ssl, my_debug, stdout );
|
||||
|
Loading…
Reference in New Issue
Block a user