mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 00:05:51 +01:00
- Removed clutter from my_dhm values
This commit is contained in:
parent
a864f2ee51
commit
d43241060b
@ -54,14 +54,6 @@
|
||||
"<h2>PolarSSL Test Server</h2>\r\n" \
|
||||
"<p>Successful connection using: %s</p>\r\n"
|
||||
|
||||
/*
|
||||
* Computing a "safe" DH prime can take a very
|
||||
* long time. RFC 5114 provides precomputed and standardized
|
||||
* values.
|
||||
*/
|
||||
char *my_dhm_P = POLARSSL_DHM_RFC5114_MODP_1024_P;
|
||||
char *my_dhm_G = POLARSSL_DHM_RFC5114_MODP_1024_G;
|
||||
|
||||
/*
|
||||
* Sorted by order of preference
|
||||
*/
|
||||
@ -186,13 +178,14 @@ int main( int argc, char *argv[] )
|
||||
ssl_context ssl;
|
||||
x509_cert srvcert;
|
||||
rsa_context rsa;
|
||||
#if defined(POLARSSL_SSL_CACHE_C)
|
||||
ssl_cache_context cache;
|
||||
#endif
|
||||
|
||||
((void) argc);
|
||||
((void) argv);
|
||||
|
||||
#if defined(POLARSSL_SSL_CACHE_C)
|
||||
ssl_cache_context cache;
|
||||
|
||||
ssl_cache_init( &cache );
|
||||
#endif
|
||||
|
||||
@ -294,7 +287,8 @@ int main( int argc, char *argv[] )
|
||||
ssl_set_ca_chain( &ssl, srvcert.next, NULL, NULL );
|
||||
ssl_set_own_cert( &ssl, &srvcert, &rsa );
|
||||
#if defined(POLARSSL_DHM_C)
|
||||
ssl_set_dh_param( &ssl, my_dhm_P, my_dhm_G );
|
||||
ssl_set_dh_param( &ssl, POLARSSL_DHM_RFC5114_MODP_1024_P,
|
||||
POLARSSL_DHM_RFC5114_MODP_1024_G );
|
||||
#endif
|
||||
|
||||
printf( " ok\n" );
|
||||
|
@ -65,14 +65,6 @@
|
||||
"<h2>PolarSSL Test Server</h2>\r\n" \
|
||||
"<p>Successful connection using: %s</p>\r\n"
|
||||
|
||||
/*
|
||||
* Computing a "safe" DH prime can take a very
|
||||
* long time. RFC 5114 provides precomputed and standardized
|
||||
* values.
|
||||
*/
|
||||
char *my_dhm_P = POLARSSL_DHM_RFC5114_MODP_2048_P;
|
||||
char *my_dhm_G = POLARSSL_DHM_RFC5114_MODP_2048_G;
|
||||
|
||||
/*
|
||||
* global options
|
||||
*/
|
||||
@ -405,7 +397,8 @@ int main( int argc, char *argv[] )
|
||||
ssl_set_own_cert( &ssl, &srvcert, &rsa );
|
||||
|
||||
#if defined(POLARSSL_DHM_C)
|
||||
ssl_set_dh_param( &ssl, my_dhm_P, my_dhm_G );
|
||||
ssl_set_dh_param( &ssl, POLARSSL_DHM_RFC5114_MODP_2048_P,
|
||||
POLARSSL_DHM_RFC5114_MODP_2048_G );
|
||||
#endif
|
||||
|
||||
printf( " ok\n" );
|
||||
|
Loading…
Reference in New Issue
Block a user