unconditional mbedtls_ssl_conf_rng

This commit is contained in:
Philippe Antoine 2019-06-19 15:19:38 +02:00
parent 738153a048
commit b94cf822f3
2 changed files with 2 additions and 8 deletions

View file

@ -2007,10 +2007,7 @@ int main( int argc, char *argv[] )
#endif #endif
#endif #endif
} }
else mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg );
{
mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg );
}
mbedtls_ssl_conf_dbg( &conf, my_debug, stdout ); mbedtls_ssl_conf_dbg( &conf, my_debug, stdout );
mbedtls_ssl_conf_read_timeout( &conf, opt.read_timeout ); mbedtls_ssl_conf_read_timeout( &conf, opt.read_timeout );

View file

@ -2827,10 +2827,7 @@ int main( int argc, char *argv[] )
#endif #endif
#endif #endif
} }
else mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg );
{
mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg );
}
mbedtls_ssl_conf_dbg( &conf, my_debug, stdout ); mbedtls_ssl_conf_dbg( &conf, my_debug, stdout );
#if defined(MBEDTLS_SSL_CACHE_C) #if defined(MBEDTLS_SSL_CACHE_C)