summaryrefslogtreecommitdiffstats
path: root/crypto/sha
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2007-01-21 13:07:17 +0000
committerDr. Stephen Henson <steve@openssl.org>2007-01-21 13:07:17 +0000
commit560b79cbff4bc4c6898a862b18b4a00961099095 (patch)
treef8e7aa2e98aef172f3ce73b4094ffd1c1e5f7145 /crypto/sha
parenta6d799d7052fadb14316a0d8f9ee3abf3d9f482c (diff)
Constify version strings and some structures.
Diffstat (limited to 'crypto/sha')
-rw-r--r--crypto/sha/sha1dgst.c2
-rw-r--r--crypto/sha/sha256.c2
-rw-r--r--crypto/sha/sha512.c2
-rw-r--r--crypto/sha/sha_dgst.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/crypto/sha/sha1dgst.c b/crypto/sha/sha1dgst.c
index 447ce53e17..50d1925cde 100644
--- a/crypto/sha/sha1dgst.c
+++ b/crypto/sha/sha1dgst.c
@@ -64,7 +64,7 @@
#include <openssl/opensslv.h>
-const char *SHA1_version="SHA1" OPENSSL_VERSION_PTEXT;
+const char SHA1_version[]="SHA1" OPENSSL_VERSION_PTEXT;
/* The implementation is in ../md32_common.h */
diff --git a/crypto/sha/sha256.c b/crypto/sha/sha256.c
index f687ca8321..8952d87673 100644
--- a/crypto/sha/sha256.c
+++ b/crypto/sha/sha256.c
@@ -14,7 +14,7 @@
#include <openssl/sha.h>
#include <openssl/opensslv.h>
-const char *SHA256_version="SHA-256" OPENSSL_VERSION_PTEXT;
+const char SHA256_version[]="SHA-256" OPENSSL_VERSION_PTEXT;
int SHA224_Init (SHA256_CTX *c)
{
diff --git a/crypto/sha/sha512.c b/crypto/sha/sha512.c
index e7a7e5dea8..439fa02385 100644
--- a/crypto/sha/sha512.c
+++ b/crypto/sha/sha512.c
@@ -50,7 +50,7 @@
#include "cryptlib.h"
-const char *SHA512_version="SHA-512" OPENSSL_VERSION_PTEXT;
+const char SHA512_version[]="SHA-512" OPENSSL_VERSION_PTEXT;
#if defined(_M_IX86) || defined(_M_AMD64) || defined(__i386) || defined(__x86_64)
#define SHA512_BLOCK_CAN_MANAGE_UNALIGNED_DATA
diff --git a/crypto/sha/sha_dgst.c b/crypto/sha/sha_dgst.c
index 60465d0c3e..70eb56032c 100644
--- a/crypto/sha/sha_dgst.c
+++ b/crypto/sha/sha_dgst.c
@@ -64,7 +64,7 @@
#include <openssl/opensslv.h>
-const char *SHA_version="SHA" OPENSSL_VERSION_PTEXT;
+const char SHA_version[]="SHA" OPENSSL_VERSION_PTEXT;
/* The implementation is in ../md32_common.h */