X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=ssl%2Fpacket_locl.h;h=8e553e62b5ac29e731cb65da6d4e83c29fb20670;hb=bd3d8c12606c48388be61db0681ac759804b6100;hp=cd702653370f61c561dc4938a2363e63cfc17b3d;hpb=a2b7e65526d92123f143cc7f248b4ac017372faf;p=openssl.git diff --git a/ssl/packet_locl.h b/ssl/packet_locl.h index cd70265337..8e553e62b5 100644 --- a/ssl/packet_locl.h +++ b/ssl/packet_locl.h @@ -700,11 +700,11 @@ int WPACKET_close(WPACKET *pkt); int WPACKET_finish(WPACKET *pkt); /* - * Iterates through all the sub-packets and writes out their lengths as if they + * Iterate through all the sub-packets and write out their lengths as if they * were being closed. The lengths will be overwritten with the final lengths * when the sub-packets are eventually closed (which may be different if more - * data is added to the WPACKET). This function will fail if a sub-packet is of - * 0 length and WPACKET_FLAGS_ABANDON_ON_ZERO_LENGTH is used. + * data is added to the WPACKET). This function fails if a sub-packet is of 0 + * length and WPACKET_FLAGS_ABANDON_ON_ZERO_LENGTH is set. */ int WPACKET_fill_lengths(WPACKET *pkt); @@ -833,6 +833,9 @@ int WPACKET_set_max_size(WPACKET *pkt, size_t maxsize); /* Copy |len| bytes of data from |*src| into the WPACKET. */ int WPACKET_memcpy(WPACKET *pkt, const void *src, size_t len); +/* Set |len| bytes of data to |ch| into the WPACKET. */ +int WPACKET_memset(WPACKET *pkt, int ch, size_t len); + /* * Copy |len| bytes of data from |*src| into the WPACKET and prefix with its * length (consuming |lenbytes| of data for the length). Don't call this