diff options
author | 2014-12-14 16:07:26 +0000 | |
---|---|---|
committer | 2014-12-14 16:07:26 +0000 | |
commit | 0d55d5127d49766ecc3a2700eb31a8836ff95886 (patch) | |
tree | b0150b6ff379ca3109a2fd7c16ea03a0d53c8480 /lib/libssl/d1_both.c | |
parent | Remove trailing whitespace. (diff) | |
download | wireguard-openbsd-0d55d5127d49766ecc3a2700eb31a8836ff95886.tar.xz wireguard-openbsd-0d55d5127d49766ecc3a2700eb31a8836ff95886.zip |
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@
Diffstat (limited to 'lib/libssl/d1_both.c')
-rw-r--r-- | lib/libssl/d1_both.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libssl/d1_both.c b/lib/libssl/d1_both.c index 2dc26e38cbf..bff683d06cf 100644 --- a/lib/libssl/d1_both.c +++ b/lib/libssl/d1_both.c @@ -1,4 +1,4 @@ -/* $OpenBSD: d1_both.c,v 1.30 2014/11/16 14:12:47 jsing Exp $ */ +/* $OpenBSD: d1_both.c,v 1.31 2014/12/14 16:07:26 jsing Exp $ */ /* * DTLS implementation written by Nagendra Modadugu * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. @@ -1140,6 +1140,8 @@ dtls1_buffer_message(SSL *s, int is_ccs) hm_fragment *frag; unsigned char seq64be[8]; + /* Buffer the messsage in order to handle DTLS retransmissions. */ + /* * This function is called immediately after a message has * been serialized |