Merge pull request #1735 from nghttp2/update-default-tls-ciphers
Update default TLS cipher suites
This commit is contained in:
commit
e6cf62664d
28
src/tls.h
28
src/tls.h
|
@ -46,26 +46,26 @@ public:
|
||||||
LibsslGlobalLock &operator=(const LibsslGlobalLock &) = delete;
|
LibsslGlobalLock &operator=(const LibsslGlobalLock &) = delete;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Recommended general purpose "Modern compatibility" cipher suites by
|
// Recommended general purpose "Intermediate compatibility" cipher
|
||||||
// mozilla.
|
// suites for TLSv1.2 by mozilla.
|
||||||
//
|
//
|
||||||
// https://wiki.mozilla.org/Security/Server_Side_TLS
|
// https://wiki.mozilla.org/Security/Server_Side_TLS
|
||||||
constexpr char DEFAULT_CIPHER_LIST[] =
|
constexpr char DEFAULT_CIPHER_LIST[] =
|
||||||
"ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-"
|
"ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-"
|
||||||
"CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-"
|
"AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-"
|
||||||
"SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-"
|
"POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-"
|
||||||
"AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256";
|
"AES256-GCM-SHA384";
|
||||||
|
|
||||||
|
// Recommended general purpose "Modern compatibility" cipher suites
|
||||||
|
// for TLSv1.3 by mozilla.
|
||||||
|
//
|
||||||
|
// https://wiki.mozilla.org/Security/Server_Side_TLS
|
||||||
constexpr char DEFAULT_TLS13_CIPHER_LIST[] =
|
constexpr char DEFAULT_TLS13_CIPHER_LIST[] =
|
||||||
#if OPENSSL_3_0_0_API
|
#if OPENSSL_1_1_1_API && !defined(OPENSSL_IS_BORINGSSL)
|
||||||
"TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256"
|
"TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256"
|
||||||
#elif OPENSSL_1_1_1_API && !defined(OPENSSL_IS_BORINGSSL)
|
#else
|
||||||
TLS_DEFAULT_CIPHERSUITES
|
|
||||||
#else // !OPENSSL_3_0_0_API && !(OPENSSL_1_1_1_API &&
|
|
||||||
// !defined(OPENSSL_IS_BORINGSSL))
|
|
||||||
""
|
""
|
||||||
#endif // !OPENSSL_3_0_0_API && !(OPENSSL_1_1_1_API &&
|
#endif
|
||||||
// !defined(OPENSSL_IS_BORINGSSL))
|
|
||||||
;
|
;
|
||||||
|
|
||||||
constexpr auto NGHTTP2_TLS_MIN_VERSION = TLS1_VERSION;
|
constexpr auto NGHTTP2_TLS_MIN_VERSION = TLS1_VERSION;
|
||||||
|
|
Loading…
Reference in New Issue