mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:07:35 +00:00
LibTLS: Even more ByteBuffer -> Span conversion
This commit is contained in:
parent
f82b0a78ef
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