From 4ece7eb6f4d396008d8b4ee6beb6dca409d84882 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Fri, 31 Aug 2007 10:12:35 +0000 Subject: [PATCH] Constify seed and md2. --- crypto/md2/md2_dgst.c | 2 +- crypto/seed/seed.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/md2/md2_dgst.c b/crypto/md2/md2_dgst.c index 6f68b25c6a..c57b3da288 100644 --- a/crypto/md2/md2_dgst.c +++ b/crypto/md2/md2_dgst.c @@ -73,7 +73,7 @@ const char MD2_version[]="MD2" OPENSSL_VERSION_PTEXT; static void md2_block(MD2_CTX *c, const unsigned char *d); /* The magic S table - I have converted it to hex since it is * basically just a random byte string. */ -static MD2_INT S[256]={ +static const MD2_INT S[256]={ 0x29, 0x2E, 0x43, 0xC9, 0xA2, 0xD8, 0x7C, 0x01, 0x3D, 0x36, 0x54, 0xA1, 0xEC, 0xF0, 0x06, 0x13, 0x62, 0xA7, 0x05, 0xF3, 0xC0, 0xC7, 0x73, 0x8C, diff --git a/crypto/seed/seed.c b/crypto/seed/seed.c index 125dd7d66f..490cddfe7e 100644 --- a/crypto/seed/seed.c +++ b/crypto/seed/seed.c @@ -35,7 +35,7 @@ #include #include "seed_locl.h" -static seed_word SS[4][256] = { { +static const seed_word SS[4][256] = { { 0x2989a1a8, 0x05858184, 0x16c6d2d4, 0x13c3d3d0, 0x14445054, 0x1d0d111c, 0x2c8ca0ac, 0x25052124, 0x1d4d515c, 0x03434340, 0x18081018, 0x1e0e121c, 0x11415150, 0x3cccf0fc, 0x0acac2c8, 0x23436360, 0x28082028, 0x04444044, 0x20002020, 0x1d8d919c, 0x20c0e0e0, 0x22c2e2e0, 0x08c8c0c8, 0x17071314, -- 2.34.1