diff options
author | daurnimator <quae@daurnimator.com> | 2017-04-19 00:43:24 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-31 16:24:47 +1000 |
commit | 8e53472a22473f689e19857944c38a5637362b49 (patch) | |
tree | 71e3f616c7960a9a2dae644855aa3e34942bf252 | |
parent | d0e680c9d6535c08e62eb37fab4c9a700e7449d0 (diff) | |
download | luaossl-8e53472a22473f689e19857944c38a5637362b49.tar.gz luaossl-8e53472a22473f689e19857944c38a5637362b49.tar.bz2 luaossl-8e53472a22473f689e19857944c38a5637362b49.zip |
Fix capitalisation (Hostname vs HostName)
-rw-r--r-- | src/openssl.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/openssl.c b/src/openssl.c index 5758813..50ce7d3 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -8169,7 +8169,7 @@ static int sx_setAlpnSelect(lua_State *L) { #if HAVE_SSL_CTX_SET_TLSEXT_SERVERNAME_CALLBACK -static int sx_setHostnameCallback_cb(SSL *ssl, int *ad, void *_ctx) { +static int sx_setHostNameCallback_cb(SSL *ssl, int *ad, void *_ctx) { SSL_CTX *ctx = _ctx; lua_State *L = NULL; size_t n; @@ -8208,10 +8208,10 @@ done: lua_settop(L, otop); return ret; -} /* sx_setHostnameCallback_cb() */ +} /* sx_setHostNameCallback_cb() */ -static int sx_setHostnameCallback(lua_State *L) { +static int sx_setHostNameCallback(lua_State *L) { SSL_CTX *ctx = checksimple(L, 1, SSL_CTX_CLASS); int error; @@ -8223,16 +8223,16 @@ 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:setHostnameCallback"); + return auxL_error(L, error, "ssl.context:setHostNameCallback"); } } - SSL_CTX_set_tlsext_servername_callback(ctx, sx_setHostnameCallback_cb); + SSL_CTX_set_tlsext_servername_callback(ctx, sx_setHostNameCallback_cb); SSL_CTX_set_tlsext_servername_arg(ctx, ctx); lua_pushboolean(L, 1); return 1; -} /* sx_setHostnameCallback() */ +} /* sx_setHostNameCallback() */ #endif @@ -8311,7 +8311,7 @@ static const auxL_Reg sx_methods[] = { { "setAlpnSelect", &sx_setAlpnSelect }, #endif #if HAVE_SSL_CTX_SET_TLSEXT_SERVERNAME_CALLBACK - { "setHostnameCallback", &sx_setHostnameCallback }, + { "setHostNameCallback", &sx_setHostNameCallback }, #endif #if HAVE_SSL_CTX_SET_TLSEXT_STATUS_TYPE { "setTLSextStatusType", &sx_setTLSextStatusType }, |