Constify version strings is ssl lib.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 21 Jan 2007 16:06:05 +0000 (16:06 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 21 Jan 2007 16:06:05 +0000 (16:06 +0000)
ssl/d1_lib.c
ssl/s2_lib.c
ssl/s3_lib.c
ssl/t1_lib.c

index c002b04..622d2f7 100644 (file)
@@ -61,7 +61,7 @@
 #include <openssl/objects.h>
 #include "ssl_locl.h"
 
-const char *dtls1_version_str="DTLSv1" OPENSSL_VERSION_PTEXT;
+const char dtls1_version_str[]="DTLSv1" OPENSSL_VERSION_PTEXT;
 
 SSL3_ENC_METHOD DTLSv1_enc_data={
     dtls1_enc,
index a454cac..debaece 100644 (file)
@@ -63,7 +63,7 @@
 #include <openssl/evp.h>
 #include <openssl/md5.h>
 
-const char *ssl2_version_str="SSLv2" OPENSSL_VERSION_PTEXT;
+const char ssl2_version_str[]="SSLv2" OPENSSL_VERSION_PTEXT;
 
 #define SSL2_NUM_CIPHERS (sizeof(ssl2_ciphers)/sizeof(SSL_CIPHER))
 
index 5de7bac..4527429 100644 (file)
 #include <openssl/dh.h>
 #endif
 
-const char *ssl3_version_str="SSLv3" OPENSSL_VERSION_PTEXT;
+const char ssl3_version_str[]="SSLv3" OPENSSL_VERSION_PTEXT;
 
 #define SSL3_NUM_CIPHERS       (sizeof(ssl3_ciphers)/sizeof(SSL_CIPHER))
 
index eeb6b57..9742c3f 100644 (file)
 #include <openssl/objects.h>
 #include "ssl_locl.h"
 
-const char *tls1_version_str="TLSv1" OPENSSL_VERSION_PTEXT;
+const char tls1_version_str[]="TLSv1" OPENSSL_VERSION_PTEXT;
 
 SSL3_ENC_METHOD TLSv1_enc_data={
        tls1_enc,