diff options
author | stelar7 <dudedbz@gmail.com> | 2023-04-14 00:03:39 +0200 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2023-04-14 12:32:04 +0100 |
commit | c30ee1b89b43a43b107d82a1a55c957501941f27 (patch) | |
tree | 556ab6ba6afe19d57436244eb90cc6b43eafb6b0 /Userland/Libraries/LibTLS/Record.cpp | |
parent | 611a235a52d065d16540f04ed4b662a6ca649570 (diff) | |
download | serenity-c30ee1b89b43a43b107d82a1a55c957501941f27.zip |
LibTLS: Update HandshakeType value names to match IANA registry values
Diffstat (limited to 'Userland/Libraries/LibTLS/Record.cpp')
-rw-r--r-- | Userland/Libraries/LibTLS/Record.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibTLS/Record.cpp b/Userland/Libraries/LibTLS/Record.cpp index 29fb54a8d3..8dbe3ae028 100644 --- a/Userland/Libraries/LibTLS/Record.cpp +++ b/Userland/Libraries/LibTLS/Record.cpp @@ -71,8 +71,8 @@ void TLSv12::update_packet(ByteBuffer& packet) if (packet[0] != (u8)ContentType::CHANGE_CIPHER_SPEC) { if (packet[0] == (u8)ContentType::HANDSHAKE && packet.size() > header_size) { - u8 handshake_type = packet[header_size]; - if (handshake_type != HandshakeType::HelloRequest && handshake_type != HandshakeType::HelloVerifyRequest) { + auto handshake_type = static_cast<HandshakeType>(packet[header_size]); + if (handshake_type != HandshakeType::HELLO_REQUEST_RESERVED && handshake_type != HandshakeType::HELLO_VERIFY_REQUEST_RESERVED) { update_hash(packet.bytes(), header_size); } } |