From: Rich Salz Date: Tue, 9 Feb 2016 21:01:25 +0000 (-0500) Subject: Portability fix X-Git-Tag: OpenSSL_1_1_0-pre3~161 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dfbfd0677186173abd3a336899e3ed36913c9c1a;p=oweals%2Fopenssl.git Portability fix Reviewed-by: Matt Caswell --- diff --git a/crypto/conf/conf_sap.c b/crypto/conf/conf_sap.c index ff19167e24..e0d6c5aad9 100644 --- a/crypto/conf/conf_sap.c +++ b/crypto/conf/conf_sap.c @@ -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); }