summaryrefslogtreecommitdiff
path: root/src/lib/libssl/d1_both.c
diff options
context:
space:
mode:
authorjsing <>2014-12-14 16:07:26 +0000
committerjsing <>2014-12-14 16:07:26 +0000
commit07ed3281a22942e6f12d90c428ffd29e5f4f1ddb (patch)
tree0b3f794835578b05409792e2fce6c456572f9896 /src/lib/libssl/d1_both.c
parent4756f9cf06b8309fcf4d75e1791149090f6740cd (diff)
downloadopenbsd-07ed3281a22942e6f12d90c428ffd29e5f4f1ddb.tar.gz
openbsd-07ed3281a22942e6f12d90c428ffd29e5f4f1ddb.tar.bz2
openbsd-07ed3281a22942e6f12d90c428ffd29e5f4f1ddb.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 'src/lib/libssl/d1_both.c')
-rw-r--r--src/lib/libssl/d1_both.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libssl/d1_both.c b/src/lib/libssl/d1_both.c
index 2dc26e38cb..bff683d06c 100644
--- a/src/lib/libssl/d1_both.c
+++ b/src/lib/libssl/d1_both.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: d1_both.c,v 1.30 2014/11/16 14:12:47 jsing Exp $ */ 1/* $OpenBSD: d1_both.c,v 1.31 2014/12/14 16:07:26 jsing Exp $ */
2/* 2/*
3 * DTLS implementation written by Nagendra Modadugu 3 * DTLS implementation written by Nagendra Modadugu
4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. 4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
@@ -1140,6 +1140,8 @@ dtls1_buffer_message(SSL *s, int is_ccs)
1140 hm_fragment *frag; 1140 hm_fragment *frag;
1141 unsigned char seq64be[8]; 1141 unsigned char seq64be[8];
1142 1142
1143 /* Buffer the messsage in order to handle DTLS retransmissions. */
1144
1143 /* 1145 /*
1144 * This function is called immediately after a message has 1146 * This function is called immediately after a message has
1145 * been serialized 1147 * been serialized