diff options
author | Jack Lloyd <[email protected]> | 2020-11-28 10:55:31 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2021-04-01 14:38:30 -0400 |
commit | 587f178d75fe327feb84df32c3d1b8a479f01d23 (patch) | |
tree | 6a3bd7ce31b01263c749a807f73d4b0fa4d0fe23 /src/lib/tls/msg_hello_verify.cpp | |
parent | 3a432a91e4c3c1b89bafbb706bb6712851756525 (diff) |
Remove TLS 1.0/1.1 and DTLS 1.0
Diffstat (limited to 'src/lib/tls/msg_hello_verify.cpp')
-rw-r--r-- | src/lib/tls/msg_hello_verify.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/tls/msg_hello_verify.cpp b/src/lib/tls/msg_hello_verify.cpp index bc93af9d6..3e9360cc7 100644 --- a/src/lib/tls/msg_hello_verify.cpp +++ b/src/lib/tls/msg_hello_verify.cpp @@ -19,8 +19,7 @@ Hello_Verify_Request::Hello_Verify_Request(const std::vector<uint8_t>& buf) Protocol_Version version(buf[0], buf[1]); - if(version != Protocol_Version::DTLS_V10 && - version != Protocol_Version::DTLS_V12) + if(!version.is_datagram_protocol()) { throw Decoding_Error("Unknown version from server in hello verify request"); } @@ -54,7 +53,7 @@ std::vector<uint8_t> Hello_Verify_Request::serialize() const negotiated (RFC 6347, section 4.2.1) */ - Protocol_Version format_version(Protocol_Version::DTLS_V10); + Protocol_Version format_version(254, 255); // DTLS 1.0 std::vector<uint8_t> bits; bits.push_back(format_version.major_version()); |