summaryrefslogtreecommitdiffstats
path: root/test/versions.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/versions.c')
-rw-r--r--test/versions.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/versions.c b/test/versions.c
index 3ab05ec35d..309670937a 100644
--- a/test/versions.c
+++ b/test/versions.c
@@ -14,7 +14,8 @@
/* A simple helper for the perl function OpenSSL::Test::openssl_versions */
int main(void)
{
- printf("Build version: 0x%08lX\n", OPENSSL_VERSION_NUMBER);
- printf("Library version: 0x%08lX\n", OpenSSL_version_num());
+ printf("Build version: %s\n", OPENSSL_FULL_VERSION_STR);
+ printf("Library version: %s\n",
+ OpenSSL_version(OPENSSL_FULL_VERSION_STRING));
return 0;
}