From c417a815cacfbe832ed27a997934dfd06a5ca44a Mon Sep 17 00:00:00 2001 From: william Date: Thu, 27 Mar 2014 21:25:49 -0700 Subject: make digest:update and hmac:update return the digest object rather than boolean true, similar to the change for :add methods --- src/openssl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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() */ -- cgit v1.2.3-59-g8ed1b