Fix compatible OpenSSL backend constructor definition.

This commit is contained in:
Milan Broz
2021-09-15 08:13:49 +02:00
parent 1569558503
commit 3da5352b89

View File

@@ -88,9 +88,10 @@ struct hash_alg {
#if OPENSSL_VERSION_NUMBER < 0x10100000L || \ #if OPENSSL_VERSION_NUMBER < 0x10100000L || \
(defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL) (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
static void openssl_backend_init(bool fips __attribute__((unused))) static int openssl_backend_init(bool fips __attribute__((unused)))
{ {
OpenSSL_add_all_algorithms(); OpenSSL_add_all_algorithms();
return 0;
} }
static void openssl_backend_exit(void) static void openssl_backend_exit(void)