summaryrefslogtreecommitdiff
path: root/regress/lib/libssl
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2022-08-05 17:08:03 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2022-08-05 17:08:03 +0000
commit40e9bd51b6e1b6716a7bdc8780654813aa6c7aed (patch)
tree84c2697b5d8dd7505829e0588df92911b8e17767 /regress/lib/libssl
parente78fa01610e6966e7c9b2706bac865e8fefe019f (diff)
Make the bogokey[] global static const.
Diffstat (limited to 'regress/lib/libssl')
-rw-r--r--regress/lib/libssl/tlsext/tlsexttest.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/regress/lib/libssl/tlsext/tlsexttest.c b/regress/lib/libssl/tlsext/tlsexttest.c
index a2246238814..ac6799a7214 100644
--- a/regress/lib/libssl/tlsext/tlsexttest.c
+++ b/regress/lib/libssl/tlsext/tlsexttest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tlsexttest.c,v 1.71 2022/08/05 17:06:17 tb Exp $ */
+/* $OpenBSD: tlsexttest.c,v 1.72 2022/08/05 17:08:02 tb Exp $ */
/*
* Copyright (c) 2017 Joel Sing <jsing@openbsd.org>
* Copyright (c) 2017 Doug Hogan <doug@openbsd.org>
@@ -3708,6 +3708,13 @@ test_tlsext_keyshare_client(void)
return (failure);
}
+static const uint8_t bogokey[] = {
+ 0xe5, 0xe8, 0x5a, 0xb9, 0x7e, 0x12, 0x62, 0xe3,
+ 0xd8, 0x7f, 0x6e, 0x3c, 0xec, 0xa6, 0x8b, 0x99,
+ 0x45, 0x77, 0x8e, 0x11, 0xb3, 0xb9, 0x12, 0xb6,
+ 0xbe, 0x35, 0xca, 0x51, 0x76, 0x1e, 0xe8, 0x22,
+};
+
static int
test_tlsext_keyshare_server(void)
{
@@ -3722,12 +3729,6 @@ test_tlsext_keyshare_server(void)
int alert;
CBB cbb;
CBS cbs;
- uint8_t bogokey[] = {
- 0xe5, 0xe8, 0x5a, 0xb9, 0x7e, 0x12, 0x62, 0xe3,
- 0xd8, 0x7f, 0x6e, 0x3c, 0xec, 0xa6, 0x8b, 0x99,
- 0x45, 0x77, 0x8e, 0x11, 0xb3, 0xb9, 0x12, 0xb6,
- 0xbe, 0x35, 0xca, 0x51, 0x76, 0x1e, 0xe8, 0x22,
- };
failure = 1;