diff --git a/crypto/bn/bn_print.c b/crypto/bn/bn_print.c index 1451d966f78f04bdc71ef56ad9de98a69df97542..bebb466d088a27c60b9440d08aee478564771d80 100644 --- a/crypto/bn/bn_print.c +++ b/crypto/bn/bn_print.c @@ -62,7 +62,7 @@ #include #include "bn_lcl.h" -static const char *Hex="0123456789ABCDEF"; +static const char Hex[]="0123456789ABCDEF"; /* Must 'OPENSSL_free' the returned data */ char *BN_bn2hex(const BIGNUM *a) diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c index 4a814643f4b649941edb6ed11704401b7e8477e0..2df38fa75f14b0d643a4e42b793a6de2d1a85a2e 100644 --- a/crypto/cryptlib.c +++ b/crypto/cryptlib.c @@ -125,7 +125,7 @@ DECLARE_STACK_OF(CRYPTO_dynlock) IMPLEMENT_STACK_OF(CRYPTO_dynlock) /* real #defines in crypto.h, keep these upto date */ -static const char* lock_names[CRYPTO_NUM_LOCKS] = +static const char* const lock_names[CRYPTO_NUM_LOCKS] = { "<>", "err", diff --git a/crypto/x509v3/v3_utl.c b/crypto/x509v3/v3_utl.c index 7c1d26fc398bb57e15c66e17be5d77c8a48c92d2..3dba0557b86d87bb77d274c7a381af7f9b5638ac 100644 --- a/crypto/x509v3/v3_utl.c +++ b/crypto/x509v3/v3_utl.c @@ -365,7 +365,7 @@ char *hex_to_string(unsigned char *buffer, long len) char *tmp, *q; unsigned char *p; int i; - static char hexdig[] = "0123456789ABCDEF"; + const static char hexdig[] = "0123456789ABCDEF"; if(!buffer || !len) return NULL; if(!(tmp = OPENSSL_malloc(len * 3 + 1))) { X509V3err(X509V3_F_HEX_TO_STRING,ERR_R_MALLOC_FAILURE);