RT3999: Remove sub-component version strings
authorRich Salz <rsalz@akamai.com>
Fri, 7 Aug 2015 21:09:30 +0000 (17:09 -0400)
committerRich Salz <rsalz@openssl.org>
Mon, 10 Aug 2015 16:13:32 +0000 (12:13 -0400)
Especially since after the #ifdef cleanups this is not useful.

Reviewed-by: Matt Caswell <matt@openssl.org>
37 files changed:
crypto/aes/aes_misc.c
crypto/asn1/asn1_lib.c
crypto/bf/bf_ecb.c
crypto/bn/bn_lib.c
crypto/camellia/cmll_misc.c
crypto/cast/c_ecb.c
crypto/conf/conf_def.c
crypto/conf/conf_lib.c
crypto/des/ecb_enc.c
crypto/dh/dh_lib.c
crypto/dsa/dsa_lib.c
crypto/ec/ec_lib.c
crypto/ecdh/ech_lib.c
crypto/ecdsa/ecs_lib.c
crypto/evp/evp_enc.c
crypto/idea/i_ecb.c
crypto/lhash/lhash.c
crypto/md2/md2_dgst.c
crypto/md4/md4_dgst.c
crypto/md5/md5_dgst.c
crypto/pem/pem_lib.c
crypto/rand/md_rand.c
crypto/rc2/rc2_ecb.c
crypto/rc4/rc4_skey.c
crypto/rc5/rc5_ecb.c
crypto/ripemd/rmd_dgst.c
crypto/rsa/rsa_lib.c
crypto/sha/sha1dgst.c
crypto/sha/sha256.c
crypto/sha/sha512.c
crypto/stack/stack.c
crypto/txt_db/txt_db.c
crypto/x509/x509_vfy.c
include/openssl/opensslv.h
ssl/d1_lib.c
ssl/s3_lib.c
ssl/t1_lib.c

index 68a48bac1bbb769fc2569ed4adfa66010242bcfa..17754427592a80800c913b60c8d468835ace66b8 100644 (file)
@@ -53,8 +53,6 @@
 #include <openssl/aes.h>
 #include "aes_locl.h"
 
