From d0e680c9d6535c08e62eb37fab4c9a700e7449d0 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Wed, 19 Apr 2017 00:00:49 +1000 Subject: Fix incorrect error prefixes --- src/openssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/openssl.c b/src/openssl.c index 23070b9..5758813 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -8223,7 +8223,7 @@ static int sx_setHostnameCallback(lua_State *L) { } else if (error == auxL_EOPENSSL && !ERR_peek_error()) { return luaL_error(L, "unable to set hostname selection callback: Unknown internal error"); } else { - return auxL_error(L, error, "ssl.context:setAlpnSelect"); + return auxL_error(L, error, "ssl.context:setHostnameCallback"); } } SSL_CTX_set_tlsext_servername_callback(ctx, sx_setHostnameCallback_cb); @@ -8248,7 +8248,7 @@ static int sx_setTLSextStatusType(lua_State *L) { int type = checkTLSEXT_STATUSTYPE(L, 2); if(!SSL_CTX_set_tlsext_status_type(ctx, type)) - return auxL_error(L, auxL_EOPENSSL, "ssl:setTLSextStatusType"); + return auxL_error(L, auxL_EOPENSSL, "ssl.context:setTLSextStatusType"); lua_pushboolean(L, 1); -- cgit v1.2.3-59-g8ed1b