Merge branch 'jay-refactor-blacklist'
This commit is contained in:
commit
1e150bcf61
578
src/ssl.cc
578
src/ssl.cc
|
@ -117,571 +117,25 @@ TLSSessionInfo *get_tls_session_info(TLSSessionInfo *tls_info, SSL *ssl) {
|
||||||
return tls_info;
|
return tls_info;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The black listed cipher suites for HTTP/2 described in RFC 7540.
|
/* Conditional logic w/ lookup tables to check if id is one of the
|
||||||
enum {
|
the black listed cipher suites for HTTP/2 described in RFC 7540.
|
||||||
TLS_NULL_WITH_NULL_NULL = 0x0000u,
|
https://github.com/jay/http2_blacklisted_ciphers
|
||||||
TLS_RSA_WITH_NULL_MD5 = 0x0001u,
|
*/
|
||||||
TLS_RSA_WITH_NULL_SHA = 0x0002u,
|
#define IS_CIPHER_BANNED_METHOD2(id) ( \
|
||||||
TLS_RSA_EXPORT_WITH_RC4_40_MD5 = 0x0003u,
|
(0x0000 <= id && id <= 0x00FF && \
|
||||||
TLS_RSA_WITH_RC4_128_MD5 = 0x0004u,
|
"\xFF\xFF\xFF\xCF\xFF\xFF\xFF\xFF\x7F\x00\x00\x00\x80\x3F\x00\x00" \
|
||||||
TLS_RSA_WITH_RC4_128_SHA = 0x0005u,
|
"\xF0\xFF\xFF\x3F\xF3\xF3\xFF\xFF\x3F\x00\x00\x00\x00\x00\x00\x80" \
|
||||||
TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5 = 0x0006u,
|
[(id & 0xFF) / 8] & (1 << (id % 8))) || \
|
||||||
TLS_RSA_WITH_IDEA_CBC_SHA = 0x0007u,
|
(0xC000 <= id && id <= 0xC0FF && \
|
||||||
TLS_RSA_EXPORT_WITH_DES40_CBC_SHA = 0x0008u,
|
"\xFE\xFF\xFF\xFF\xFF\x67\xFE\xFF\xFF\xFF\x33\xCF\xFC\xCF\xFF\xCF" \
|
||||||
TLS_RSA_WITH_DES_CBC_SHA = 0x0009u,
|
"\x3C\xF3\xFC\x3F\x33\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" \
|
||||||
TLS_RSA_WITH_3DES_EDE_CBC_SHA = 0x000Au,
|
[(id & 0xFF) / 8] & (1 << (id % 8))) \
|
||||||
TLS_DH_DSS_EXPORT_WITH_DES40_CBC_SHA = 0x000Bu,
|
)
|
||||||
TLS_DH_DSS_WITH_DES_CBC_SHA = 0x000Cu,
|
|
||||||
TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA = 0x000Du,
|
|
||||||
TLS_DH_RSA_EXPORT_WITH_DES40_CBC_SHA = 0x000Eu,
|
|
||||||
TLS_DH_RSA_WITH_DES_CBC_SHA = 0x000Fu,
|
|
||||||
TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA = 0x0010u,
|
|
||||||
TLS_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA = 0x0011u,
|
|
||||||
TLS_DHE_DSS_WITH_DES_CBC_SHA = 0x0012u,
|
|
||||||
TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA = 0x0013u,
|
|
||||||
TLS_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA = 0x0014u,
|
|
||||||
TLS_DHE_RSA_WITH_DES_CBC_SHA = 0x0015u,
|
|
||||||
TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA = 0x0016u,
|
|
||||||
TLS_DH_anon_EXPORT_WITH_RC4_40_MD5 = 0x0017u,
|
|
||||||
TLS_DH_anon_WITH_RC4_128_MD5 = 0x0018u,
|
|
||||||
TLS_DH_anon_EXPORT_WITH_DES40_CBC_SHA = 0x0019u,
|
|
||||||
TLS_DH_anon_WITH_DES_CBC_SHA = 0x001Au,
|
|
||||||
TLS_DH_anon_WITH_3DES_EDE_CBC_SHA = 0x001Bu,
|
|
||||||
TLS_KRB5_WITH_DES_CBC_SHA = 0x001Eu,
|
|
||||||
TLS_KRB5_WITH_3DES_EDE_CBC_SHA = 0x001Fu,
|
|
||||||
TLS_KRB5_WITH_RC4_128_SHA = 0x0020u,
|
|
||||||
TLS_KRB5_WITH_IDEA_CBC_SHA = 0x0021u,
|
|
||||||
TLS_KRB5_WITH_DES_CBC_MD5 = 0x0022u,
|
|
||||||
TLS_KRB5_WITH_3DES_EDE_CBC_MD5 = 0x0023u,
|
|
||||||
TLS_KRB5_WITH_RC4_128_MD5 = 0x0024u,
|
|
||||||
TLS_KRB5_WITH_IDEA_CBC_MD5 = 0x0025u,
|
|
||||||
TLS_KRB5_EXPORT_WITH_DES_CBC_40_SHA = 0x0026u,
|
|
||||||
TLS_KRB5_EXPORT_WITH_RC2_CBC_40_SHA = 0x0027u,
|
|
||||||
TLS_KRB5_EXPORT_WITH_RC4_40_SHA = 0x0028u,
|
|
||||||
TLS_KRB5_EXPORT_WITH_DES_CBC_40_MD5 = 0x0029u,
|
|
||||||
TLS_KRB5_EXPORT_WITH_RC2_CBC_40_MD5 = 0x002Au,
|
|
||||||
TLS_KRB5_EXPORT_WITH_RC4_40_MD5 = 0x002Bu,
|
|
||||||
TLS_PSK_WITH_NULL_SHA = 0x002Cu,
|
|
||||||
TLS_DHE_PSK_WITH_NULL_SHA = 0x002Du,
|
|
||||||
TLS_RSA_PSK_WITH_NULL_SHA = 0x002Eu,
|
|
||||||
TLS_RSA_WITH_AES_128_CBC_SHA = 0x002Fu,
|
|
||||||
TLS_DH_DSS_WITH_AES_128_CBC_SHA = 0x0030u,
|
|
||||||
TLS_DH_RSA_WITH_AES_128_CBC_SHA = 0x0031u,
|
|
||||||
TLS_DHE_DSS_WITH_AES_128_CBC_SHA = 0x0032u,
|
|
||||||
TLS_DHE_RSA_WITH_AES_128_CBC_SHA = 0x0033u,
|
|
||||||
TLS_DH_anon_WITH_AES_128_CBC_SHA = 0x0034u,
|
|
||||||
TLS_RSA_WITH_AES_256_CBC_SHA = 0x0035u,
|
|
||||||
TLS_DH_DSS_WITH_AES_256_CBC_SHA = 0x0036u,
|
|
||||||
TLS_DH_RSA_WITH_AES_256_CBC_SHA = 0x0037u,
|
|
||||||
TLS_DHE_DSS_WITH_AES_256_CBC_SHA = 0x0038u,
|
|
||||||
TLS_DHE_RSA_WITH_AES_256_CBC_SHA = 0x0039u,
|
|
||||||
TLS_DH_anon_WITH_AES_256_CBC_SHA = 0x003Au,
|
|
||||||
TLS_RSA_WITH_NULL_SHA256 = 0x003Bu,
|
|
||||||
TLS_RSA_WITH_AES_128_CBC_SHA256 = 0x003Cu,
|
|
||||||
TLS_RSA_WITH_AES_256_CBC_SHA256 = 0x003Du,
|
|
||||||
TLS_DH_DSS_WITH_AES_128_CBC_SHA256 = 0x003Eu,
|
|
||||||
TLS_DH_RSA_WITH_AES_128_CBC_SHA256 = 0x003Fu,
|
|
||||||
TLS_DHE_DSS_WITH_AES_128_CBC_SHA256 = 0x0040u,
|
|
||||||
TLS_RSA_WITH_CAMELLIA_128_CBC_SHA = 0x0041u,
|
|
||||||
TLS_DH_DSS_WITH_CAMELLIA_128_CBC_SHA = 0x0042u,
|
|
||||||
TLS_DH_RSA_WITH_CAMELLIA_128_CBC_SHA = 0x0043u,
|
|
||||||
TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA = 0x0044u,
|
|
||||||
TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA = 0x0045u,
|
|
||||||
TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA = 0x0046u,
|
|
||||||
TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 = 0x0067u,
|
|
||||||
TLS_DH_DSS_WITH_AES_256_CBC_SHA256 = 0x0068u,
|
|
||||||
TLS_DH_RSA_WITH_AES_256_CBC_SHA256 = 0x0069u,
|
|
||||||
TLS_DHE_DSS_WITH_AES_256_CBC_SHA256 = 0x006Au,
|
|
||||||
TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 = 0x006Bu,
|
|
||||||
TLS_DH_anon_WITH_AES_128_CBC_SHA256 = 0x006Cu,
|
|
||||||
TLS_DH_anon_WITH_AES_256_CBC_SHA256 = 0x006Du,
|
|
||||||
TLS_RSA_WITH_CAMELLIA_256_CBC_SHA = 0x0084u,
|
|
||||||
TLS_DH_DSS_WITH_CAMELLIA_256_CBC_SHA = 0x0085u,
|
|
||||||
TLS_DH_RSA_WITH_CAMELLIA_256_CBC_SHA = 0x0086u,
|
|
||||||
TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA = 0x0087u,
|
|
||||||
TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA = 0x0088u,
|
|
||||||
TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA = 0x0089u,
|
|
||||||
TLS_PSK_WITH_RC4_128_SHA = 0x008Au,
|
|
||||||
TLS_PSK_WITH_3DES_EDE_CBC_SHA = 0x008Bu,
|
|
||||||
TLS_PSK_WITH_AES_128_CBC_SHA = 0x008Cu,
|
|
||||||
TLS_PSK_WITH_AES_256_CBC_SHA = 0x008Du,
|
|
||||||
TLS_DHE_PSK_WITH_RC4_128_SHA = 0x008Eu,
|
|
||||||
TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA = 0x008Fu,
|
|
||||||
TLS_DHE_PSK_WITH_AES_128_CBC_SHA = 0x0090u,
|
|
||||||
TLS_DHE_PSK_WITH_AES_256_CBC_SHA = 0x0091u,
|
|
||||||
TLS_RSA_PSK_WITH_RC4_128_SHA = 0x0092u,
|
|
||||||
TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA = 0x0093u,
|
|
||||||
TLS_RSA_PSK_WITH_AES_128_CBC_SHA = 0x0094u,
|
|
||||||
TLS_RSA_PSK_WITH_AES_256_CBC_SHA = 0x0095u,
|
|
||||||
TLS_RSA_WITH_SEED_CBC_SHA = 0x0096u,
|
|
||||||
TLS_DH_DSS_WITH_SEED_CBC_SHA = 0x0097u,
|
|
||||||
TLS_DH_RSA_WITH_SEED_CBC_SHA = 0x0098u,
|
|
||||||
TLS_DHE_DSS_WITH_SEED_CBC_SHA = 0x0099u,
|
|
||||||
TLS_DHE_RSA_WITH_SEED_CBC_SHA = 0x009Au,
|
|
||||||
TLS_DH_anon_WITH_SEED_CBC_SHA = 0x009Bu,
|
|
||||||
TLS_RSA_WITH_AES_128_GCM_SHA256 = 0x009Cu,
|
|
||||||
TLS_RSA_WITH_AES_256_GCM_SHA384 = 0x009Du,
|
|
||||||
TLS_DH_RSA_WITH_AES_128_GCM_SHA256 = 0x00A0u,
|
|
||||||
TLS_DH_RSA_WITH_AES_256_GCM_SHA384 = 0x00A1u,
|
|
||||||
TLS_DH_DSS_WITH_AES_128_GCM_SHA256 = 0x00A4u,
|
|
||||||
TLS_DH_DSS_WITH_AES_256_GCM_SHA384 = 0x00A5u,
|
|
||||||
TLS_DH_anon_WITH_AES_128_GCM_SHA256 = 0x00A6u,
|
|
||||||
TLS_DH_anon_WITH_AES_256_GCM_SHA384 = 0x00A7u,
|
|
||||||
TLS_PSK_WITH_AES_128_GCM_SHA256 = 0x00A8u,
|
|
||||||
TLS_PSK_WITH_AES_256_GCM_SHA384 = 0x00A9u,
|
|
||||||
TLS_RSA_PSK_WITH_AES_128_GCM_SHA256 = 0x00ACu,
|
|
||||||
TLS_RSA_PSK_WITH_AES_256_GCM_SHA384 = 0x00ADu,
|
|
||||||
TLS_PSK_WITH_AES_128_CBC_SHA256 = 0x00AEu,
|
|
||||||
TLS_PSK_WITH_AES_256_CBC_SHA384 = 0x00AFu,
|
|
||||||
TLS_PSK_WITH_NULL_SHA256 = 0x00B0u,
|
|
||||||
TLS_PSK_WITH_NULL_SHA384 = 0x00B1u,
|
|
||||||
TLS_DHE_PSK_WITH_AES_128_CBC_SHA256 = 0x00B2u,
|
|
||||||
TLS_DHE_PSK_WITH_AES_256_CBC_SHA384 = 0x00B3u,
|
|
||||||
TLS_DHE_PSK_WITH_NULL_SHA256 = 0x00B4u,
|
|
||||||
TLS_DHE_PSK_WITH_NULL_SHA384 = 0x00B5u,
|
|
||||||
TLS_RSA_PSK_WITH_AES_128_CBC_SHA256 = 0x00B6u,
|
|
||||||
TLS_RSA_PSK_WITH_AES_256_CBC_SHA384 = 0x00B7u,
|
|
||||||
TLS_RSA_PSK_WITH_NULL_SHA256 = 0x00B8u,
|
|
||||||
TLS_RSA_PSK_WITH_NULL_SHA384 = 0x00B9u,
|
|
||||||
TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256 = 0x00BAu,
|
|
||||||
TLS_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256 = 0x00BBu,
|
|
||||||
TLS_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256 = 0x00BCu,
|
|
||||||
TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256 = 0x00BDu,
|
|
||||||
TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 = 0x00BEu,
|
|
||||||
TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA256 = 0x00BFu,
|
|
||||||
TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256 = 0x00C0u,
|
|
||||||
TLS_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256 = 0x00C1u,
|
|
||||||
TLS_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256 = 0x00C2u,
|
|
||||||
TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256 = 0x00C3u,
|
|
||||||
TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 = 0x00C4u,
|
|
||||||
TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA256 = 0x00C5u,
|
|
||||||
TLS_EMPTY_RENEGOTIATION_INFO_SCSV = 0x00FFu,
|
|
||||||
TLS_ECDH_ECDSA_WITH_NULL_SHA = 0xC001u,
|
|
||||||
TLS_ECDH_ECDSA_WITH_RC4_128_SHA = 0xC002u,
|
|
||||||
TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA = 0xC003u,
|
|
||||||
TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA = 0xC004u,
|
|
||||||
TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA = 0xC005u,
|
|
||||||
TLS_ECDHE_ECDSA_WITH_NULL_SHA = 0xC006u,
|
|
||||||
TLS_ECDHE_ECDSA_WITH_RC4_128_SHA = 0xC007u,
|
|
||||||
TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA = 0xC008u,
|
|
||||||
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA = 0xC009u,
|
|
||||||
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA = 0xC00Au,
|
|
||||||
TLS_ECDH_RSA_WITH_NULL_SHA = 0xC00Bu,
|
|
||||||
TLS_ECDH_RSA_WITH_RC4_128_SHA = 0xC00Cu,
|
|
||||||
TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA = 0xC00Du,
|
|
||||||
TLS_ECDH_RSA_WITH_AES_128_CBC_SHA = 0xC00Eu,
|
|
||||||
TLS_ECDH_RSA_WITH_AES_256_CBC_SHA = 0xC00Fu,
|
|
||||||
TLS_ECDHE_RSA_WITH_NULL_SHA = 0xC010u,
|
|
||||||
TLS_ECDHE_RSA_WITH_RC4_128_SHA = 0xC011u,
|
|
||||||
TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA = 0xC012u,
|
|
||||||
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA = 0xC013u,
|
|
||||||
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA = 0xC014u,
|
|
||||||
TLS_ECDH_anon_WITH_NULL_SHA = 0xC015u,
|
|
||||||
TLS_ECDH_anon_WITH_RC4_128_SHA = 0xC016u,
|
|
||||||
TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA = 0xC017u,
|
|
||||||
TLS_ECDH_anon_WITH_AES_128_CBC_SHA = 0xC018u,
|
|
||||||
TLS_ECDH_anon_WITH_AES_256_CBC_SHA = 0xC019u,
|
|
||||||
TLS_SRP_SHA_WITH_3DES_EDE_CBC_SHA = 0xC01Au,
|
|
||||||
TLS_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA = 0xC01Bu,
|
|
||||||
TLS_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA = 0xC01Cu,
|
|
||||||
TLS_SRP_SHA_WITH_AES_128_CBC_SHA = 0xC01Du,
|
|
||||||
TLS_SRP_SHA_RSA_WITH_AES_128_CBC_SHA = 0xC01Eu,
|
|
||||||
TLS_SRP_SHA_DSS_WITH_AES_128_CBC_SHA = 0xC01Fu,
|
|
||||||
TLS_SRP_SHA_WITH_AES_256_CBC_SHA = 0xC020u,
|
|
||||||
TLS_SRP_SHA_RSA_WITH_AES_256_CBC_SHA = 0xC021u,
|
|
||||||
TLS_SRP_SHA_DSS_WITH_AES_256_CBC_SHA = 0xC022u,
|
|
||||||
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 = 0xC023u,
|
|
||||||
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 = 0xC024u,
|
|
||||||
TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256 = 0xC025u,
|
|
||||||
TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384 = 0xC026u,
|
|
||||||
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 = 0xC027u,
|
|
||||||
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 = 0xC028u,
|
|
||||||
TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256 = 0xC029u,
|
|
||||||
TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384 = 0xC02Au,
|
|
||||||
TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 = 0xC02Du,
|
|
||||||
TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 = 0xC02Eu,
|
|
||||||
TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256 = 0xC031u,
|
|
||||||
TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384 = 0xC032u,
|
|
||||||
TLS_ECDHE_PSK_WITH_RC4_128_SHA = 0xC033u,
|
|
||||||
TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA = 0xC034u,
|
|
||||||
TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA = 0xC035u,
|
|
||||||
TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA = 0xC036u,
|
|
||||||
TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256 = 0xC037u,
|
|
||||||
TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384 = 0xC038u,
|
|
||||||
TLS_ECDHE_PSK_WITH_NULL_SHA = 0xC039u,
|
|
||||||
TLS_ECDHE_PSK_WITH_NULL_SHA256 = 0xC03Au,
|
|
||||||
TLS_ECDHE_PSK_WITH_NULL_SHA384 = 0xC03Bu,
|
|
||||||
TLS_RSA_WITH_ARIA_128_CBC_SHA256 = 0xC03Cu,
|
|
||||||
TLS_RSA_WITH_ARIA_256_CBC_SHA384 = 0xC03Du,
|
|
||||||
TLS_DH_DSS_WITH_ARIA_128_CBC_SHA256 = 0xC03Eu,
|
|
||||||
TLS_DH_DSS_WITH_ARIA_256_CBC_SHA384 = 0xC03Fu,
|
|
||||||
TLS_DH_RSA_WITH_ARIA_128_CBC_SHA256 = 0xC040u,
|
|
||||||
TLS_DH_RSA_WITH_ARIA_256_CBC_SHA384 = 0xC041u,
|
|
||||||
TLS_DHE_DSS_WITH_ARIA_128_CBC_SHA256 = 0xC042u,
|
|
||||||
TLS_DHE_DSS_WITH_ARIA_256_CBC_SHA384 = 0xC043u,
|
|
||||||
TLS_DHE_RSA_WITH_ARIA_128_CBC_SHA256 = 0xC044u,
|
|
||||||
TLS_DHE_RSA_WITH_ARIA_256_CBC_SHA384 = 0xC045u,
|
|
||||||
TLS_DH_anon_WITH_ARIA_128_CBC_SHA256 = 0xC046u,
|
|
||||||
TLS_DH_anon_WITH_ARIA_256_CBC_SHA384 = 0xC047u,
|
|
||||||
TLS_ECDHE_ECDSA_WITH_ARIA_128_CBC_SHA256 = 0xC048u,
|
|
||||||
TLS_ECDHE_ECDSA_WITH_ARIA_256_CBC_SHA384 = 0xC049u,
|
|
||||||
TLS_ECDH_ECDSA_WITH_ARIA_128_CBC_SHA256 = 0xC04Au,
|
|
||||||
TLS_ECDH_ECDSA_WITH_ARIA_256_CBC_SHA384 = 0xC04Bu,
|
|
||||||
TLS_ECDHE_RSA_WITH_ARIA_128_CBC_SHA256 = 0xC04Cu,
|
|
||||||
TLS_ECDHE_RSA_WITH_ARIA_256_CBC_SHA384 = 0xC04Du,
|
|
||||||
TLS_ECDH_RSA_WITH_ARIA_128_CBC_SHA256 = 0xC04Eu,
|
|
||||||
TLS_ECDH_RSA_WITH_ARIA_256_CBC_SHA384 = 0xC04Fu,
|
|
||||||
TLS_RSA_WITH_ARIA_128_GCM_SHA256 = 0xC050u,
|
|
||||||
TLS_RSA_WITH_ARIA_256_GCM_SHA384 = 0xC051u,
|
|
||||||
TLS_DH_RSA_WITH_ARIA_128_GCM_SHA256 = 0xC054u,
|
|
||||||
TLS_DH_RSA_WITH_ARIA_256_GCM_SHA384 = 0xC055u,
|
|
||||||
TLS_DH_DSS_WITH_ARIA_128_GCM_SHA256 = 0xC058u,
|
|
||||||
TLS_DH_DSS_WITH_ARIA_256_GCM_SHA384 = 0xC059u,
|
|
||||||
TLS_DH_anon_WITH_ARIA_128_GCM_SHA256 = 0xC05Au,
|
|
||||||
TLS_DH_anon_WITH_ARIA_256_GCM_SHA384 = 0xC05Bu,
|
|
||||||
TLS_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256 = 0xC05Eu,
|
|
||||||
TLS_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384 = 0xC05Fu,
|
|
||||||
TLS_ECDH_RSA_WITH_ARIA_128_GCM_SHA256 = 0xC062u,
|
|
||||||
TLS_ECDH_RSA_WITH_ARIA_256_GCM_SHA384 = 0xC063u,
|
|
||||||
TLS_PSK_WITH_ARIA_128_CBC_SHA256 = 0xC064u,
|
|
||||||
TLS_PSK_WITH_ARIA_256_CBC_SHA384 = 0xC065u,
|
|
||||||
TLS_DHE_PSK_WITH_ARIA_128_CBC_SHA256 = 0xC066u,
|
|
||||||
TLS_DHE_PSK_WITH_ARIA_256_CBC_SHA384 = 0xC067u,
|
|
||||||
TLS_RSA_PSK_WITH_ARIA_128_CBC_SHA256 = 0xC068u,
|
|
||||||
TLS_RSA_PSK_WITH_ARIA_256_CBC_SHA384 = 0xC069u,
|
|
||||||
TLS_PSK_WITH_ARIA_128_GCM_SHA256 = 0xC06Au,
|
|
||||||
TLS_PSK_WITH_ARIA_256_GCM_SHA384 = 0xC06Bu,
|
|
||||||
TLS_RSA_PSK_WITH_ARIA_128_GCM_SHA256 = 0xC06Eu,
|
|
||||||
TLS_RSA_PSK_WITH_ARIA_256_GCM_SHA384 = 0xC06Fu,
|
|
||||||
TLS_ECDHE_PSK_WITH_ARIA_128_CBC_SHA256 = 0xC070u,
|
|
||||||
TLS_ECDHE_PSK_WITH_ARIA_256_CBC_SHA384 = 0xC071u,
|
|
||||||
TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 = 0xC072u,
|
|
||||||
TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 = 0xC073u,
|
|
||||||
TLS_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 = 0xC074u,
|
|
||||||
TLS_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 = 0xC075u,
|
|
||||||
TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 = 0xC076u,
|
|
||||||
TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 = 0xC077u,
|
|
||||||
TLS_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256 = 0xC078u,
|
|
||||||
TLS_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384 = 0xC079u,
|
|
||||||
TLS_RSA_WITH_CAMELLIA_128_GCM_SHA256 = 0xC07Au,
|
|
||||||
TLS_RSA_WITH_CAMELLIA_256_GCM_SHA384 = 0xC07Bu,
|
|
||||||
TLS_DH_RSA_WITH_CAMELLIA_128_GCM_SHA256 = 0xC07Eu,
|
|
||||||
TLS_DH_RSA_WITH_CAMELLIA_256_GCM_SHA384 = 0xC07Fu,
|
|
||||||
TLS_DH_DSS_WITH_CAMELLIA_128_GCM_SHA256 = 0xC082u,
|
|
||||||
TLS_DH_DSS_WITH_CAMELLIA_256_GCM_SHA384 = 0xC083u,
|
|
||||||
TLS_DH_anon_WITH_CAMELLIA_128_GCM_SHA256 = 0xC084u,
|
|
||||||
TLS_DH_anon_WITH_CAMELLIA_256_GCM_SHA384 = 0xC085u,
|
|
||||||
TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256 = 0xC088u,
|
|
||||||
TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384 = 0xC089u,
|
|
||||||
TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256 = 0xC08Cu,
|
|
||||||
TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384 = 0xC08Du,
|
|
||||||
TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256 = 0xC08Eu,
|
|
||||||
TLS_PSK_WITH_CAMELLIA_256_GCM_SHA384 = 0xC08Fu,
|
|
||||||
TLS_RSA_PSK_WITH_CAMELLIA_128_GCM_SHA256 = 0xC092u,
|
|
||||||
TLS_RSA_PSK_WITH_CAMELLIA_256_GCM_SHA384 = 0xC093u,
|
|
||||||
TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256 = 0xC094u,
|
|
||||||
TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384 = 0xC095u,
|
|
||||||
TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 = 0xC096u,
|
|
||||||
TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 = 0xC097u,
|
|
||||||
TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256 = 0xC098u,
|
|
||||||
TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384 = 0xC099u,
|
|
||||||
TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 = 0xC09Au,
|
|
||||||
TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 = 0xC09Bu,
|
|
||||||
TLS_RSA_WITH_AES_128_CCM = 0xC09Cu,
|
|
||||||
TLS_RSA_WITH_AES_256_CCM = 0xC09Du,
|
|
||||||
TLS_RSA_WITH_AES_128_CCM_8 = 0xC0A0u,
|
|
||||||
TLS_RSA_WITH_AES_256_CCM_8 = 0xC0A1u,
|
|
||||||
TLS_PSK_WITH_AES_128_CCM = 0xC0A4u,
|
|
||||||
TLS_PSK_WITH_AES_256_CCM = 0xC0A5u,
|
|
||||||
TLS_PSK_WITH_AES_128_CCM_8 = 0xC0A8u,
|
|
||||||
TLS_PSK_WITH_AES_256_CCM_8 = 0xC0A9u,
|
|
||||||
};
|
|
||||||
|
|
||||||
bool check_http2_cipher_black_list(SSL *ssl) {
|
bool check_http2_cipher_black_list(SSL *ssl) {
|
||||||
auto cipher = SSL_get_current_cipher(ssl);
|
int id = SSL_CIPHER_get_id(SSL_get_current_cipher(ssl)) & 0xFFFFFF;
|
||||||
|
|
||||||
// Cipher suites in RFC 7540 black list are not allowed in HTTP/2.
|
return IS_CIPHER_BANNED_METHOD2(id);
|
||||||
switch (SSL_CIPHER_get_id(cipher) & 0xffffu) {
|
|
||||||
case TLS_NULL_WITH_NULL_NULL:
|
|
||||||
case TLS_RSA_WITH_NULL_MD5:
|
|
||||||
case TLS_RSA_WITH_NULL_SHA:
|
|
||||||
case TLS_RSA_EXPORT_WITH_RC4_40_MD5:
|
|
||||||
case TLS_RSA_WITH_RC4_128_MD5:
|
|
||||||
case TLS_RSA_WITH_RC4_128_SHA:
|
|
||||||
case TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5:
|
|
||||||
case TLS_RSA_WITH_IDEA_CBC_SHA:
|
|
||||||
case TLS_RSA_EXPORT_WITH_DES40_CBC_SHA:
|
|
||||||
case TLS_RSA_WITH_DES_CBC_SHA:
|
|
||||||
case TLS_RSA_WITH_3DES_EDE_CBC_SHA:
|
|
||||||
case TLS_DH_DSS_EXPORT_WITH_DES40_CBC_SHA:
|
|
||||||
case TLS_DH_DSS_WITH_DES_CBC_SHA:
|
|
||||||
case TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA:
|
|
||||||
case TLS_DH_RSA_EXPORT_WITH_DES40_CBC_SHA:
|
|
||||||
case TLS_DH_RSA_WITH_DES_CBC_SHA:
|
|
||||||
case TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA:
|
|
||||||
case TLS_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA:
|
|
||||||
case TLS_DHE_DSS_WITH_DES_CBC_SHA:
|
|
||||||
case TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA:
|
|
||||||
case TLS_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA:
|
|
||||||
case TLS_DHE_RSA_WITH_DES_CBC_SHA:
|
|
||||||
case TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA:
|
|
||||||
case TLS_DH_anon_EXPORT_WITH_RC4_40_MD5:
|
|
||||||
case TLS_DH_anon_WITH_RC4_128_MD5:
|
|
||||||
case TLS_DH_anon_EXPORT_WITH_DES40_CBC_SHA:
|
|
||||||
case TLS_DH_anon_WITH_DES_CBC_SHA:
|
|
||||||
case TLS_DH_anon_WITH_3DES_EDE_CBC_SHA:
|
|
||||||
case TLS_KRB5_WITH_DES_CBC_SHA:
|
|
||||||
case TLS_KRB5_WITH_3DES_EDE_CBC_SHA:
|
|
||||||
case TLS_KRB5_WITH_RC4_128_SHA:
|
|
||||||
case TLS_KRB5_WITH_IDEA_CBC_SHA:
|
|
||||||
case TLS_KRB5_WITH_DES_CBC_MD5:
|
|
||||||
case TLS_KRB5_WITH_3DES_EDE_CBC_MD5:
|
|
||||||
case TLS_KRB5_WITH_RC4_128_MD5:
|
|
||||||
case TLS_KRB5_WITH_IDEA_CBC_MD5:
|
|
||||||
case TLS_KRB5_EXPORT_WITH_DES_CBC_40_SHA:
|
|
||||||
case TLS_KRB5_EXPORT_WITH_RC2_CBC_40_SHA:
|
|
||||||
case TLS_KRB5_EXPORT_WITH_RC4_40_SHA:
|
|
||||||
case TLS_KRB5_EXPORT_WITH_DES_CBC_40_MD5:
|
|
||||||
case TLS_KRB5_EXPORT_WITH_RC2_CBC_40_MD5:
|
|
||||||
case TLS_KRB5_EXPORT_WITH_RC4_40_MD5:
|
|
||||||
case TLS_PSK_WITH_NULL_SHA:
|
|
||||||
case TLS_DHE_PSK_WITH_NULL_SHA:
|
|
||||||
case TLS_RSA_PSK_WITH_NULL_SHA:
|
|
||||||
case TLS_RSA_WITH_AES_128_CBC_SHA:
|
|
||||||
case TLS_DH_DSS_WITH_AES_128_CBC_SHA:
|
|
||||||
case TLS_DH_RSA_WITH_AES_128_CBC_SHA:
|
|
||||||
case TLS_DHE_DSS_WITH_AES_128_CBC_SHA:
|
|
||||||
case TLS_DHE_RSA_WITH_AES_128_CBC_SHA:
|
|
||||||
case TLS_DH_anon_WITH_AES_128_CBC_SHA:
|
|
||||||
case TLS_RSA_WITH_AES_256_CBC_SHA:
|
|
||||||
case TLS_DH_DSS_WITH_AES_256_CBC_SHA:
|
|
||||||
case TLS_DH_RSA_WITH_AES_256_CBC_SHA:
|
|
||||||
case TLS_DHE_DSS_WITH_AES_256_CBC_SHA:
|
|
||||||
case TLS_DHE_RSA_WITH_AES_256_CBC_SHA:
|
|
||||||
case TLS_DH_anon_WITH_AES_256_CBC_SHA:
|
|
||||||
case TLS_RSA_WITH_NULL_SHA256:
|
|
||||||
case TLS_RSA_WITH_AES_128_CBC_SHA256:
|
|
||||||
case TLS_RSA_WITH_AES_256_CBC_SHA256:
|
|
||||||
case TLS_DH_DSS_WITH_AES_128_CBC_SHA256:
|
|
||||||
case TLS_DH_RSA_WITH_AES_128_CBC_SHA256:
|
|
||||||
case TLS_DHE_DSS_WITH_AES_128_CBC_SHA256:
|
|
||||||
case TLS_RSA_WITH_CAMELLIA_128_CBC_SHA:
|
|
||||||
case TLS_DH_DSS_WITH_CAMELLIA_128_CBC_SHA:
|
|
||||||
case TLS_DH_RSA_WITH_CAMELLIA_128_CBC_SHA:
|
|
||||||
case TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA:
|
|
||||||
case TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA:
|
|
||||||
case TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA:
|
|
||||||
case TLS_DHE_RSA_WITH_AES_128_CBC_SHA256:
|
|
||||||
case TLS_DH_DSS_WITH_AES_256_CBC_SHA256:
|
|
||||||
case TLS_DH_RSA_WITH_AES_256_CBC_SHA256:
|
|
||||||
case TLS_DHE_DSS_WITH_AES_256_CBC_SHA256:
|
|
||||||
case TLS_DHE_RSA_WITH_AES_256_CBC_SHA256:
|
|
||||||
case TLS_DH_anon_WITH_AES_128_CBC_SHA256:
|
|
||||||
case TLS_DH_anon_WITH_AES_256_CBC_SHA256:
|
|
||||||
case TLS_RSA_WITH_CAMELLIA_256_CBC_SHA:
|
|
||||||
case TLS_DH_DSS_WITH_CAMELLIA_256_CBC_SHA:
|
|
||||||
case TLS_DH_RSA_WITH_CAMELLIA_256_CBC_SHA:
|
|
||||||
case TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA:
|
|
||||||
case TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA:
|
|
||||||
case TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA:
|
|
||||||
case TLS_PSK_WITH_RC4_128_SHA:
|
|
||||||
case TLS_PSK_WITH_3DES_EDE_CBC_SHA:
|
|
||||||
case TLS_PSK_WITH_AES_128_CBC_SHA:
|
|
||||||
case TLS_PSK_WITH_AES_256_CBC_SHA:
|
|
||||||
case TLS_DHE_PSK_WITH_RC4_128_SHA:
|
|
||||||
case TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA:
|
|
||||||
case TLS_DHE_PSK_WITH_AES_128_CBC_SHA:
|
|
||||||
case TLS_DHE_PSK_WITH_AES_256_CBC_SHA:
|
|
||||||
case TLS_RSA_PSK_WITH_RC4_128_SHA:
|
|
||||||
case TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA:
|
|
||||||
case TLS_RSA_PSK_WITH_AES_128_CBC_SHA:
|
|
||||||
case TLS_RSA_PSK_WITH_AES_256_CBC_SHA:
|
|
||||||
case TLS_RSA_WITH_SEED_CBC_SHA:
|
|
||||||
case TLS_DH_DSS_WITH_SEED_CBC_SHA:
|
|
||||||
case TLS_DH_RSA_WITH_SEED_CBC_SHA:
|
|
||||||
case TLS_DHE_DSS_WITH_SEED_CBC_SHA:
|
|
||||||
case TLS_DHE_RSA_WITH_SEED_CBC_SHA:
|
|
||||||
case TLS_DH_anon_WITH_SEED_CBC_SHA:
|
|
||||||
case TLS_RSA_WITH_AES_128_GCM_SHA256:
|
|
||||||
case TLS_RSA_WITH_AES_256_GCM_SHA384:
|
|
||||||
case TLS_DH_RSA_WITH_AES_128_GCM_SHA256:
|
|
||||||
case TLS_DH_RSA_WITH_AES_256_GCM_SHA384:
|
|
||||||
case TLS_DH_DSS_WITH_AES_128_GCM_SHA256:
|
|
||||||
case TLS_DH_DSS_WITH_AES_256_GCM_SHA384:
|
|
||||||
case TLS_DH_anon_WITH_AES_128_GCM_SHA256:
|
|
||||||
case TLS_DH_anon_WITH_AES_256_GCM_SHA384:
|
|
||||||
case TLS_PSK_WITH_AES_128_GCM_SHA256:
|
|
||||||
case TLS_PSK_WITH_AES_256_GCM_SHA384:
|
|
||||||
case TLS_RSA_PSK_WITH_AES_128_GCM_SHA256:
|
|
||||||
case TLS_RSA_PSK_WITH_AES_256_GCM_SHA384:
|
|
||||||
case TLS_PSK_WITH_AES_128_CBC_SHA256:
|
|
||||||
case TLS_PSK_WITH_AES_256_CBC_SHA384:
|
|
||||||
case TLS_PSK_WITH_NULL_SHA256:
|
|
||||||
case TLS_PSK_WITH_NULL_SHA384:
|
|
||||||
case TLS_DHE_PSK_WITH_AES_128_CBC_SHA256:
|
|
||||||
case TLS_DHE_PSK_WITH_AES_256_CBC_SHA384:
|
|
||||||
case TLS_DHE_PSK_WITH_NULL_SHA256:
|
|
||||||
case TLS_DHE_PSK_WITH_NULL_SHA384:
|
|
||||||
case TLS_RSA_PSK_WITH_AES_128_CBC_SHA256:
|
|
||||||
case TLS_RSA_PSK_WITH_AES_256_CBC_SHA384:
|
|
||||||
case TLS_RSA_PSK_WITH_NULL_SHA256:
|
|
||||||
case TLS_RSA_PSK_WITH_NULL_SHA384:
|
|
||||||
case TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256:
|
|
||||||
case TLS_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256:
|
|
||||||
case TLS_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256:
|
|
||||||
case TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256:
|
|
||||||
case TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256:
|
|
||||||
case TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA256:
|
|
||||||
case TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256:
|
|
||||||
case TLS_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256:
|
|
||||||
case TLS_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256:
|
|
||||||
case TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256:
|
|
||||||
case TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256:
|
|
||||||
case TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA256:
|
|
||||||
case TLS_EMPTY_RENEGOTIATION_INFO_SCSV:
|
|
||||||
case TLS_ECDH_ECDSA_WITH_NULL_SHA:
|
|
||||||
case TLS_ECDH_ECDSA_WITH_RC4_128_SHA:
|
|
||||||
case TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA:
|
|
||||||
case TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA:
|
|
||||||
case TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA:
|
|
||||||
case TLS_ECDHE_ECDSA_WITH_NULL_SHA:
|
|
||||||
case TLS_ECDHE_ECDSA_WITH_RC4_128_SHA:
|
|
||||||
case TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA:
|
|
||||||
case TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA:
|
|
||||||
case TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA:
|
|
||||||
case TLS_ECDH_RSA_WITH_NULL_SHA:
|
|
||||||
case TLS_ECDH_RSA_WITH_RC4_128_SHA:
|
|
||||||
case TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA:
|
|
||||||
case TLS_ECDH_RSA_WITH_AES_128_CBC_SHA:
|
|
||||||
case TLS_ECDH_RSA_WITH_AES_256_CBC_SHA:
|
|
||||||
case TLS_ECDHE_RSA_WITH_NULL_SHA:
|
|
||||||
case TLS_ECDHE_RSA_WITH_RC4_128_SHA:
|
|
||||||
case TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA:
|
|
||||||
case TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA:
|
|
||||||
case TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA:
|
|
||||||
case TLS_ECDH_anon_WITH_NULL_SHA:
|
|
||||||
case TLS_ECDH_anon_WITH_RC4_128_SHA:
|
|
||||||
case TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA:
|
|
||||||
case TLS_ECDH_anon_WITH_AES_128_CBC_SHA:
|
|
||||||
case TLS_ECDH_anon_WITH_AES_256_CBC_SHA:
|
|
||||||
case TLS_SRP_SHA_WITH_3DES_EDE_CBC_SHA:
|
|
||||||
case TLS_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA:
|
|
||||||
case TLS_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA:
|
|
||||||
case TLS_SRP_SHA_WITH_AES_128_CBC_SHA:
|
|
||||||
case TLS_SRP_SHA_RSA_WITH_AES_128_CBC_SHA:
|
|
||||||
case TLS_SRP_SHA_DSS_WITH_AES_128_CBC_SHA:
|
|
||||||
case TLS_SRP_SHA_WITH_AES_256_CBC_SHA:
|
|
||||||
case TLS_SRP_SHA_RSA_WITH_AES_256_CBC_SHA:
|
|
||||||
case TLS_SRP_SHA_DSS_WITH_AES_256_CBC_SHA:
|
|
||||||
case TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256:
|
|
||||||
case TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384:
|
|
||||||
case TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256:
|
|
||||||
case TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384:
|
|
||||||
case TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256:
|
|
||||||
case TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384:
|
|
||||||
case TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256:
|
|
||||||
case TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384:
|
|
||||||
case TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256:
|
|
||||||
case TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384:
|
|
||||||
case TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256:
|
|
||||||
case TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384:
|
|
||||||
case TLS_ECDHE_PSK_WITH_RC4_128_SHA:
|
|
||||||
case TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA:
|
|
||||||
case TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA:
|
|
||||||
case TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA:
|
|
||||||
case TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256:
|
|
||||||
case TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384:
|
|
||||||
case TLS_ECDHE_PSK_WITH_NULL_SHA:
|
|
||||||
case TLS_ECDHE_PSK_WITH_NULL_SHA256:
|
|
||||||
case TLS_ECDHE_PSK_WITH_NULL_SHA384:
|
|
||||||
case TLS_RSA_WITH_ARIA_128_CBC_SHA256:
|
|
||||||
case TLS_RSA_WITH_ARIA_256_CBC_SHA384:
|
|
||||||
case TLS_DH_DSS_WITH_ARIA_128_CBC_SHA256:
|
|
||||||
case TLS_DH_DSS_WITH_ARIA_256_CBC_SHA384:
|
|
||||||
case TLS_DH_RSA_WITH_ARIA_128_CBC_SHA256:
|
|
||||||
case TLS_DH_RSA_WITH_ARIA_256_CBC_SHA384:
|
|
||||||
case TLS_DHE_DSS_WITH_ARIA_128_CBC_SHA256:
|
|
||||||
case TLS_DHE_DSS_WITH_ARIA_256_CBC_SHA384:
|
|
||||||
case TLS_DHE_RSA_WITH_ARIA_128_CBC_SHA256:
|
|
||||||
case TLS_DHE_RSA_WITH_ARIA_256_CBC_SHA384:
|
|
||||||
case TLS_DH_anon_WITH_ARIA_128_CBC_SHA256:
|
|
||||||
case TLS_DH_anon_WITH_ARIA_256_CBC_SHA384:
|
|
||||||
case TLS_ECDHE_ECDSA_WITH_ARIA_128_CBC_SHA256:
|
|
||||||
case TLS_ECDHE_ECDSA_WITH_ARIA_256_CBC_SHA384:
|
|
||||||
case TLS_ECDH_ECDSA_WITH_ARIA_128_CBC_SHA256:
|
|
||||||
case TLS_ECDH_ECDSA_WITH_ARIA_256_CBC_SHA384:
|
|
||||||
case TLS_ECDHE_RSA_WITH_ARIA_128_CBC_SHA256:
|
|
||||||
case TLS_ECDHE_RSA_WITH_ARIA_256_CBC_SHA384:
|
|
||||||
case TLS_ECDH_RSA_WITH_ARIA_128_CBC_SHA256:
|
|
||||||
case TLS_ECDH_RSA_WITH_ARIA_256_CBC_SHA384:
|
|
||||||
case TLS_RSA_WITH_ARIA_128_GCM_SHA256:
|
|
||||||
case TLS_RSA_WITH_ARIA_256_GCM_SHA384:
|
|
||||||
case TLS_DH_RSA_WITH_ARIA_128_GCM_SHA256:
|
|
||||||
case TLS_DH_RSA_WITH_ARIA_256_GCM_SHA384:
|
|
||||||
case TLS_DH_DSS_WITH_ARIA_128_GCM_SHA256:
|
|
||||||
case TLS_DH_DSS_WITH_ARIA_256_GCM_SHA384:
|
|
||||||
case TLS_DH_anon_WITH_ARIA_128_GCM_SHA256:
|
|
||||||
case TLS_DH_anon_WITH_ARIA_256_GCM_SHA384:
|
|
||||||
case TLS_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256:
|
|
||||||
case TLS_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384:
|
|
||||||
case TLS_ECDH_RSA_WITH_ARIA_128_GCM_SHA256:
|
|
||||||
case TLS_ECDH_RSA_WITH_ARIA_256_GCM_SHA384:
|
|
||||||
case TLS_PSK_WITH_ARIA_128_CBC_SHA256:
|
|
||||||
case TLS_PSK_WITH_ARIA_256_CBC_SHA384:
|
|
||||||
case TLS_DHE_PSK_WITH_ARIA_128_CBC_SHA256:
|
|
||||||
case TLS_DHE_PSK_WITH_ARIA_256_CBC_SHA384:
|
|
||||||
case TLS_RSA_PSK_WITH_ARIA_128_CBC_SHA256:
|
|
||||||
case TLS_RSA_PSK_WITH_ARIA_256_CBC_SHA384:
|
|
||||||
case TLS_PSK_WITH_ARIA_128_GCM_SHA256:
|
|
||||||
case TLS_PSK_WITH_ARIA_256_GCM_SHA384:
|
|
||||||
case TLS_RSA_PSK_WITH_ARIA_128_GCM_SHA256:
|
|
||||||
case TLS_RSA_PSK_WITH_ARIA_256_GCM_SHA384:
|
|
||||||
case TLS_ECDHE_PSK_WITH_ARIA_128_CBC_SHA256:
|
|
||||||
case TLS_ECDHE_PSK_WITH_ARIA_256_CBC_SHA384:
|
|
||||||
case TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256:
|
|
||||||
case TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384:
|
|
||||||
case TLS_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256:
|
|
||||||
case TLS_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384:
|
|
||||||
case TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256:
|
|
||||||
case TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384:
|
|
||||||
case TLS_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256:
|
|
||||||
case TLS_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384:
|
|
||||||
case TLS_RSA_WITH_CAMELLIA_128_GCM_SHA256:
|
|
||||||
case TLS_RSA_WITH_CAMELLIA_256_GCM_SHA384:
|
|
||||||
case TLS_DH_RSA_WITH_CAMELLIA_128_GCM_SHA256:
|
|
||||||
case TLS_DH_RSA_WITH_CAMELLIA_256_GCM_SHA384:
|
|
||||||
case TLS_DH_DSS_WITH_CAMELLIA_128_GCM_SHA256:
|
|
||||||
case TLS_DH_DSS_WITH_CAMELLIA_256_GCM_SHA384:
|
|
||||||
case TLS_DH_anon_WITH_CAMELLIA_128_GCM_SHA256:
|
|
||||||
case TLS_DH_anon_WITH_CAMELLIA_256_GCM_SHA384:
|
|
||||||
case TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256:
|
|
||||||
case TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384:
|
|
||||||
case TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256:
|
|
||||||
case TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384:
|
|
||||||
case TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256:
|
|
||||||
case TLS_PSK_WITH_CAMELLIA_256_GCM_SHA384:
|
|
||||||
case TLS_RSA_PSK_WITH_CAMELLIA_128_GCM_SHA256:
|
|
||||||
case TLS_RSA_PSK_WITH_CAMELLIA_256_GCM_SHA384:
|
|
||||||
case TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256:
|
|
||||||
case TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384:
|
|
||||||
case TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256:
|
|
||||||
case TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384:
|
|
||||||
case TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256:
|
|
||||||
case TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384:
|
|
||||||
case TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256:
|
|
||||||
case TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384:
|
|
||||||
case TLS_RSA_WITH_AES_128_CCM:
|
|
||||||
case TLS_RSA_WITH_AES_256_CCM:
|
|
||||||
case TLS_RSA_WITH_AES_128_CCM_8:
|
|
||||||
case TLS_RSA_WITH_AES_256_CCM_8:
|
|
||||||
case TLS_PSK_WITH_AES_128_CCM:
|
|
||||||
case TLS_PSK_WITH_AES_256_CCM:
|
|
||||||
case TLS_PSK_WITH_AES_128_CCM_8:
|
|
||||||
case TLS_PSK_WITH_AES_256_CCM_8:
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool check_http2_tls_version(SSL *ssl) {
|
bool check_http2_tls_version(SSL *ssl) {
|
||||||
|
|
Loading…
Reference in New Issue