summaryrefslogtreecommitdiff
path: root/src/lib/libssl/s3_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/s3_lib.c')
-rw-r--r--src/lib/libssl/s3_lib.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/lib/libssl/s3_lib.c b/src/lib/libssl/s3_lib.c
index a05116cb8f..89af1ef3bf 100644
--- a/src/lib/libssl/s3_lib.c
+++ b/src/lib/libssl/s3_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s3_lib.c,v 1.161 2017/09/25 18:04:08 jsing Exp $ */ 1/* $OpenBSD: s3_lib.c,v 1.162 2017/10/08 16:24:02 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -1553,10 +1553,16 @@ ssl3_handshake_msg_finish_cbb(SSL *s, CBB *handshake)
1553int 1553int
1554ssl3_handshake_write(SSL *s) 1554ssl3_handshake_write(SSL *s)
1555{ 1555{
1556 return ssl3_record_write(s, SSL3_RT_HANDSHAKE);
1557}
1558
1559int
1560ssl3_record_write(SSL *s, int type)
1561{
1556 if (SSL_IS_DTLS(s)) 1562 if (SSL_IS_DTLS(s))
1557 return dtls1_do_write(s, SSL3_RT_HANDSHAKE); 1563 return dtls1_do_write(s, type);
1558 1564
1559 return ssl3_do_write(s, SSL3_RT_HANDSHAKE); 1565 return ssl3_do_write(s, type);
1560} 1566}
1561 1567
1562int 1568int