]> git.ipfire.org Git - thirdparty/openssl.git/commit
Add a way for the application to get OpenSSL configuration data
authorRichard Levitte <levitte@openssl.org>
Tue, 9 Apr 2019 12:39:54 +0000 (14:39 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 23 Apr 2019 13:51:39 +0000 (15:51 +0200)
commit0109e030db9207a47e195b4c3a3b13e9017f0ed2
tree835826a1f94de53d09cb15c8752ce428ffdd0b46
parent47ca8338358b01ef429a3801ce6173f7a0791674
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)
12 files changed:
CHANGES
NEWS
apps/build.info
apps/info.c [new file with mode: 0644]
apps/progs.pl
crypto/build.info
crypto/info.c [new file with mode: 0644]
doc/man1/info.pod [new file with mode: 0644]
doc/man1/openssl.pod
doc/man3/OpenSSL_version.pod
include/openssl/crypto.h
util/libcrypto.num