mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
LibTLS+LibCrypto: Remove all remaining uses of ByteBuffer::wrap()
This commit is contained in:
parent
050eb5afa8
commit
d5600e966a
6 changed files with 29 additions and 24 deletions
|
@ -153,14 +153,14 @@ ByteBuffer TLSv12::build_finished()
|
|||
builder.append_u24(out_size);
|
||||
|
||||
u8 out[out_size];
|
||||
auto outbuffer = ByteBuffer::wrap(out, out_size);
|
||||
auto outbuffer = Bytes { out, out_size };
|
||||
auto dummy = ByteBuffer::create_zeroed(0);
|
||||
|
||||
auto digest = m_context.handshake_hash.digest();
|
||||
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());
|
||||
builder.append(outbuffer);
|
||||
auto packet = builder.build();
|
||||
update_packet(packet);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue