diff options
| author | william <william@25tandclement.com> | 2014-07-15 21:16:01 -0700 |
|---|---|---|
| committer | william <william@25tandclement.com> | 2014-07-15 21:16:01 -0700 |
| commit | 2a655b72b6013994432313c8799037fa598eb5c5 (patch) | |
| tree | 4c672299f30b166dd58fed0f9583dee307bf6f4b /src/openssl.c | |
| parent | 33015a94acba6a072bcbb17e25b5ae4c954923b7 (diff) | |
| download | luaossl-2a655b72b6013994432313c8799037fa598eb5c5.tar.gz luaossl-2a655b72b6013994432313c8799037fa598eb5c5.tar.bz2 luaossl-2a655b72b6013994432313c8799037fa598eb5c5.zip | |
fixed interpose implementations for pkey and cipher classes, which passed the wrong metatable names to the generic interpose
Diffstat (limited to 'src/openssl.c')
| -rw-r--r-- | src/openssl.c | 4 |
1 files 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: | |||
| 1043 | 1043 | ||
| 1044 | 1044 | ||
| 1045 | static int pk_interpose(lua_State *L) { | 1045 | static int pk_interpose(lua_State *L) { |
| 1046 | return interpose(L, X509_NAME_CLASS); | 1046 | return interpose(L, PKEY_CLASS); |
| 1047 | } /* pk_interpose() */ | 1047 | } /* pk_interpose() */ |
| 1048 | 1048 | ||
| 1049 | 1049 | ||
| @@ -4319,7 +4319,7 @@ static int cipher_new(lua_State *L) { | |||
| 4319 | 4319 | ||
| 4320 | 4320 | ||
| 4321 | static int cipher_interpose(lua_State *L) { | 4321 | static int cipher_interpose(lua_State *L) { |
| 4322 | return interpose(L, HMAC_CLASS); | 4322 | return interpose(L, CIPHER_CLASS); |
| 4323 | } /* cipher_interpose() */ | 4323 | } /* cipher_interpose() */ |
| 4324 | 4324 | ||
| 4325 | 4325 | ||
