nghttpx: Enable X25519 with boringssl
This commit is contained in:
parent
f6301714db
commit
1374bb81fd
|
@ -1437,11 +1437,11 @@ void fill_default_config(Config *config) {
|
|||
ssl::proto_version_from_string(DEFAULT_TLS_MIN_PROTO_VERSION);
|
||||
tlsconf.max_proto_version =
|
||||
ssl::proto_version_from_string(DEFAULT_TLS_MAX_PROTO_VERSION);
|
||||
#if OPENSSL_1_1_API
|
||||
#if OPENSSL_1_1_API || defined(OPENSSL_IS_BORINGSSL)
|
||||
tlsconf.ecdh_curves = StringRef::from_lit("X25519:P-256:P-384:P-521");
|
||||
#else // !OPENSSL_1_1_API
|
||||
#else // !OPENSSL_1_1_API && !defined(OPENSSL_IS_BORINGSSL)
|
||||
tlsconf.ecdh_curves = StringRef::from_lit("P-256:P-384:P-521");
|
||||
#endif // !OPENSSL_1_1_API
|
||||
#endif // !OPENSSL_1_1_API && !defined(OPENSSL_IS_BORINGSSL)
|
||||
|
||||
auto &httpconf = config->http;
|
||||
httpconf.server_name = StringRef::from_lit("nghttpx");
|
||||
|
|
Loading…
Reference in New Issue