diff options
author | lloyd <[email protected]> | 2012-08-02 19:35:04 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-08-02 19:35:04 +0000 |
commit | 91d53016abbba671f4ec05296d7c174f22692c8e (patch) | |
tree | f3615e9eefc16ddcb6903bad9a3b3d611f48a878 /src/tls | |
parent | a1b2edc62cfc398f07582eddef5d7050d4eb795d (diff) |
Use TLS v1.0 PRF unless the version supports a ciphersuite specific PRF
Diffstat (limited to 'src/tls')
-rw-r--r-- | src/tls/tls_handshake_state.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tls/tls_handshake_state.cpp b/src/tls/tls_handshake_state.cpp index d79ed15d4..023b1816a 100644 --- a/src/tls/tls_handshake_state.cpp +++ b/src/tls/tls_handshake_state.cpp @@ -153,10 +153,6 @@ KDF* Handshake_State::protocol_specific_prf() { return get_kdf("SSL3-PRF"); } - else if(version() == Protocol_Version::TLS_V10 || version() == Protocol_Version::TLS_V11) - { - return get_kdf("TLS-PRF"); - } else if(version().supports_ciphersuite_specific_prf()) { if(suite.mac_algo() == "MD5" || suite.mac_algo() == "SHA-1") @@ -164,6 +160,11 @@ KDF* Handshake_State::protocol_specific_prf() return get_kdf("TLS-12-PRF(" + suite.mac_algo() + ")"); } + else + { + // TLS v1.0, v1.1 and DTLS v1.0 + return get_kdf("TLS-PRF"); + } throw Internal_Error("Unknown version code " + version().to_string()); } |