aboutsummaryrefslogtreecommitdiff
path: root/apps/version.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/version.c')
-rw-r--r--apps/version.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/apps/version.c b/apps/version.c
index 0cbcb47..a9fda99 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)