8 #ifndef BOTAN_TLS_PROTOCOL_VERSION_H__
9 #define BOTAN_TLS_PROTOCOL_VERSION_H__
11 #include <botan/loadstor.h>
55 m_version(static_cast<uint16_t>(named_version)) {}
62 m_version((static_cast<uint16_t>(major) << 8) | minor) {}
67 bool valid()
const {
return (m_version != 0); }
72 bool known_version()
const;
92 bool is_datagram_protocol()
const;
97 bool supports_negotiable_signature_algorithms()
const;
102 bool supports_explicit_cbc_ivs()
const;
107 bool supports_ciphersuite_specific_prf()
const;
109 bool supports_aead_modes()
const;
116 return (m_version == other.m_version);
124 return (m_version != other.m_version);
137 return (*
this == other || *
this > other);
uint8_t minor_version() const
bool operator>(const X509_Time &t1, const X509_Time &t2)
static Protocol_Version latest_dtls_version()
bool operator==(const Protocol_Version &other) const
Protocol_Version(Version_Code named_version)
static Protocol_Version latest_tls_version()
uint8_t major_version() const
bool operator!=(const Protocol_Version &other) const
Protocol_Version(uint8_t major, uint8_t minor)
std::string to_string(const secure_vector< uint8_t > &bytes)
bool operator>=(const Protocol_Version &other) const
uint8_t get_byte(size_t byte_num, T input)