From 673b3fde824b8cafe33d1c908e890e42645a0ade Mon Sep 17 00:00:00 2001 From: Bodo Möller Date: Wed, 10 Jan 2001 15:15:36 +0000 Subject: Add SSLEAY_DIR argument code for SSLeay_version. Add '-d' option for 'openssl version' (included in '-a'). --- crypto/cversion.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crypto/cversion.c') diff --git a/crypto/cversion.c b/crypto/cversion.c index 297f8843f5..8ecfba7b16 100644 --- a/crypto/cversion.c +++ b/crypto/cversion.c @@ -98,6 +98,14 @@ const char *SSLeay_version(int t) return(buf); #else return("platform: information not available"); +#endif + } + if (t == SSLEAY_DIR) + { +#ifdef OPENSSLDIR + return "OPENSSLDIR: \"" OPENSSLDIR "\""; +#else + return "OPENSSLDIR: N/A"; #endif } return("not available"); -- cgit v1.2.3