summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwilliam <william@25tandclement.com>2014-03-27 21:25:49 -0700
committerwilliam <william@25tandclement.com>2014-03-27 21:25:49 -0700
commitc417a815cacfbe832ed27a997934dfd06a5ca44a (patch)
treec0abc6117be8af56b3b7a2c2217815aaab0c1d50
parent4381febe2d6730d82b1097a8ba895590f955755b (diff)
downloadluaossl-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.c8
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) {
3550 3550
3551 md_update_(L, ctx, 2, lua_gettop(L)); 3551 md_update_(L, ctx, 2, lua_gettop(L));
3552 3552
3553 lua_pushboolean(L, 1); 3553 lua_pushvalue(L, 1);
3554 3554
3555 return 1; 3555 return 1;
3556} /* md_update() */ 3556} /* md_update() */
3557 3557
@@ -3653,8 +3653,8 @@ static int hmac_update(lua_State *L) {
3653 3653
3654 hmac_update_(L, ctx, 2, lua_gettop(L)); 3654 hmac_update_(L, ctx, 2, lua_gettop(L));
3655 3655
3656 lua_pushboolean(L, 1); 3656 lua_pushvalue(L, 1);
3657 3657
3658 return 1; 3658 return 1;
3659} /* hmac_update() */ 3659} /* hmac_update() */
3660 3660