Skip to content

Commit

Permalink
[Minor] Fix openssl invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Apr 7, 2023
1 parent d6c950e commit a7b387d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lua/lua_rsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a7b387d

Please sign in to comment.