From: Vsevolod Stakhov Date: Tue, 24 Sep 2024 08:25:16 +0000 (+0100) Subject: [Minor] Use portable macro for old OpenSSL X-Git-Tag: 3.10.0~8^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fheads%2Fvstakhov-ssl-fixes;p=rspamd.git [Minor] Use portable macro for old OpenSSL --- diff --git a/src/lua/lua_rsa.c b/src/lua/lua_rsa.c index d797e3c19..4b9aa0354 100644 --- a/src/lua/lua_rsa.c +++ b/src/lua/lua_rsa.c @@ -760,7 +760,7 @@ lua_rsa_sign_memory(lua_State *L) data = luaL_checklstring(L, 2, &sz); if (pkey != NULL && data != NULL) { - signature = rspamd_fstring_sized_new(EVP_PKEY_get_size(pkey)); + signature = rspamd_fstring_sized_new(EVP_PKEY_size(pkey)); EVP_PKEY_CTX *pctx = EVP_PKEY_CTX_new(pkey, NULL); g_assert(pctx != NULL);