Provide a new WPACKET function for filling in all the lengths
authorMatt Caswell <matt@openssl.org>
Fri, 13 Jan 2017 16:59:18 +0000 (16:59 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 30 Jan 2017 10:17:52 +0000 (10:17 +0000)
commita2b7e65526d92123f143cc7f248b4ac017372faf
treea3e48eb5b683558de0c0a97504802ea61dcc2bd6
parentbe62b22b527e89061f88c0b9eaefb0410982f41e
Provide a new WPACKET function for filling in all the lengths

For the psk extension we need to fill in all the lengths of the message so
far, even though we haven't closed the WPACKET yet. This provides a function
to do that.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2259)
ssl/packet.c
ssl/packet_locl.h