]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix openssl invocation
authorVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 7 Apr 2023 13:34:34 +0000 (14:34 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 7 Apr 2023 15:39:21 +0000 (16:39 +0100)
src/lua/lua_rsa.c

index 34173e4b12cdcc7973dba3281fbf3462b3a11672..85d5f87458c33b1f27647f30998c711c67e1802e 100644 (file)
@@ -272,7 +272,7 @@ lua_rsa_pubkey_tostring (lua_State *L)
                        return luaL_error(L, "i2d_RSA_PUBKEY_bio failed");
                }
 
-               publen = BIO_get_mem_ptr (pubout, &pubdata);
+               publen = BIO_get_mem_data(pubout, &pubdata);
                lua_pushlstring(L, pubdata, publen);
                BIO_free(pubout);
        }