From 1374bb81fd23e67c7f7a861e8dcbde975c9a444f Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 27 Mar 2017 21:18:44 +0900 Subject: [PATCH] nghttpx: Enable X25519 with boringssl --- src/shrpx.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shrpx.cc b/src/shrpx.cc index ccbdf6bf..386aabfb 100644 --- a/src/shrpx.cc +++ b/src/shrpx.cc @@ -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");