• M
    Add the WPACKET_reserve_bytes() function · 1ff84340
    Matt Caswell 提交于
    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: NRich Salz <rsalz@openssl.org>
    1ff84340
packet_locl.h 23.8 KB