From 1844f7460b773d8974e63d5f022ffd6843c22fda Mon Sep 17 00:00:00 2001 From: jsing <> Date: Tue, 21 Apr 2020 16:55:17 +0000 Subject: 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@ --- src/lib/libssl/tls13_client.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/lib/libssl/tls13_client.c') 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 @@ -/* $OpenBSD: tls13_client.c,v 1.49 2020/04/17 17:16:53 jsing Exp $ */ +/* $OpenBSD: tls13_client.c,v 1.50 2020/04/21 16:55:17 jsing Exp $ */ /* * Copyright (c) 2018, 2019 Joel Sing * @@ -251,16 +251,6 @@ tls13_client_hello_sent(struct tls13_ctx *ctx) return 1; } -/* - * HelloRetryRequest hash - RFC 8446 section 4.1.3. - */ -static const uint8_t tls13_hello_retry_request_hash[] = { - 0xcf, 0x21, 0xad, 0x74, 0xe5, 0x9a, 0x61, 0x11, - 0xbe, 0x1d, 0x8c, 0x02, 0x1e, 0x65, 0xb8, 0x91, - 0xc2, 0xa2, 0x11, 0x16, 0x7a, 0xbb, 0x8c, 0x5e, - 0x07, 0x9e, 0x09, 0xe2, 0xc8, 0xa8, 0x33, 0x9c, -}; - static int tls13_server_hello_is_legacy(CBS *cbs) { -- cgit v1.2.3-55-g6feb