Provide functions for starting, finishing and writing SSL handshake
authorjsing <jsing@openbsd.org>
Sun, 14 Dec 2014 16:07:26 +0000 (16:07 +0000)
committerjsing <jsing@openbsd.org>
Sun, 14 Dec 2014 16:07:26 +0000 (16:07 +0000)
commit0d55d5127d49766ecc3a2700eb31a8836ff95886
treeb0150b6ff379ca3109a2fd7c16ea03a0d53c8480
parent265bd06d0247dbe1cba638c444f1775a9bf8c407
Provide functions for starting, finishing and writing SSL handshake
messages. This will allow for removal of repeated/duplicated code.

Additionally, DTLS was written by wholesale copying of the SSL/TLS code,
with some DTLS specifics being added to the duplicated code. Since these
SSL handshake message functions know how to handle both SSL/TLS and DTLS,
upon conversion the duplicate versions will become identical (or close to),
at which point the DTLS versions can be removed and the SSL/TLS versions
used for both protocols.

Partially based on similar changes in OpenSSL.

ok miod@
lib/libssl/d1_both.c
lib/libssl/s3_lib.c
lib/libssl/src/ssl/d1_both.c
lib/libssl/src/ssl/s3_lib.c
lib/libssl/src/ssl/ssl3.h
lib/libssl/ssl3.h