diff options
Diffstat (limited to 'src/tls/tls_handshake_state.cpp')
-rw-r--r-- | src/tls/tls_handshake_state.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/tls/tls_handshake_state.cpp b/src/tls/tls_handshake_state.cpp index 304366719..d79ed15d4 100644 --- a/src/tls/tls_handshake_state.cpp +++ b/src/tls/tls_handshake_state.cpp @@ -157,14 +157,10 @@ KDF* Handshake_State::protocol_specific_prf() { return get_kdf("TLS-PRF"); } - else if(version() == Protocol_Version::TLS_V12) + else if(version().supports_ciphersuite_specific_prf()) { - if(suite.mac_algo() == "MD5" || - suite.mac_algo() == "SHA-1" || - suite.mac_algo() == "SHA-256") - { + if(suite.mac_algo() == "MD5" || suite.mac_algo() == "SHA-1") return get_kdf("TLS-12-PRF(SHA-256)"); - } return get_kdf("TLS-12-PRF(" + suite.mac_algo() + ")"); } |