nghttpx: Enable X25519 with boringssl

This commit is contained in:
Tatsuhiro Tsujikawa 2017-03-27 21:18:44 +09:00
parent f6301714db
commit 1374bb81fd
1 changed files with 3 additions and 3 deletions

View File

@ -1437,11 +1437,11 @@ void fill_default_config(Config *config) {
ssl::proto_version_from_string(DEFAULT_TLS_MIN_PROTO_VERSION); ssl::proto_version_from_string(DEFAULT_TLS_MIN_PROTO_VERSION);
tlsconf.max_proto_version = tlsconf.max_proto_version =
ssl::proto_version_from_string(DEFAULT_TLS_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"); 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"); 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; auto &httpconf = config->http;
httpconf.server_name = StringRef::from_lit("nghttpx"); httpconf.server_name = StringRef::from_lit("nghttpx");