nghttpx: Add P-384 and P-521 to the default of --ecdh-curves option
This commit is contained in:
parent
1b4ccd0d51
commit
cdb1d6b462
|
@ -1323,9 +1323,9 @@ void fill_default_config(Config *config) {
|
|||
|
||||
tlsconf.session_timeout = std::chrono::hours(12);
|
||||
#if OPENSSL_1_1_API
|
||||
tlsconf.ecdh_curves = StringRef::from_lit("X25519:P-256");
|
||||
tlsconf.ecdh_curves = StringRef::from_lit("X25519:P-256:P-384:P-521");
|
||||
#else // !OPENSSL_1_1_API
|
||||
tlsconf.ecdh_curves = StringRef::from_lit("P-256");
|
||||
tlsconf.ecdh_curves = StringRef::from_lit("P-256:P-384:P-521");
|
||||
#endif // !OPENSSL_1_1_API
|
||||
|
||||
auto &httpconf = config->http;
|
||||
|
|
Loading…
Reference in New Issue