diff options
author | Richard Levitte <levitte@openssl.org> | 2019-04-09 14:39:54 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-04-23 15:51:39 +0200 |
commit | 0109e030db9207a47e195b4c3a3b13e9017f0ed2 (patch) | |
tree | 835826a1f94de53d09cb15c8752ce428ffdd0b46 /apps/build.info | |
parent | 47ca8338358b01ef429a3801ce6173f7a0791674 (diff) |
Add a way for the application to get OpenSSL configuration data
OpenSSL_version(OPENSSL_DIR) gives you a nicely formatted string for
display, but if all you really want is the directory itself, you were
forced to parsed the string.
This introduces a new function to get diverse configuration data from
the library, OPENSSL_info(). This works the same way as
OpenSSL_version(), but has its own series of types, currently
including:
OPENSSL_INFO_CONFIG_DIR returns OPENSSLDIR
OPENSSL_INFO_ENGINES_DIR returns ENGINESDIR
OPENSSL_INFO_MODULES_DIR returns MODULESDIR
OPENSSL_INFO_DSO_EXTENSION returns DSO_EXTENSION
OPENSSL_INFO_DIR_FILENAME_SEPARATOR returns directory/filename separator
OPENSSL_INFO_LIST_SEPARATOR returns list separator
For scripting purposes, this also adds the command 'openssl info'.
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8709)
Diffstat (limited to 'apps/build.info')
-rw-r--r-- | apps/build.info | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/build.info b/apps/build.info index ad14038a5d..30847a013d 100644 --- a/apps/build.info +++ b/apps/build.info @@ -5,7 +5,8 @@ genpkey.c genrsa.c mac.c nseq.c ocsp.c passwd.c pkcs12.c pkcs7.c pkcs8.c pkey.c pkeyparam.c pkeyutl.c prime.c rand.c req.c rsa.c rsautl.c s_client.c s_server.c s_time.c sess_id.c smime.c speed.c - spkac.c srp.c ts.c verify.c version.c x509.c rehash.c storeutl.c); + spkac.c srp.c ts.c verify.c version.c x509.c rehash.c storeutl.c + info.c); our @apps_lib_src = ( qw(apps.c apps_ui.c opt.c fmt.c s_cb.c s_socket.c app_rand.c bf_prefix.c), |