From: Vsevolod Stakhov Date: Tue, 24 Sep 2024 08:30:22 +0000 (+0100) Subject: [Minor] Another compatibility fix X-Git-Tag: 3.10.0~8^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=004c3475ac14bd84580ea114824dfedafea20a5e;p=thirdparty%2Frspamd.git [Minor] Another compatibility fix --- diff --git a/src/lua/lua_cryptobox.c b/src/lua/lua_cryptobox.c index 96a8db0747..9600a47327 100644 --- a/src/lua/lua_cryptobox.c +++ b/src/lua/lua_cryptobox.c @@ -1438,7 +1438,11 @@ lua_cryptobox_hash_reset(lua_State *L) rspamd_cryptobox_hash_init(h->content.h, NULL, 0); break; case LUA_CRYPTOBOX_HASH_SSL: +#if OPENSSL_VERSION_MAJOR >= 3 EVP_DigestInit(h->content.c, EVP_MD_CTX_get0_md(h->content.c)); +#else + EVP_DigestInit(h->content.c, EVP_MD_CTX_md(h->content.c)); +#endif break; case LUA_CRYPTOBOX_HASH_HMAC: #if OPENSSL_VERSION_NUMBER < 0x10100000L || \