summaryrefslogtreecommitdiff
path: root/src/lib/libssl
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl')
-rw-r--r--src/lib/libssl/ssl_tlsext.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_tlsext.c b/src/lib/libssl/ssl_tlsext.c
index d879b3304e..f6fbf43dfd 100644
--- a/src/lib/libssl/ssl_tlsext.c
+++ b/src/lib/libssl/ssl_tlsext.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_tlsext.c,v 1.159 2025/12/04 21:16:17 beck Exp $ */ 1/* $OpenBSD: ssl_tlsext.c,v 1.160 2026/05/09 11:45:50 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2016, 2017, 2019 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2016, 2017, 2019 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> 4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org>
@@ -2558,6 +2558,7 @@ tlsext_clienthello_hash_extension(SSL *s, uint16_t type, CBS *cbs)
2558 * cookie may be added, padding may be removed. 2558 * cookie may be added, padding may be removed.
2559 */ 2559 */
2560 struct tls13_ctx *ctx = s->tls13; 2560 struct tls13_ctx *ctx = s->tls13;
2561 uint16_t len = CBS_len(cbs);
2561 2562
2562 if (type == TLSEXT_TYPE_early_data || type == TLSEXT_TYPE_cookie || 2563 if (type == TLSEXT_TYPE_early_data || type == TLSEXT_TYPE_cookie ||
2563 type == TLSEXT_TYPE_padding) 2564 type == TLSEXT_TYPE_padding)
@@ -2571,6 +2572,8 @@ tlsext_clienthello_hash_extension(SSL *s, uint16_t type, CBS *cbs)
2571 */ 2572 */
2572 if (type == TLSEXT_TYPE_pre_shared_key || type == TLSEXT_TYPE_key_share) 2573 if (type == TLSEXT_TYPE_pre_shared_key || type == TLSEXT_TYPE_key_share)
2573 return 1; 2574 return 1;
2575 if (!tls13_clienthello_hash_update_bytes(ctx, (void *)&len, sizeof(len)))
2576 return 0;
2574 if (!tls13_clienthello_hash_update(ctx, cbs)) 2577 if (!tls13_clienthello_hash_update(ctx, cbs))
2575 return 0; 2578 return 0;
2576 2579