Harmonise setting the header and closing construction
authorMatt Caswell <matt@openssl.org>
Fri, 30 Sep 2016 09:38:32 +0000 (10:38 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 3 Oct 2016 15:25:48 +0000 (16:25 +0100)
commit4a01c59f3689db930d056c84f548d525f651cc6b
tree4675daccaca8228a76062c00a14fa9cebaff1604
parent5923ad4bbe5d13c2fcc11f7849594db838ea57bd
Harmonise setting the header and closing construction

Ensure all message types work the same way including CCS so that the state
machine doesn't need to know about special cases. Put all the special logic
into ssl_set_handshake_header() and ssl_close_construct_packet().

Reviewed-by: Rich Salz <rsalz@openssl.org>
ssl/s3_lib.c
ssl/ssl_locl.h
ssl/statem/statem_clnt.c
ssl/statem/statem_dtls.c
ssl/statem/statem_lib.c
ssl/statem/statem_srvr.c