LibTLS: Even more ByteBuffer -> Span conversion

This commit is contained in:
Andreas Kling 2020-12-19 16:23:52 +01:00
commit e517505e35
Notes: sideshowbarker 2024-07-19 00:44:31 +09:00
8 changed files with 18 additions and 23 deletions

View file

@ -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());