summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_pkt.c
diff options
context:
space:
mode:
authorjsing <>2026-04-03 07:26:20 +0000
committerjsing <>2026-04-03 07:26:20 +0000
commitba2c2f6b31a0d325528b48899a6a12f650464c2f (patch)
tree680bca915e405d2100094a849246e952c52d5230 /src/lib/libssl/ssl_pkt.c
parent34c9ebaffbf06ba9d8883c4adf8061fd670f54c4 (diff)
downloadopenbsd-ba2c2f6b31a0d325528b48899a6a12f650464c2f.tar.gz
openbsd-ba2c2f6b31a0d325528b48899a6a12f650464c2f.tar.bz2
openbsd-ba2c2f6b31a0d325528b48899a6a12f650464c2f.zip
Remove ssl_server_legacy_first_packet()
This has not been reachable since we made the TLSv1.3 stack the default entry point - tls13_record_layer_read_record() will send a protocol version alert and raise an error, which means we never transition into the legacy stack. ok kenjiro@
Diffstat (limited to 'src/lib/libssl/ssl_pkt.c')
-rw-r--r--src/lib/libssl/ssl_pkt.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/libssl/ssl_pkt.c b/src/lib/libssl/ssl_pkt.c
index d2921228c1..683dc94a37 100644
--- a/src/lib/libssl/ssl_pkt.c
+++ b/src/lib/libssl/ssl_pkt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_pkt.c,v 1.70 2026/04/03 07:17:36 jsing Exp $ */ 1/* $OpenBSD: ssl_pkt.c,v 1.71 2026/04/03 07:26:20 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 *
@@ -352,12 +352,6 @@ ssl3_get_record(SSL *s)
352 352
353 s->rstate = SSL_ST_READ_BODY; 353 s->rstate = SSL_ST_READ_BODY;
354 354
355 if (s->server && s->first_packet) {
356 if ((ret = ssl_server_legacy_first_packet(s)) != 1)
357 return (ret);
358 ret = -1;
359 }
360
361 CBS_init(&header, s->packet, SSL3_RT_HEADER_LENGTH); 355 CBS_init(&header, s->packet, SSL3_RT_HEADER_LENGTH);
362 356
363 /* Pull apart the header into the SSL3_RECORD_INTERNAL */ 357 /* Pull apart the header into the SSL3_RECORD_INTERNAL */