diff options
author | Rich Salz <rsalz@akamai.com> | 2016-02-10 09:55:48 -0500 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-02-11 08:43:46 -0500 |
commit | 7253fd550c768979ecd3df8f4dbbedd6e9dd76b0 (patch) | |
tree | 6adaf42e67e464dbb90a55514279a35637476f08 /crypto/conf/conf_sap.c | |
parent | 5caef3b5028599958bfddbdb86ea4f47df9f315b (diff) |
Hide OPENSSL_INIT_SETTINGS.
Make OPENSSL_INIT_SETTINGS an opaque structure.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/conf/conf_sap.c')
-rw-r--r-- | crypto/conf/conf_sap.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/crypto/conf/conf_sap.c b/crypto/conf/conf_sap.c index 3b42993143..45c08e677c 100644 --- a/crypto/conf/conf_sap.c +++ b/crypto/conf/conf_sap.c @@ -77,13 +77,11 @@ static int openssl_configured = 0; void OPENSSL_config(const char *config_name) { - OPENSSL_INIT_SETTINGS settings[2]; + OPENSSL_INIT_SETTINGS settings; - settings[0].name = OPENSSL_INIT_SET_CONF_FILENAME; - settings[0].value.type_string = config_name; - settings[1].name = OPENSSL_INIT_SET_END; - settings[1].value.type_int = 0; - OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, settings); + memset(&settings, 0, sizeof(settings)); + settings.config_name = strdup(config_name); + OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, &settings); } void openssl_config_internal(const char *config_name) |