From: Tobias Brunner Date: Fri, 8 Apr 2016 13:56:25 +0000 (+0200) Subject: openssl: BoringSSL does not support configuration X-Git-Tag: 5.4.1dr2~30^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47a46be5976d71beb9fbaefa7350f79411419edb;p=thirdparty%2Fstrongswan.git openssl: BoringSSL does not support configuration The other initialization functions are still defined but many are apparently no-ops (this is also true for the threading initialization). --- diff --git a/src/libstrongswan/plugins/openssl/openssl_plugin.c b/src/libstrongswan/plugins/openssl/openssl_plugin.c index aeb9be409b..e5c1dc0eef 100644 --- a/src/libstrongswan/plugins/openssl/openssl_plugin.c +++ b/src/libstrongswan/plugins/openssl/openssl_plugin.c @@ -502,8 +502,10 @@ METHOD(plugin_t, get_features, int, METHOD(plugin_t, destroy, void, private_openssl_plugin_t *this) { +#ifndef OPENSSL_IS_BORINGSSL CONF_modules_free(); OBJ_cleanup(); +#endif EVP_cleanup(); #ifndef OPENSSL_NO_ENGINE ENGINE_cleanup(); @@ -555,7 +557,9 @@ plugin_t *openssl_plugin_create() threading_init(); +#ifndef OPENSSL_IS_BORINGSSL OPENSSL_config(NULL); +#endif OpenSSL_add_all_algorithms(); #ifdef OPENSSL_FIPS