mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
Portability fix
Reviewed-by: Matt Caswell <matt@openssl.org>
This commit is contained in:
parent
6407ef7c49
commit
dfbfd06771
@ -77,10 +77,12 @@ static int openssl_configured = 0;
|
||||
|
||||
void OPENSSL_config(const char *config_name)
|
||||
{
|
||||
const OPENSSL_INIT_SETTINGS settings[2] = {
|
||||
{ OPENSSL_INIT_SET_CONF_FILENAME, .value.type_string = config_name },
|
||||
{ OPENSSL_INIT_SET_END, .value.type_int = 0 }
|
||||
};
|
||||
OPENSSL_INIT_SETTINGS settings[2];
|
||||
|
||||
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_library_start(OPENSSL_INIT_LOAD_CONFIG, settings);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user