aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/tls/tls_version.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/tls/tls_version.cpp b/src/lib/tls/tls_version.cpp
index 2b8b68566..33db02bce 100644
--- a/src/lib/tls/tls_version.cpp
+++ b/src/lib/tls/tls_version.cpp
@@ -59,28 +59,28 @@ bool Protocol_Version::known_version() const
bool Protocol_Version::supports_negotiable_signature_algorithms() const
{
- return (m_version == Protocol_Version::TLS_V12 ||
- m_version == Protocol_Version::DTLS_V12);
+ return (m_version != Protocol_Version::TLS_V10 &&
+ m_version != Protocol_Version::TLS_V11 &&
+ m_version != Protocol_Version::DTLS_V10);
}
bool Protocol_Version::supports_explicit_cbc_ivs() const
{
- return (m_version == Protocol_Version::TLS_V11 ||
- m_version == Protocol_Version::TLS_V12 ||
- m_version == Protocol_Version::DTLS_V10 ||
- m_version == Protocol_Version::DTLS_V12);
+ return (m_version != Protocol_Version::TLS_V10);
}
bool Protocol_Version::supports_ciphersuite_specific_prf() const
{
- return (m_version == Protocol_Version::TLS_V12 ||
- m_version == Protocol_Version::DTLS_V12);
+ return (m_version != Protocol_Version::TLS_V10 &&
+ m_version != Protocol_Version::TLS_V11 &&
+ m_version != Protocol_Version::DTLS_V10);
}
bool Protocol_Version::supports_aead_modes() const
{
- return (m_version == Protocol_Version::TLS_V12 ||
- m_version == Protocol_Version::DTLS_V12);
+ return (m_version != Protocol_Version::TLS_V10 &&
+ m_version != Protocol_Version::TLS_V11 &&
+ m_version != Protocol_Version::DTLS_V10);
}
}