diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2020-08-24 06:50:08 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-24 09:29:39 +0200 |
commit | abb842ee5a9e3f7ac552ca04fe8cc2fb176c14f9 (patch) | |
tree | 2e6065e5c5533d1ea8ac33fd51020fa91d999bb2 | |
parent | 0be3937be7b7bcded9cc1473b6c33ae975fe1adb (diff) | |
download | serenity-abb842ee5a9e3f7ac552ca04fe8cc2fb176c14f9.zip |
LibTLS: Fix some debug logging
-rw-r--r-- | Libraries/LibTLS/Record.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibTLS/Record.cpp b/Libraries/LibTLS/Record.cpp index 3d468778dc..59cf3c0cbe 100644 --- a/Libraries/LibTLS/Record.cpp +++ b/Libraries/LibTLS/Record.cpp @@ -156,7 +156,7 @@ ByteBuffer TLSv12::hmac_message(const ReadonlyBytes& buf, const Optional<Readonl auto digest = hmac.digest(); auto mac = ByteBuffer::copy(digest.immutable_data(), digest.data_length()); #ifdef TLS_DEBUG - dbg() << "HMAC of the block for sequence number " << m_context.local_sequence_number; + dbg() << "HMAC of the block for sequence number " << sequence_number; print_buffer(mac); #endif return mac; @@ -242,7 +242,7 @@ ssize_t TLSv12::handle_message(const ByteBuffer& buffer) auto hmac = hmac_message({ temp_buf, 5 }, decrypted_span.slice(0, length), mac_size); auto message_mac = ByteBuffer::wrap(const_cast<u8*>(message_hmac), mac_size); if (hmac != message_mac) { - dbg() << "integrity check failed (mac length " << length << ")"; + dbg() << "integrity check failed (mac length " << mac_size << ")"; dbg() << "mac received:"; print_buffer(message_mac); dbg() << "mac computed:"; |