diff options
author | Pauli <paul.dale@oracle.com> | 2019-05-21 03:28:19 +0200 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2019-05-23 02:28:02 +0200 |
commit | 1dea43c3d3c648dc85e22404efc2c64c2b6e3c2f (patch) | |
tree | a9654dbe8bf821fda7f169354a9d0f4bc4b58c70 /apps | |
parent | Fix GOST OID (diff) | |
download | openssl-1dea43c3d3c648dc85e22404efc2c64c2b6e3c2f.tar.xz openssl-1dea43c3d3c648dc85e22404efc2c64c2b6e3c2f.zip |
Always show application and library versions in "openssl version".
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8963)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/version.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/apps/version.c b/apps/version.c index 279aeff2ff..83f0ea27b3 100644 --- a/apps/version.c +++ b/apps/version.c @@ -122,14 +122,9 @@ opthelp: if (!dirty) version = 1; - if (version) { - if (strcmp(OpenSSL_version(OPENSSL_FULL_VERSION_STRING), - OPENSSL_FULL_VERSION_STR) == 0) - printf("%s\n", OpenSSL_version(OPENSSL_VERSION)); - else - printf("%s (Library: %s)\n", - OPENSSL_VERSION_TEXT, OpenSSL_version(OPENSSL_VERSION)); - } + if (version) + printf("%s (Library: %s)\n", + OPENSSL_VERSION_TEXT, OpenSSL_version(OPENSSL_VERSION)); if (date) printf("%s\n", OpenSSL_version(OPENSSL_BUILT_ON)); if (platform) |