summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-04-19 00:43:24 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-31 16:24:47 +1000
commit8e53472a22473f689e19857944c38a5637362b49 (patch)
tree71e3f616c7960a9a2dae644855aa3e34942bf252
parentd0e680c9d6535c08e62eb37fab4c9a700e7449d0 (diff)
downloadluaossl-8e53472a22473f689e19857944c38a5637362b49.tar.gz
luaossl-8e53472a22473f689e19857944c38a5637362b49.tar.bz2
luaossl-8e53472a22473f689e19857944c38a5637362b49.zip
Fix capitalisation (Hostname vs HostName)
-rw-r--r--src/openssl.c14
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) {
8169 8169
8170 8170
8171#if HAVE_SSL_CTX_SET_TLSEXT_SERVERNAME_CALLBACK 8171#if HAVE_SSL_CTX_SET_TLSEXT_SERVERNAME_CALLBACK
8172static int sx_setHostnameCallback_cb(SSL *ssl, int *ad, void *_ctx) { 8172static int sx_setHostNameCallback_cb(SSL *ssl, int *ad, void *_ctx) {
8173 SSL_CTX *ctx = _ctx; 8173 SSL_CTX *ctx = _ctx;
8174 lua_State *L = NULL; 8174 lua_State *L = NULL;
8175 size_t n; 8175 size_t n;
@@ -8208,10 +8208,10 @@ done:
8208 lua_settop(L, otop); 8208 lua_settop(L, otop);
8209 8209
8210 return ret; 8210 return ret;
8211} /* sx_setHostnameCallback_cb() */ 8211} /* sx_setHostNameCallback_cb() */
8212 8212
8213 8213
8214static int sx_setHostnameCallback(lua_State *L) { 8214static int sx_setHostNameCallback(lua_State *L) {
8215 SSL_CTX *ctx = checksimple(L, 1, SSL_CTX_CLASS); 8215 SSL_CTX *ctx = checksimple(L, 1, SSL_CTX_CLASS);
8216 int error; 8216 int error;
8217 8217
@@ -8223,16 +8223,16 @@ 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:setHostnameCallback"); 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);
8230 SSL_CTX_set_tlsext_servername_arg(ctx, ctx); 8230 SSL_CTX_set_tlsext_servername_arg(ctx, ctx);
8231 8231
8232 lua_pushboolean(L, 1); 8232 lua_pushboolean(L, 1);
8233 8233
8234 return 1; 8234 return 1;
8235} /* sx_setHostnameCallback() */ 8235} /* sx_setHostNameCallback() */
8236#endif 8236#endif
8237 8237
8238 8238
@@ -8311,7 +8311,7 @@ static const auxL_Reg sx_methods[] = {
8311 { "setAlpnSelect", &sx_setAlpnSelect }, 8311 { "setAlpnSelect", &sx_setAlpnSelect },
8312#endif 8312#endif
8313#if HAVE_SSL_CTX_SET_TLSEXT_SERVERNAME_CALLBACK 8313#if HAVE_SSL_CTX_SET_TLSEXT_SERVERNAME_CALLBACK
8314 { "setHostnameCallback", &sx_setHostnameCallback }, 8314 { "setHostNameCallback", &sx_setHostNameCallback },
8315#endif 8315#endif
8316#if HAVE_SSL_CTX_SET_TLSEXT_STATUS_TYPE 8316#if HAVE_SSL_CTX_SET_TLSEXT_STATUS_TYPE
8317 { "setTLSextStatusType", &sx_setTLSextStatusType }, 8317 { "setTLSextStatusType", &sx_setTLSextStatusType },