diff options
author | william <william@25tandclement.com> | 2014-03-27 21:25:49 -0700 |
---|---|---|
committer | william <william@25tandclement.com> | 2014-03-27 21:25:49 -0700 |
commit | c417a815cacfbe832ed27a997934dfd06a5ca44a (patch) | |
tree | c0abc6117be8af56b3b7a2c2217815aaab0c1d50 | |
parent | 4381febe2d6730d82b1097a8ba895590f955755b (diff) | |
download | luaossl-c417a815cacfbe832ed27a997934dfd06a5ca44a.tar.gz luaossl-c417a815cacfbe832ed27a997934dfd06a5ca44a.tar.bz2 luaossl-c417a815cacfbe832ed27a997934dfd06a5ca44a.zip |
make digest:update and hmac:update return the digest object rather than boolean true, similar to the change for :add methods
-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 df5c524..acd2454 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -3550,8 +3550,8 @@ static int md_update(lua_State *L) { md_update_(L, ctx, 2, lua_gettop(L)); - lua_pushboolean(L, 1); - + lua_pushvalue(L, 1); + return 1; } /* md_update() */ @@ -3653,8 +3653,8 @@ static int hmac_update(lua_State *L) { hmac_update_(L, ctx, 2, lua_gettop(L)); - lua_pushboolean(L, 1); - + lua_pushvalue(L, 1); + return 1; } /* hmac_update() */ |