summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/cversion.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/lib/libcrypto/cversion.c b/src/lib/libcrypto/cversion.c
index b8b1a22a8a..2d4460d10d 100644
--- a/src/lib/libcrypto/cversion.c
+++ b/src/lib/libcrypto/cversion.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: cversion.c,v 1.16 2018/02/14 16:32:06 jsing Exp $ */ 1/* $OpenBSD: cversion.c,v 1.17 2018/02/17 06:56:12 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -88,7 +88,21 @@ SSLeay(void)
88const char * 88const char *
89OpenSSL_version(int t) 89OpenSSL_version(int t)
90{ 90{
91 return SSLeay_version(t); 91 switch (t) {
92 case OPENSSL_VERSION:
93 return OPENSSL_VERSION_TEXT;
94 case OPENSSL_BUILT_ON:
95 return("built on: date not available");
96 case OPENSSL_CFLAGS:
97 return("compiler: information not available");
98 case OPENSSL_PLATFORM:
99 return("platform: information not available");
100 case OPENSSL_DIR:
101 return "OPENSSLDIR: \"" OPENSSLDIR "\"";
102 case OPENSSL_ENGINES_DIR:
103 return "ENGINESDIR: N/A";
104 }
105 return("not available");
92} 106}
93 107
94unsigned long 108unsigned long