diff options
author | Bodo Möller <bodo@openssl.org> | 2001-01-10 15:15:36 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2001-01-10 15:15:36 +0000 |
commit | 673b3fde824b8cafe33d1c908e890e42645a0ade (patch) | |
tree | dac80e4bdf2cca01c9ba9a59ed08baa76c52e1eb /crypto/cversion.c | |
parent | a87e50a945f2bb45b58f5d9b7f16bba5c9237a2f (diff) | |
download | openssl-new-673b3fde824b8cafe33d1c908e890e42645a0ade.tar.gz |
Add SSLEAY_DIR argument code for SSLeay_version.
Add '-d' option for 'openssl version' (included in '-a').
Diffstat (limited to 'crypto/cversion.c')
-rw-r--r-- | crypto/cversion.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/cversion.c b/crypto/cversion.c index 297f8843f5..8ecfba7b16 100644 --- a/crypto/cversion.c +++ b/crypto/cversion.c @@ -100,6 +100,14 @@ const char *SSLeay_version(int t) return("platform: information not available"); #endif } + if (t == SSLEAY_DIR) + { +#ifdef OPENSSLDIR + return "OPENSSLDIR: \"" OPENSSLDIR "\""; +#else + return "OPENSSLDIR: N/A"; +#endif + } return("not available"); } |