diff options
author | jsing <> | 2018-08-24 17:30:32 +0000 |
---|---|---|
committer | jsing <> | 2018-08-24 17:30:32 +0000 |
commit | 4ca92876cd1aa45f9ac5ea123afc11e1ef4574cb (patch) | |
tree | e155083a9870a0f69abb8ecb24bb8173c2a5a5c6 /src/lib/libssl/ssl_both.c | |
parent | 889f96509d5657ac456e0494e76acae731f1fc78 (diff) | |
download | openbsd-4ca92876cd1aa45f9ac5ea123afc11e1ef4574cb.tar.gz openbsd-4ca92876cd1aa45f9ac5ea123afc11e1ef4574cb.tar.bz2 openbsd-4ca92876cd1aa45f9ac5ea123afc11e1ef4574cb.zip |
Clean up handshake message start/finish functions.
Now that all handshake messages are created using CBB, remove the non-CBB
ssl3_handshake_msg_start()/ssl3_handshake_msg_finish() functions. Rename
the CBB variants by dropping the _cbb suffix.
ok bcook@ inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/ssl_both.c')
-rw-r--r-- | src/lib/libssl/ssl_both.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/ssl_both.c b/src/lib/libssl/ssl_both.c index 03f95977f7..788505e602 100644 --- a/src/lib/libssl/ssl_both.c +++ b/src/lib/libssl/ssl_both.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_both.c,v 1.11 2017/10/08 16:24:02 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_both.c,v 1.12 2018/08/24 17:30:32 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 | * |
@@ -191,12 +191,12 @@ ssl3_send_finished(SSL *s, int a, int b, const char *sender, int slen) | |||
191 | S3I(s)->previous_server_finished_len = md_len; | 191 | S3I(s)->previous_server_finished_len = md_len; |
192 | } | 192 | } |
193 | 193 | ||
194 | if (!ssl3_handshake_msg_start_cbb(s, &cbb, &finished, | 194 | if (!ssl3_handshake_msg_start(s, &cbb, &finished, |
195 | SSL3_MT_FINISHED)) | 195 | SSL3_MT_FINISHED)) |
196 | goto err; | 196 | goto err; |
197 | if (!CBB_add_bytes(&finished, S3I(s)->tmp.finish_md, md_len)) | 197 | if (!CBB_add_bytes(&finished, S3I(s)->tmp.finish_md, md_len)) |
198 | goto err; | 198 | goto err; |
199 | if (!ssl3_handshake_msg_finish_cbb(s, &cbb)) | 199 | if (!ssl3_handshake_msg_finish(s, &cbb)) |
200 | goto err; | 200 | goto err; |
201 | 201 | ||
202 | S3I(s)->hs.state = b; | 202 | S3I(s)->hs.state = b; |