diff options
author | william <william@25tandclement.com> | 2014-03-26 19:59:50 -0700 |
---|---|---|
committer | william <william@25tandclement.com> | 2014-03-26 19:59:50 -0700 |
commit | 24ed2644463f26eb84ac6d96d8305c8766e96acb (patch) | |
tree | b5ddf2ccf3e0b0641dfbaf7b86e2a94dfbdd3f30 | |
parent | ee19675cc21b497e53264b3df813b474ee762b33 (diff) | |
download | luaossl-24ed2644463f26eb84ac6d96d8305c8766e96acb.tar.gz luaossl-24ed2644463f26eb84ac6d96d8305c8766e96acb.tar.bz2 luaossl-24ed2644463f26eb84ac6d96d8305c8766e96acb.zip |
alter several :add methods to return the parent object rather than boolean true, to allow chained invocations
-rw-r--r-- | src/openssl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/openssl.c b/src/openssl.c index 15749c9..0a6c996 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -1299,7 +1299,7 @@ static int xn_add(lua_State *L) { if (!ok) return throwssl(L, "x509.name:add"); - lua_pushboolean(L, 1); + lua_pushvalue(L, 1); return 1; } /* xn_add() */ @@ -1579,7 +1579,7 @@ text: sk_GENERAL_NAME_push(gens, gen); - lua_pushboolean(L, 1); + lua_pushvalue(L, 1); return 1; error: @@ -2877,7 +2877,7 @@ static int xl_add(lua_State *L) { return throwssl(L, "x509.chain:add"); } - lua_pushboolean(L, 1); + lua_pushvalue(L, 1); return 1; } /* xl_add() */ @@ -3012,7 +3012,7 @@ static int xs_add(lua_State *L) { } } - lua_pushboolean(L, 1); + lua_pushvalue(L, 1); return 1; } /* xs_add() */ |