]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Use portable macro for old OpenSSL vstakhov-ssl-fixes
authorVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 24 Sep 2024 08:25:16 +0000 (09:25 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 24 Sep 2024 08:25:16 +0000 (09:25 +0100)
src/lua/lua_rsa.c

index d797e3c19ad1deb68279647bd13bcd542b57521f..4b9aa03546b2550c2df55fd17e8dcba688c8edf8 100644 (file)
@@ -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);