diff options
author | levitte <levitte> | 2002-08-11 21:48:44 +0000 |
---|---|---|
committer | levitte <levitte> | 2002-08-11 21:48:44 +0000 |
commit | 6937208fd0162680d1c791653b06bc8969f86e91 (patch) | |
tree | 4001b20ff320f526a933041b87c0002df6e8a7ae /apps/version.c | |
parent | 88785b863fc39728a1535e0994c6aadc7acd05dd (diff) | |
download | openssl-6937208fd0162680d1c791653b06bc8969f86e91.tar.gz |
In case of shared libraries, we might run one version of the
application with a different version of the library. Detect if there
is a difference of versions, and print both versions in that case.
This might prove to be a good enough debugging tool in case of doubt.
Diffstat (limited to 'apps/version.c')
-rw-r--r-- | apps/version.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/apps/version.c b/apps/version.c index 0cbcb47f8..a9fda99e0 100644 --- a/apps/version.c +++ b/apps/version.c @@ -172,7 +172,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", + SSLEAY_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) |