diff options
author | Matt Caswell <matt@openssl.org> | 2016-09-29 11:43:37 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-09-29 15:09:02 +0100 |
commit | 1ff8434040b35f35c27f77ef064481622490bba9 (patch) | |
tree | 32a48d1ef1a6bacb4311e2e6a7e2073cb53fac88 /config.com | |
parent | ac8cc3efb26fa91c4f29463044cfe9e7070ebc14 (diff) | |
download | openssl-1ff8434040b35f35c27f77ef064481622490bba9.zip openssl-1ff8434040b35f35c27f77ef064481622490bba9.tar.gz openssl-1ff8434040b35f35c27f77ef064481622490bba9.tar.bz2 |
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: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'config.com')
0 files changed, 0 insertions, 0 deletions