diff options
author | Richard Levitte <levitte@openssl.org> | 2016-02-10 18:51:15 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-02-10 19:36:48 +0100 |
commit | e09621ff57f6965d30cc2d6b5045f93906d656a0 (patch) | |
tree | 8dcd17b8487b8fadf7a7ed5a66c14611e26b4692 /crypto/cversion.c | |
parent | 9cc55ddda5bbfde2e98fb94f312b960ab11a8c60 (diff) | |
download | openssl-e09621ff57f6965d30cc2d6b5045f93906d656a0.tar.gz |
Make it possible to get ENGINESDIR info from OpenSSL_versions
Have apps/openssl display the result along with OPENSSLDIR
As part of this, add ENGINESDIR in util/mk1mf.pl
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/cversion.c')
-rw-r--r-- | crypto/cversion.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/cversion.c b/crypto/cversion.c index 5405e5c842..a13ccf429f 100644 --- a/crypto/cversion.c +++ b/crypto/cversion.c @@ -102,5 +102,12 @@ const char *OpenSSL_version(int t) return "OPENSSLDIR: N/A"; #endif } + if (t == OPENSSL_ENGINES_DIR) { +#ifdef ENGINESDIR + return "ENGINESDIR: \"" ENGINESDIR "\""; +#else + return "ENGINESDIR: N/A"; +#endif + } return ("not available"); } |