apps: Fix deprecation conditional in speed.c
authorPauli <paul.dale@oracle.com>
Thu, 16 Jan 2020 04:15:19 +0000 (14:15 +1000)
committerPauli <paul.dale@oracle.com>
Sun, 19 Jan 2020 00:38:49 +0000 (10:38 +1000)
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10819)

apps/speed.c

index 4883fe09367572ed2dad0e43c3aa9af72e285e03..9c896ec6f0530c1d9a4824e1f5331287d9d1a160 100644 (file)
@@ -1471,11 +1471,11 @@ int speed_main(int argc, char **argv)
 #if !defined(OPENSSL_NO_CAST) && !defined(OPENSSL_NO_DEPRECATED_3_0)
     CAST_KEY cast_ks;
 #endif
+#ifndef OPENSSL_NO_DEPRECATED_3_0
     static const unsigned char key16[16] = {
         0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0xf0,
         0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0xf0, 0x12
     };
-#ifndef OPENSSL_NO_DEPRECATED_3_0
     static const unsigned char key24[24] = {
         0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0xf0,
         0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0xf0, 0x12,