mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibTLS: Even more ByteBuffer -> Span conversion
This commit is contained in:
parent
f82b0a78ef
commit
e517505e35
Notes:
sideshowbarker
2024-07-19 00:44:31 +09:00
Author: https://github.com/awesomekling
Commit: e517505e35
8 changed files with 18 additions and 23 deletions
|
@ -157,7 +157,7 @@ ByteBuffer TLSv12::build_finished()
|
|||
auto dummy = ByteBuffer::create_zeroed(0);
|
||||
|
||||
auto digest = m_context.handshake_hash.digest();
|
||||
auto hashbuf = ByteBuffer::wrap(const_cast<u8*>(digest.immutable_data()), m_context.handshake_hash.digest_size());
|
||||
auto hashbuf = ReadonlyBytes { digest.immutable_data(), m_context.handshake_hash.digest_size() };
|
||||
pseudorandom_function(outbuffer, m_context.master_key, (const u8*)"client finished", 15, hashbuf, dummy);
|
||||
|
||||
builder.append(outbuffer.bytes());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue