Skip to content

Commit

Permalink
fix cms.uncompress
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaozg committed Apr 6, 2024
1 parent 81fb784 commit 1bdb047
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cms.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,14 @@ static int openssl_cms_compress(lua_State *L)
uncompress cms object
@function uncompress
@tparam cms cms
@tparam bio input
@tparam[dcont=nil] bio the compressed content is detached.
@tparam[opt=0] number flags
@treturn string
*/
static int openssl_cms_uncompress(lua_State *L)
{
CMS_ContentInfo *cms = CHECK_OBJECT(1, CMS_ContentInfo, "openssl.cms");
BIO *in = load_bio_object(L, 2);
BIO *in = lua_isnoneornil(L, 2) ? NULL : load_bio_object(L, 2);
int flags = luaL_optint(L, 3, 0);
BIO *out = BIO_new(BIO_s_mem());

Expand Down

0 comments on commit 1bdb047

Please sign in to comment.