-const char AES_version[] = "AES" OPENSSL_VERSION_PTEXT;
-
 const char *AES_options(void)
 {
 #ifdef FULL_UNROLL
index b611f35f220d2a90c45e461e1c0bebb77a761e62..94b5ad5d9169fd949333e166db77e2688674e60b 100644 (file)
@@ -64,7 +64,6 @@
 static int asn1_get_length(const unsigned char **pp, int *inf, long *rl,
                            int max);
 static void asn1_put_length(unsigned char **pp, int length);
-const char ASN1_version[] = "ASN.1" OPENSSL_VERSION_PTEXT;
 
 static int _asn1_check_infinite_end(const unsigned char **p, long len)
 {
index 967a7f5507b13a04ee20ac434016bc664881ddfa..7a45a02537dd81d693f9da558108950ede4dd253 100644 (file)
@@ -66,8 +66,6 @@
  * SECURITY WORKSHOP, CAMBRIDGE, U.K., DECEMBER 9-11, 1993)
  */
 
-const char BF_version[] = "Blowfish" OPENSSL_VERSION_PTEXT;
-
 const char *BF_options(void)
 {
 #ifdef BF_PTR
index f10f44a86fa65841e3409169c8a9a8a673880632..4e133ce8ca8e106fb6fe0b4ca8705961a7a1b02c 100644 (file)
@@ -66,8 +66,6 @@
 #include "internal/cryptlib.h"
 #include "bn_lcl.h"
 
-const char BN_version[] = "Big Number" OPENSSL_VERSION_PTEXT;
-
 /* This stuff appears to be completely unused, so is deprecated */
 #ifndef OPENSSL_NO_DEPRECATED
 /*-
index 4e159061bd10cfb14f9c3aeef96f86d321bbe8e9..d73499b5c5b5126c23f586278b3c35dfff151105 100644 (file)
@@ -53,8 +53,6 @@
 #include <openssl/camellia.h>
 #include "cmll_locl.h"
 
-const char CAMELLIA_version[] = "CAMELLIA" OPENSSL_VERSION_PTEXT;
-
 int Camellia_set_key(const unsigned char *userKey, const int bits,
                      CAMELLIA_KEY *key)
 {
index 4793f28edfd4706683c698b538cb0e5cb7e1c98f..2430bb5faaa713c073a814cd17affd3a0e1065f4 100644 (file)
@@ -60,8 +60,6 @@
 #include "cast_lcl.h"
 #include <openssl/opensslv.h>
 
-const char CAST_version[] = "CAST" OPENSSL_VERSION_PTEXT;
-
 void CAST_ecb_encrypt(const unsigned char *in, unsigned char *out,
                       const CAST_KEY *ks, int enc)
 {
index 098fc8ec324c2a052aaefdc1ec92bdd809724979..b4903772e35241f089aa00bb0ea8b50ad9f0a6de 100644 (file)
@@ -88,8 +88,6 @@ static int def_dump(const CONF *conf, BIO *bp);
 static int def_is_number(const CONF *conf, char c);
 static int def_to_int(const CONF *conf, char c);
 
-const char CONF_def_version[] = "CONF_def" OPENSSL_VERSION_PTEXT;
-
 static CONF_METHOD default_method = {
     "OpenSSL default",
     def_create,
index 838a6456a453cb4f9933ebe254b72629ba928523..12a061c2631d1c049da91f3254e379c15a900049 100644 (file)
@@ -64,8 +64,6 @@
 #include <openssl/conf_api.h>
 #include <openssl/lhash.h>
 
-const char CONF_version[] = "CONF" OPENSSL_VERSION_PTEXT;
-
 static CONF_METHOD *default_CONF_method = NULL;
 
 /* Init a 'CONF' structure from an old LHASH */
index f97fd971dc2089ec4e151d52cb5e5f6d94af22ba..d638a49328f3705d90f27ca37dec5419e988c532 100644 (file)
@@ -61,8 +61,6 @@
 #include <openssl/opensslv.h>
 #include <openssl/bio.h>
 
-OPENSSL_GLOBAL const char libdes_version[] = "libdes" OPENSSL_VERSION_PTEXT;
-OPENSSL_GLOBAL const char DES_version[] = "DES" OPENSSL_VERSION_PTEXT;
 
 const char *DES_options(void)
 {
index cce2514bbfca272bacdd50e620f1ffe09a06a315..4e087d03570bcaeaf2a022f9c33b7028830106fe 100644 (file)
@@ -64,8 +64,6 @@
 # include <openssl/engine.h>
 #endif
 
-const char DH_version[] = "Diffie-Hellman" OPENSSL_VERSION_PTEXT;
-
 static const DH_METHOD *default_DH_method = NULL;
 
 void DH_set_default_method(const DH_METHOD *meth)
index cb59e7ebb0a5241d0a0f02764f5486515bee01e7..a4a81634775c2ee0f08bcaeec6d34ea9a8ce4338 100644 (file)
@@ -70,8 +70,6 @@
 # include <openssl/dh.h>
 #endif
 
-const char DSA_version[] = "DSA" OPENSSL_VERSION_PTEXT;
-
 static const DSA_METHOD *default_DSA_method = NULL;
 
 void DSA_set_default_method(const DSA_METHOD *meth)
index 3ddaa5d8fba016d3bb8d353adb43f22047a2e882..cd08a5553c45ab66b1c6c52209ef87b1b8e30fd9 100644 (file)
@@ -68,8 +68,6 @@
 
 #include "ec_lcl.h"
 
-const char EC_version[] = "EC" OPENSSL_VERSION_PTEXT;
-
 /* functions for EC_GROUP objects */
 
 EC_GROUP *EC_GROUP_new(const EC_METHOD *meth)
index 62734bc96f7c40b67ae64a037a896933afa5b66f..363d2fe23b3603944117b15aa5d11cf53c8caddd 100644 (file)
@@ -74,8 +74,6 @@
 #endif
 #include <openssl/err.h>
 
-const char ECDH_version[] = "ECDH" OPENSSL_VERSION_PTEXT;
-
 static const ECDH_METHOD *default_ECDH_method = NULL;
 
 static void *ecdh_data_new(void);
index cabf6ecbf17bd372f7b0a9301f5cace2f7cae1b0..0db35346de9bb5c9a471c1c2aae260ee8b2d094a 100644 (file)
@@ -61,8 +61,6 @@
 #include <openssl/err.h>
 #include <openssl/bn.h>
 
-const char ECDSA_version[] = "ECDSA" OPENSSL_VERSION_PTEXT;
-
 static const ECDSA_METHOD *default_ECDSA_method = NULL;
 
 static void *ecdsa_data_new(void);
index 125556ea6f4e070f0b6ac4cf46db8f8fcab2bdba..405cbb0c1b520a08a3dffdc31024c044c25ba930 100644 (file)
@@ -66,8 +66,6 @@
 #endif
 #include "evp_locl.h"
 
-const char EVP_version[] = "EVP" OPENSSL_VERSION_PTEXT;
-
 void EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *ctx)
 {
     memset(ctx, 0, sizeof(*ctx));
index a6b879a9277b52b099fb261261c21373e0616f6d..4ed206ecd1e78821e84abcb6d0964568f2245c65 100644 (file)
@@ -60,8 +60,6 @@
 #include "idea_lcl.h"
 #include <openssl/opensslv.h>
 
-const char IDEA_version[] = "IDEA" OPENSSL_VERSION_PTEXT;
-
 const char *idea_options(void)
 {
     if (sizeof(short) != sizeof(IDEA_INT))
index 083310e8254ad156a57a1dbe7a0ea40a66495709..0c9ce8fe13bc7c0b82a202485255b2c1ea86cb19 100644 (file)
 #include <openssl/crypto.h>
 #include <openssl/lhash.h>
 
-const char lh_version[] = "lhash" OPENSSL_VERSION_PTEXT;
-
 #undef MIN_NODES
 #define MIN_NODES       16
 #define UP_LOAD         (2*LH_LOAD_MULT) /* load times 256 (default 2) */
index 70c19fba3190b432c74dc974ba10ba355dd8db87..bb0a7a34d26372c1702ac134d4f79043df85d587 100644 (file)
@@ -63,8 +63,6 @@
 #include <openssl/opensslv.h>
 #include <openssl/crypto.h>
 
-const char MD2_version[] = "MD2" OPENSSL_VERSION_PTEXT;
-
 /*
  * Implemented from RFC1319 The MD2 Message-Digest Algorithm
  */
index 966cebe9f0e6c2a8ec1e535482a26c6b91ef0441..2b7881ee80ec23fa149c62c29db109449ce8910b 100644 (file)
@@ -60,8 +60,6 @@
 #include <openssl/opensslv.h>
 #include "md4_locl.h"
 
-const char MD4_version[] = "MD4" OPENSSL_VERSION_PTEXT;
-
 /*
  * Implemented from RFC1186 The MD4 Message-Digest Algorithm
  */
index 335126c76d8fdc7f59dd68b2bbe134216c68ae26..f73ca7c07c213b537000075bd7da72f6f8c61fc1 100644 (file)
@@ -60,8 +60,6 @@
 #include "md5_locl.h"
 #include <openssl/opensslv.h>
 
-const char MD5_version[] = "MD5" OPENSSL_VERSION_PTEXT;
-
 /*
  * Implemented from RFC1321 The MD5 Message-Digest Algorithm
  */
index 47be6406ae5aa966c9ed2b9516a0d6758b455d61..23b347ff5e7af8384f1b59c7dcd78a719e8ec40d 100644 (file)
@@ -74,8 +74,6 @@
 # include <openssl/engine.h>
 #endif
 
-const char PEM_version[] = "PEM" OPENSSL_VERSION_PTEXT;
-
 #define MIN_LENGTH      4
 
 static int load_iv(char **fromp, unsigned char *to, int num);
index 27e785d311ea8e48b166020e787b3bdbdc02ca57..c7d54ed7efdf222b3218dfb11bc386a999219904 100644 (file)
@@ -164,8 +164,6 @@ static CRYPTO_THREADID locking_threadid;
 int rand_predictable = 0;
 #endif
 
-const char RAND_version[] = "RAND" OPENSSL_VERSION_PTEXT;
-
 static void rand_hw_seed(EVP_MD_CTX *ctx);
 
 static void ssleay_rand_cleanup(void);
index 48442a3f39e5f8e96b856334aa004e5e1d216944..4cb1a80aa70faecbe9a44efa69f44a55bcf0012e 100644 (file)
@@ -60,8 +60,6 @@
 #include "rc2_locl.h"
 #include <openssl/opensslv.h>
 
-const char RC2_version[] = "RC2" OPENSSL_VERSION_PTEXT;
-
 /*-
  * RC2 as implemented frm a posting from
  * Newsgroups: sci.crypt
index ce382247ae9648993d6dd3cb19343a390f256ba9..7b198bb091169430b104f5e8f2442e5696ce0d76 100644 (file)
@@ -60,8 +60,6 @@
 #include "rc4_locl.h"
 #include <openssl/opensslv.h>
 
-const char RC4_version[] = "RC4" OPENSSL_VERSION_PTEXT;
-
 const char *RC4_options(void)
 {
 #ifdef RC4_INDEX
index e657a93b9a9b49d2f9c33d53cf6faa11454264d7..2b5fa2a82da14e268d948dd667a9aa8658ac9a57 100644 (file)
@@ -60,8 +60,6 @@
 #include "rc5_locl.h"
 #include <openssl/opensslv.h>
 
-const char RC5_version[] = "RC5" OPENSSL_VERSION_PTEXT;
-
 void RC5_32_ecb_encrypt(const unsigned char *in, unsigned char *out,
                         RC5_32_KEY *ks, int encrypt)
 {
index 2496c11b46e6495e6bf83aa3cb21050475a97a79..f351df1d0843d4cb73c807159996a98f9200df3d 100644 (file)
@@ -60,8 +60,6 @@
 #include "rmd_locl.h"
 #include <openssl/opensslv.h>
 
-const char RMD160_version[] = "RIPE-MD160" OPENSSL_VERSION_PTEXT;
-
 #ifdef RMD160_ASM
 void ripemd160_block_x86(RIPEMD160_CTX *c, unsigned long *p, size_t num);
 # define ripemd160_block ripemd160_block_x86
index 2ec39e7e218c6560305b621bedb3f8b75d77079f..76c9796bf0efe480498d52df731efe5a0c4db970 100644 (file)
@@ -67,8 +67,6 @@
 # include <openssl/engine.h>
 #endif
 
-const char RSA_version[] = "RSA" OPENSSL_VERSION_PTEXT;
-
 static const RSA_METHOD *default_RSA_meth = NULL;
 
 RSA *RSA_new(void)
index 9f1b8f0630d56fc779ba78a8659431172e298469..a6c63382bb67462a20dd16b92cd31cd5c506c3d1 100644 (file)
@@ -61,8 +61,6 @@
 
 # include <openssl/opensslv.h>
 
-const char SHA1_version[] = "SHA1" OPENSSL_VERSION_PTEXT;
-
 /* The implementation is in ../md32_common.h */
 
 # include "sha_locl.h"
index c112b04e7d254cee3aed44ed1cc8162ec30228dc..096981b1a5d4eda1c22cba3aa727c2b7816de197 100644 (file)
@@ -13,8 +13,6 @@
 #include <openssl/sha.h>
 #include <openssl/opensslv.h>
 
-const char SHA256_version[] = "SHA-256" OPENSSL_VERSION_PTEXT;
-
 int SHA224_Init(SHA256_CTX *c)
 {
     memset(c, 0, sizeof(*c));
index ebae411f137d0745b4c1e894095e9d598b43f511..427cdf5ea078faa350f8daed59abbb3de4b28ec4 100644 (file)
@@ -49,8 +49,6 @@
 
 #include "internal/cryptlib.h"
 
-const char SHA512_version[] = "SHA-512" OPENSSL_VERSION_PTEXT;
-
 #if defined(__i386) || defined(__i386__) || defined(_M_IX86) || \
     defined(__x86_64) || defined(_M_AMD64) || defined(_M_X64) || \
     defined(__s390__) || defined(__s390x__) || \
index a6182df38026be1ede4e6bb2c47a0402621a5f6e..c7643dbef5228e53101221462339c584e562dbdd 100644 (file)
@@ -71,8 +71,6 @@ struct stack_st {
 #undef MIN_NODES
 #define MIN_NODES       4
 
-const char STACK_version[] = "Stack" OPENSSL_VERSION_PTEXT;
-
 #include <errno.h>
 
 int (*sk_set_cmp_func(_STACK *sk, int (*c) (const void *, const void *)))
index 5b1e5925d0f87fb06b4799c0b81c4ce826a1eaa4..2c4d2cd1be81c7a0bf85a67a7b4214ede5e72039 100644 (file)
@@ -66,8 +66,6 @@
 #undef BUFSIZE
 #define BUFSIZE 512
 
-const char TXT_DB_version[] = "TXT_DB" OPENSSL_VERSION_PTEXT;
-
 TXT_DB *TXT_DB_read(BIO *in, int num)
 {
     TXT_DB *ret = NULL;
index df012ddeb024c76f47d3424b69d55c5428560b97..26867cb4c205f3de5e5edf2044523ccbb8b4a49e 100644 (file)
@@ -138,7 +138,6 @@ static int check_crl_chain(X509_STORE_CTX *ctx,
                            STACK_OF(X509) *crl_path);
 
 static int internal_verify(X509_STORE_CTX *ctx);
-const char X509_version[] = "X.509" OPENSSL_VERSION_PTEXT;
 
 static int null_callback(int ok, X509_STORE_CTX *e)
 {
index 97c27e79eae03dee2472bab315e3b442b49243a6..5b6abdf800eaa062d5e31f7bf89d2d3560adb1fd 100644 (file)
@@ -36,7 +36,6 @@ extern "C" {
 # else
 #  define OPENSSL_VERSION_TEXT    "OpenSSL 1.1.0-dev xx XXX xxxx"
 # endif
-# define OPENSSL_VERSION_PTEXT   " part of " OPENSSL_VERSION_TEXT
 
 /*-
  * The macros below are to be used for shared library (.so, .dll, ...)
index c0ed8fb8526aa562be42f4987d9928143a0355ae..fc1887ab35692c5574cac20486466bf67a15efcd 100644 (file)
@@ -75,7 +75,6 @@
 static void get_current_time(struct timeval *t);
 static int dtls1_set_handshake_header(SSL *s, int type, unsigned long len);
 static int dtls1_handshake_write(SSL *s);
-const char dtls1_version_str[] = "DTLSv1" OPENSSL_VERSION_PTEXT;
 int dtls1_listen(SSL *s, struct sockaddr *client);
 
 const SSL3_ENC_METHOD DTLSv1_enc_data = {
index d39346af65ba5f3841501b96e9b0418925a99154..83b8f686bbe94008b7c00c01977c19aad2ccd4d0 100644 (file)
 #endif
 #include <openssl/rand.h>
 
-const char ssl3_version_str[] = "SSLv3" OPENSSL_VERSION_PTEXT;
-
 #define SSL3_NUM_CIPHERS        OSSL_NELEM(ssl3_ciphers)
 
 /* list of available SSLv3 ciphers (sorted by id) */
index c0dd35f9c84f1f557e1c645ca9c2e26996bd4471..ece2b72ac609176bcfe8bd76b7b49fb5aa57919f 100644 (file)
 #endif
 #include "ssl_locl.h"
 
-const char tls1_version_str[] = "TLSv1" OPENSSL_VERSION_PTEXT;
-
 static int tls_decrypt_ticket(SSL *s, const unsigned char *tick, int ticklen,
                               const unsigned char *sess_id, int sesslen,
                               SSL_SESSION **psess);