Make the bogokey[] global static const.
authortb <tb@openbsd.org>
Fri, 5 Aug 2022 17:08:02 +0000 (17:08 +0000)
committertb <tb@openbsd.org>
Fri, 5 Aug 2022 17:08:02 +0000 (17:08 +0000)
regress/lib/libssl/tlsext/tlsexttest.c

index a224623..ac6799a 100644 (file)
@@ -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;