From: Andy Polyakov Date: Tue, 18 Sep 2007 20:59:33 +0000 (+0000) Subject: Wire DES weak_keys to read-only segment [from HEAD]. X-Git-Tag: OpenSSL_0_9_8f~29 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ba75b4e7505baf49520d9aaa75da2f6197d8259f;p=oweals%2Fopenssl.git Wire DES weak_keys to read-only segment [from HEAD]. --- diff --git a/crypto/des/set_key.c b/crypto/des/set_key.c index 55efe03f42..a43ef3c881 100644 --- a/crypto/des/set_key.c +++ b/crypto/des/set_key.c @@ -115,7 +115,7 @@ int DES_check_key_parity(const_DES_cblock *key) * (and actual cblock values). */ #define NUM_WEAK_KEY 16 -static DES_cblock weak_keys[NUM_WEAK_KEY]={ +static const DES_cblock weak_keys[NUM_WEAK_KEY]={ /* weak keys */ {0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01}, {0xFE,0xFE,0xFE,0xFE,0xFE,0xFE,0xFE,0xFE},