Change default Diffie-Hellman parameters from RFC 5114 to RFC 7919
The origin of the primes in RFC 5114 is undocumented and their use therefore
constitutes a security risk.
diff --git a/library/ssl_tls.c b/library/ssl_tls.c
index b388156..1ef50c2 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -7538,8 +7538,8 @@
if( endpoint == MBEDTLS_SSL_IS_SERVER )
{
if( ( ret = mbedtls_ssl_conf_dh_param( conf,
- MBEDTLS_DHM_RFC5114_MODP_2048_P,
- MBEDTLS_DHM_RFC5114_MODP_2048_G ) ) != 0 )
+ mbedtls_dhm_rfc7919_ffdhe2048_p,
+ mbedtls_dhm_rfc7919_ffdhe2048_g ) ) != 0 )
{
return( ret );
}