summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_srvr.c
diff options
context:
space:
mode:
authorjsing <>2026-06-06 15:24:26 +0000
committerjsing <>2026-06-06 15:24:26 +0000
commit34bb3178dc6005cb170c6f002dfd49e503c94bf8 (patch)
treef982a8a1b74e4fa1d9d89087ed58c156734b9b83 /src/lib/libssl/ssl_srvr.c
parentea2a1c165f2ed603b827d3bc22b989c30325f200 (diff)
downloadopenbsd-34bb3178dc6005cb170c6f002dfd49e503c94bf8.tar.gz
openbsd-34bb3178dc6005cb170c6f002dfd49e503c94bf8.tar.bz2
openbsd-34bb3178dc6005cb170c6f002dfd49e503c94bf8.zip
Move DTLS change cipher spec handling to its own function.
When a TLSv1.2 change cipher spec message has been built, call a separate function that can handle the DTLS specific processing rather than including this in the TLS code. ok kenjiro@ tb@
Diffstat (limited to 'src/lib/libssl/ssl_srvr.c')
-rw-r--r--src/lib/libssl/ssl_srvr.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/libssl/ssl_srvr.c b/src/lib/libssl/ssl_srvr.c
index f9c4ef918a..73bdeacce0 100644
--- a/src/lib/libssl/ssl_srvr.c
+++ b/src/lib/libssl/ssl_srvr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_srvr.c,v 1.169 2026/05/31 14:34:44 jsing Exp $ */ 1/* $OpenBSD: ssl_srvr.c,v 1.170 2026/06/06 15:24:26 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 *
@@ -2321,11 +2321,8 @@ ssl3_send_server_change_cipher_spec(SSL *s)
2321 s->init_off = 0; 2321 s->init_off = 0;
2322 2322
2323 if (SSL_is_dtls(s)) { 2323 if (SSL_is_dtls(s)) {
2324 s->d1->handshake_write_seq = 2324 if (!dtls12_ccs_built(s))
2325 s->d1->next_handshake_write_seq; 2325 goto err;
2326 dtls1_set_message_header_int(s, SSL3_MT_CCS, 0,
2327 s->d1->handshake_write_seq, 0, 0);
2328 dtls1_buffer_message(s, 1);
2329 } 2326 }
2330 2327
2331 s->s3->hs.state = SSL3_ST_SW_CHANGE_B; 2328 s->s3->hs.state = SSL3_ST_SW_CHANGE_B;