diff options
Diffstat (limited to 'usr/src/common/openssl/apps/version.c')
| -rw-r--r-- | usr/src/common/openssl/apps/version.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/usr/src/common/openssl/apps/version.c b/usr/src/common/openssl/apps/version.c index 0843b67565..69ef3e1bad 100644 --- a/usr/src/common/openssl/apps/version.c +++ b/usr/src/common/openssl/apps/version.c @@ -115,6 +115,7 @@ #include "apps.h" #include <openssl/evp.h> #include <openssl/crypto.h> +#include <openssl/bn.h> #ifndef OPENSSL_NO_MD2 # include <openssl/md2.h> #endif @@ -172,7 +173,19 @@ int MAIN(int argc, char **argv) } } - if (version) printf("%s\n",SSLeay_version(SSLEAY_VERSION)); + if (version) + { + if (SSLeay() == SSLEAY_VERSION_NUMBER) + { + printf("%s\n",SSLeay_version(SSLEAY_VERSION)); + } + else + { + printf("%s (Library: %s)\n", + OPENSSL_VERSION_TEXT, + SSLeay_version(SSLEAY_VERSION)); + } + } if (date) printf("%s\n",SSLeay_version(SSLEAY_BUILT_ON)); if (platform) printf("%s\n",SSLeay_version(SSLEAY_PLATFORM)); if (options) |
