]> granicus.if.org Git - openssl/commitdiff
Update from fips2 branch.
authorDr. Stephen Henson <steve@openssl.org>
Sat, 3 Feb 2007 17:32:14 +0000 (17:32 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 3 Feb 2007 17:32:14 +0000 (17:32 +0000)
crypto/bn/bn_print.c
crypto/cryptlib.c
crypto/x509v3/v3_utl.c

index 055d048856cd3801e50d562e15b883d69676732a..810dde34e15c634d06aa82d4a5e735872fb5f6d1 100644 (file)
@@ -62,7 +62,7 @@
 #include <openssl/buffer.h>
 #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)
index 315559c71ceffadaff4c00e503925c14f2328f76..86af760d381384a4dbf17d34a789fdb34438057e 100644 (file)
@@ -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] =
        {
        "<<ERROR>>",
        "err",
index 7c1d26fc398bb57e15c66e17be5d77c8a48c92d2..3dba0557b86d87bb77d274c7a381af7f9b5638ac 100644 (file)
@@ -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);