summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_client.c
diff options
context:
space:
mode:
authorjsing <>2020-04-21 16:55:17 +0000
committerjsing <>2020-04-21 16:55:17 +0000
commit1844f7460b773d8974e63d5f022ffd6843c22fda (patch)
tree594de8fcf4c008ddd95ad2790318a2c619af7a78 /src/lib/libssl/tls13_client.c
parent8ab293189552d72b08283999a617fe1bfd425eab (diff)
downloadopenbsd-1844f7460b773d8974e63d5f022ffd6843c22fda.tar.gz
openbsd-1844f7460b773d8974e63d5f022ffd6843c22fda.tar.bz2
openbsd-1844f7460b773d8974e63d5f022ffd6843c22fda.zip
Consolidate TLSv1.3 constants.
Move all of the TLSv1.3 constants to the top of tls13_lib.c. Also mark these all as const so that they end up in .rodata rather than .data. ok tb@
Diffstat (limited to '')
-rw-r--r--src/lib/libssl/tls13_client.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/lib/libssl/tls13_client.c b/src/lib/libssl/tls13_client.c
index 5cd588875e..0da08f62c3 100644
--- a/src/lib/libssl/tls13_client.c
+++ b/src/lib/libssl/tls13_client.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls13_client.c,v 1.49 2020/04/17 17:16:53 jsing Exp $ */ 1/* $OpenBSD: tls13_client.c,v 1.50 2020/04/21 16:55:17 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -251,16 +251,6 @@ tls13_client_hello_sent(struct tls13_ctx *ctx)
251 return 1; 251 return 1;
252} 252}
253 253
254/*
255 * HelloRetryRequest hash - RFC 8446 section 4.1.3.
256 */
257static const uint8_t tls13_hello_retry_request_hash[] = {
258 0xcf, 0x21, 0xad, 0x74, 0xe5, 0x9a, 0x61, 0x11,
259 0xbe, 0x1d, 0x8c, 0x02, 0x1e, 0x65, 0xb8, 0x91,
260 0xc2, 0xa2, 0x11, 0x16, 0x7a, 0xbb, 0x8c, 0x5e,
261 0x07, 0x9e, 0x09, 0xe2, 0xc8, 0xa8, 0x33, 0x9c,
262};
263
264static int 254static int
265tls13_server_hello_is_legacy(CBS *cbs) 255tls13_server_hello_is_legacy(CBS *cbs)
266{ 256{