diff options
author | lloyd <[email protected]> | 2011-12-27 14:35:08 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-12-27 14:35:08 +0000 |
commit | b6e85c76a8dd5034fd6e6e0d7d84dfa0b806d6f3 (patch) | |
tree | 558046603af66b93f3ad289f62f2f284e8789240 /src | |
parent | f6bdf4436ad68736cf4d995b00395219947c9e20 (diff) |
Add the code for DHE/DSS with RC4, not 'official' but the codepoint
was included in a now-expired ID (draft-ietf-tls-56-bit-ciphersuites-01)
and mentioned in Rescorla's SSL book.
Not implemented by OpenSSL but does appear to be included in GnuTLS.
Diffstat (limited to 'src')
-rw-r--r-- | src/tls/tls_magic.h | 1 | ||||
-rw-r--r-- | src/tls/tls_suites.cpp | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/tls/tls_magic.h b/src/tls/tls_magic.h index 00898738e..4dd9b2bb4 100644 --- a/src/tls/tls_magic.h +++ b/src/tls/tls_magic.h @@ -113,6 +113,7 @@ enum Ciphersuite_Code { TLS_DHE_DSS_WITH_AES_128_CBC_SHA256 = 0x0040, TLS_DHE_DSS_WITH_AES_256_CBC_SHA256 = 0x006A, TLS_DHE_DSS_WITH_SEED_CBC_SHA = 0x0099, + TLS_DHE_DSS_WITH_RC4_128_SHA = 0x0066, TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA = 0x0016, TLS_DHE_RSA_WITH_AES_128_CBC_SHA = 0x0033, diff --git a/src/tls/tls_suites.cpp b/src/tls/tls_suites.cpp index 07cbec608..4bce127eb 100644 --- a/src/tls/tls_suites.cpp +++ b/src/tls/tls_suites.cpp @@ -81,6 +81,12 @@ TLS_Ciphersuite_Algos CipherSuite::lookup_ciphersuite(u16bit suite) TLS_ALGO_MAC_SHA1 | TLS_ALGO_CIPHER_SEED_CBC); + if(suite == TLS_DHE_DSS_WITH_RC4_SHA) + return TLS_Ciphersuite_Algos(TLS_ALGO_SIGNER_DSA | + TLS_ALGO_KEYEXCH_DH | + TLS_ALGO_MAC_SHA1 | + TLS_ALGO_CIPHER_RC4_128); + if(suite == TLS_DHE_DSS_WITH_AES_256_CBC_SHA) return TLS_Ciphersuite_Algos(TLS_ALGO_SIGNER_DSA | TLS_ALGO_KEYEXCH_DH | |