nghttpx: Add P-384 and P-521 to the default of --ecdh-curves option

This commit is contained in:
Tatsuhiro Tsujikawa 2016-10-08 11:44:03 +09:00
parent 1b4ccd0d51
commit cdb1d6b462
1 changed files with 2 additions and 2 deletions

View File

@ -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;