diff options
author | daurnimator <quae@daurnimator.com> | 2017-04-19 00:00:49 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-04-19 00:00:49 +1000 |
commit | d0e680c9d6535c08e62eb37fab4c9a700e7449d0 (patch) | |
tree | d6d41808f817e45a23cf03b44699e78b95bb3390 | |
parent | d472e5d51ba460f59ceafcb2c09bd3482eb72139 (diff) | |
download | luaossl-d0e680c9d6535c08e62eb37fab4c9a700e7449d0.tar.gz luaossl-d0e680c9d6535c08e62eb37fab4c9a700e7449d0.tar.bz2 luaossl-d0e680c9d6535c08e62eb37fab4c9a700e7449d0.zip |
Fix incorrect error prefixes
-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 23070b9..5758813 100644 --- a/src/openssl.c +++ b/src/openssl.c | |||
@@ -8223,7 +8223,7 @@ static int sx_setHostnameCallback(lua_State *L) { | |||
8223 | } else if (error == auxL_EOPENSSL && !ERR_peek_error()) { | 8223 | } else if (error == auxL_EOPENSSL && !ERR_peek_error()) { |
8224 | return luaL_error(L, "unable to set hostname selection callback: Unknown internal error"); | 8224 | return luaL_error(L, "unable to set hostname selection callback: Unknown internal error"); |
8225 | } else { | 8225 | } else { |
8226 | return auxL_error(L, error, "ssl.context:setAlpnSelect"); | 8226 | return auxL_error(L, error, "ssl.context:setHostnameCallback"); |
8227 | } | 8227 | } |
8228 | } | 8228 | } |
8229 | SSL_CTX_set_tlsext_servername_callback(ctx, sx_setHostnameCallback_cb); | 8229 | SSL_CTX_set_tlsext_servername_callback(ctx, sx_setHostnameCallback_cb); |
@@ -8248,7 +8248,7 @@ static int sx_setTLSextStatusType(lua_State *L) { | |||
8248 | int type = checkTLSEXT_STATUSTYPE(L, 2); | 8248 | int type = checkTLSEXT_STATUSTYPE(L, 2); |
8249 | 8249 | ||
8250 | if(!SSL_CTX_set_tlsext_status_type(ctx, type)) | 8250 | if(!SSL_CTX_set_tlsext_status_type(ctx, type)) |
8251 | return auxL_error(L, auxL_EOPENSSL, "ssl:setTLSextStatusType"); | 8251 | return auxL_error(L, auxL_EOPENSSL, "ssl.context:setTLSextStatusType"); |
8252 | 8252 | ||
8253 | lua_pushboolean(L, 1); | 8253 | lua_pushboolean(L, 1); |
8254 | 8254 | ||