From 2a655b72b6013994432313c8799037fa598eb5c5 Mon Sep 17 00:00:00 2001 From: william Date: Tue, 15 Jul 2014 21:16:01 -0700 Subject: fixed interpose implementations for pkey and cipher classes, which passed the wrong metatable names to the generic interpose --- src/openssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openssl.c b/src/openssl.c index b183524..ee1fd89 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -1043,7 +1043,7 @@ done: static int pk_interpose(lua_State *L) { - return interpose(L, X509_NAME_CLASS); + return interpose(L, PKEY_CLASS); } /* pk_interpose() */ @@ -4319,7 +4319,7 @@ static int cipher_new(lua_State *L) { static int cipher_interpose(lua_State *L) { - return interpose(L, HMAC_CLASS); + return interpose(L, CIPHER_CLASS); } /* cipher_interpose() */ -- cgit v1.2.3-59-g8ed1b