LibTLS: Remove all uses of VLAs

This commit is contained in:
Ali Mohammad Pur 2021-05-13 12:27:31 +04:30 committed by Andreas Kling
commit 98ecb95709
Notes: sideshowbarker 2024-07-18 18:14:11 +09:00
3 changed files with 16 additions and 16 deletions

View file

@ -141,7 +141,7 @@ ByteBuffer TLSv12::build_finished()
PacketBuilder builder { MessageType::Handshake, m_context.options.version, 12 + 64 };
builder.append((u8)HandshakeType::Finished);
u32 out_size = 12;
constexpr u32 out_size = 12;
builder.append_u24(out_size);