aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatarLibravatar william <william@25tandclement.com> 2014-03-27 21:25:49 -0700
committerLibravatarLibravatar william <william@25tandclement.com> 2014-03-27 21:25:49 -0700
commitc417a815cacfbe832ed27a997934dfd06a5ca44a (patch)
treec0abc6117be8af56b3b7a2c2217815aaab0c1d50 /src
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
Diffstat (limited to 'src')
-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) {
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() */