summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibTLS/Record.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-11 01:06:34 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-11 01:27:46 +0100
commit80d4e830a0a95a41e3a3a6ccdc938fdfc4c7430b (patch)
tree80482418dd76af80034d5dc215db51c12ce27f67 /Userland/Libraries/LibTLS/Record.cpp
parent8b1108e4858f797c9216dc8ae4a3918ad50c73b4 (diff)
downloadserenity-80d4e830a0a95a41e3a3a6ccdc938fdfc4c7430b.zip
Everywhere: Pass AK::ReadonlyBytes by value
Diffstat (limited to 'Userland/Libraries/LibTLS/Record.cpp')
-rw-r--r--Userland/Libraries/LibTLS/Record.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibTLS/Record.cpp b/Userland/Libraries/LibTLS/Record.cpp
index d654fd4f62..b38ad69945 100644
--- a/Userland/Libraries/LibTLS/Record.cpp
+++ b/Userland/Libraries/LibTLS/Record.cpp
@@ -273,7 +273,7 @@ void TLSv12::ensure_hmac(size_t digest_size, bool local)
m_hmac_remote = move(hmac);
}
-ByteBuffer TLSv12::hmac_message(const ReadonlyBytes& buf, const Optional<ReadonlyBytes> buf2, size_t mac_length, bool local)
+ByteBuffer TLSv12::hmac_message(ReadonlyBytes buf, const Optional<ReadonlyBytes> buf2, size_t mac_length, bool local)
{
u64 sequence_number = AK::convert_between_host_and_network_endian(local ? m_context.local_sequence_number : m_context.remote_sequence_number);
ensure_hmac(mac_length, local);