mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-01-04 13:45:05 +01:00
Upgrade default DHM params size
This commit is contained in:
parent
8836994f6b
commit
1028b74cff
5 changed files with 29 additions and 22 deletions
|
|
@ -1727,11 +1727,7 @@ int main( int argc, char *argv[] )
|
|||
#if defined(MBEDTLS_FS_IO)
|
||||
if( opt.dhm_file != NULL )
|
||||
ret = mbedtls_ssl_set_dh_param_ctx( &conf, &dhm );
|
||||
else
|
||||
#endif
|
||||
ret = mbedtls_ssl_set_dh_param( &conf, MBEDTLS_DHM_RFC5114_MODP_2048_P,
|
||||
MBEDTLS_DHM_RFC5114_MODP_2048_G );
|
||||
|
||||
if( ret != 0 )
|
||||
{
|
||||
mbedtls_printf( " failed\n mbedtls_ssl_set_dh_param returned -0x%04X\n\n", - ret );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue