diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/openssl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/openssl.c b/src/openssl.c index 1ea5d16..71aaed4 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -6358,7 +6358,7 @@ static int ssl_interpose(lua_State *L) { static int ssl_setOptions(lua_State *L) { - SSL *ssl = checksimple(L, 1, SSL_CTX_CLASS); + SSL *ssl = checksimple(L, 1, SSL_CLASS); auxL_Integer options = auxL_checkinteger(L, 2); auxL_pushinteger(L, SSL_set_options(ssl, options)); @@ -6368,7 +6368,7 @@ static int ssl_setOptions(lua_State *L) { static int ssl_getOptions(lua_State *L) { - SSL *ssl = checksimple(L, 1, SSL_CTX_CLASS); + SSL *ssl = checksimple(L, 1, SSL_CLASS); auxL_pushinteger(L, SSL_get_options(ssl)); @@ -6377,7 +6377,7 @@ static int ssl_getOptions(lua_State *L) { static int ssl_clearOptions(lua_State *L) { - SSL *ssl = checksimple(L, 1, SSL_CTX_CLASS); + SSL *ssl = checksimple(L, 1, SSL_CLASS); auxL_Integer options = auxL_checkinteger(L, 2); auxL_pushinteger(L, SSL_clear_options(ssl, options)); |