From c72a963097b994d5dcaf3197ba45896a2a637885 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 8 Jul 2018 20:19:28 +1000 Subject: src/openssl.c: Fix incorrect class check in :getTLSextStatusType() --- src/openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openssl.c b/src/openssl.c index 5108713..6511e75 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -8918,7 +8918,7 @@ static int sx_setTLSextStatusType(lua_State *L) { #if HAVE_SSL_CTX_GET_TLSEXT_STATUS_TYPE static int sx_getTLSextStatusType(lua_State *L) { - SSL_CTX *ctx = checksimple(L, 1, SSL_CLASS); + SSL_CTX *ctx = checksimple(L, 1, SSL_CTX_CLASS); int type = SSL_CTX_get_tlsext_status_type(ctx); switch(type) { -- cgit v1.2.3-59-g8ed1b