Skip to content
Commit 1ff84340 authored by Matt Caswell's avatar Matt Caswell
Browse files

Add the WPACKET_reserve_bytes() function



WPACKET_allocate_bytes() requires you to know the size of the data you
are allocating for, before you create it. Sometimes this isn't the case,
for example we know the maximum size that a signature will be before we
create it, but not the actual size. WPACKET_reserve_bytes() enables us to
reserve bytes in the WPACKET, but not count them as written yet. We then
subsequently need to acall WPACKET_allocate_bytes to actually count them as
written.

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent ac8cc3ef
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment