diff options
Diffstat (limited to 'crypto/openssl/apps/version.c')
-rw-r--r-- | crypto/openssl/apps/version.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/crypto/openssl/apps/version.c b/crypto/openssl/apps/version.c index 0843b67..69ef3e1 100644 --- a/crypto/openssl/apps/version.c +++ b/crypto/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) |