diff options
author | Richard Levitte <levitte@openssl.org> | 2019-03-20 10:18:13 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-03-20 14:24:46 +0100 |
commit | 905c9a72a708701597891527b422c7f374125c52 (patch) | |
tree | bf8a43ef96fc209bc28369b02e2ce7e18f086a34 /crypto/conf | |
parent | 138ef774fedb567b29d6e5a96541a396cadc6135 (diff) |
OPENSSL_config(): restore error agnosticism
Great effort has been made to make initialization more configurable.
However, the behavior of OPENSSL_config() was lost in the process,
having it suddenly generate errors it didn't previously, which is not
how it's documented to behave.
A simple setting of default flags fixes this problem.
Fixes #8528
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8533)
Diffstat (limited to 'crypto/conf')
-rw-r--r-- | crypto/conf/conf_sap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/conf/conf_sap.c b/crypto/conf/conf_sap.c index 38621db3c8..3994a86395 100644 --- a/crypto/conf/conf_sap.c +++ b/crypto/conf/conf_sap.c @@ -35,6 +35,7 @@ void OPENSSL_config(const char *appname) memset(&settings, 0, sizeof(settings)); if (appname != NULL) settings.appname = strdup(appname); + settings.flags = DEFAULT_CONF_MFLAGS; OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, &settings); } #endif |