diff options
author | jsing <> | 2017-10-08 16:24:02 +0000 |
---|---|---|
committer | jsing <> | 2017-10-08 16:24:02 +0000 |
commit | 759dd02e3ff981ea9d2869cfe079c8f201eba19d (patch) | |
tree | 3353b68b503515d359d87d0e023b6b9bc1e1453c /src/lib/libssl/s3_lib.c | |
parent | a5b4d2c04b558a0cdaf1eaacb3f83fcc27e23de7 (diff) | |
download | openbsd-759dd02e3ff981ea9d2869cfe079c8f201eba19d.tar.gz openbsd-759dd02e3ff981ea9d2869cfe079c8f201eba19d.tar.bz2 openbsd-759dd02e3ff981ea9d2869cfe079c8f201eba19d.zip |
Convert ssl3_send_change_cipher_spec() to use CBB and make it handle DTLS,
which allows us to drop dtls1_send_change_cipher_spec() entirely.
ok inoguchi@
Diffstat (limited to 'src/lib/libssl/s3_lib.c')
-rw-r--r-- | src/lib/libssl/s3_lib.c | 12 |
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) | |||
1553 | int | 1553 | int |
1554 | ssl3_handshake_write(SSL *s) | 1554 | ssl3_handshake_write(SSL *s) |
1555 | { | 1555 | { |
1556 | return ssl3_record_write(s, SSL3_RT_HANDSHAKE); | ||
1557 | } | ||
1558 | |||
1559 | int | ||
1560 | ssl3_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 | ||
1562 | int | 1568 | int |