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/d1_srvr.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/d1_srvr.c')
-rw-r--r-- | src/lib/libssl/d1_srvr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/d1_srvr.c b/src/lib/libssl/d1_srvr.c index 3de0a72f27..4217519783 100644 --- a/src/lib/libssl/d1_srvr.c +++ b/src/lib/libssl/d1_srvr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: d1_srvr.c,v 1.92 2018/04/07 17:02:34 jsing Exp $ */ | 1 | /* $OpenBSD: d1_srvr.c,v 1.93 2018/08/24 17:30:32 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. |
@@ -185,7 +185,7 @@ dtls1_send_hello_verify_request(SSL *s) | |||
185 | return 0; | 185 | return 0; |
186 | } | 186 | } |
187 | 187 | ||
188 | if (!ssl3_handshake_msg_start_cbb(s, &cbb, &verify, | 188 | if (!ssl3_handshake_msg_start(s, &cbb, &verify, |
189 | DTLS1_MT_HELLO_VERIFY_REQUEST)) | 189 | DTLS1_MT_HELLO_VERIFY_REQUEST)) |
190 | goto err; | 190 | goto err; |
191 | if (!CBB_add_u16(&verify, s->version)) | 191 | if (!CBB_add_u16(&verify, s->version)) |
@@ -194,7 +194,7 @@ dtls1_send_hello_verify_request(SSL *s) | |||
194 | goto err; | 194 | goto err; |
195 | if (!CBB_add_bytes(&cookie, D1I(s)->cookie, D1I(s)->cookie_len)) | 195 | if (!CBB_add_bytes(&cookie, D1I(s)->cookie, D1I(s)->cookie_len)) |
196 | goto err; | 196 | goto err; |
197 | if (!ssl3_handshake_msg_finish_cbb(s, &cbb)) | 197 | if (!ssl3_handshake_msg_finish(s, &cbb)) |
198 | goto err; | 198 | goto err; |
199 | 199 | ||
200 | S3I(s)->hs.state = DTLS1_ST_SW_HELLO_VERIFY_REQUEST_B; | 200 | S3I(s)->hs.state = DTLS1_ST_SW_HELLO_VERIFY_REQUEST_B; |