Tidy up ssl3_digest_cached_records logic.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 16 Jun 2015 13:44:29 +0000 (14:44 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 23 Jun 2015 21:24:09 +0000 (22:24 +0100)
commit124037fdc0571b5bd9022412348e9979a1726a31
tree05ed987e95a605a9cbe076d047c1c4309d263ca5
parent74924dcb3802640d7e2ae2e80ca6515d0a53de7a
Tidy up ssl3_digest_cached_records logic.

Rewrite ssl3_digest_cached_records handling. Only digest cached records
if digest array is NULL: this means it is safe to call
ssl3_digest_cached_records multiple times (subsequent calls are no op).

Remove flag TLS1_FLAGS_KEEP_HANDSHAKE instead only update handshake buffer
if digest array is NULL.

Add additional "keep" parameter to ssl3_digest_cached_records to indicate
if the handshake buffer should be retained after digesting cached records
(needed for TLS 1.2 client authentication).

Reviewed-by: Matt Caswell <matt@openssl.org>
include/openssl/ssl3.h
ssl/d1_srvr.c
ssl/s3_clnt.c
ssl/s3_enc.c
ssl/s3_srvr.c
ssl/ssl_locl.h
ssl/t1_enc.c