You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns a Lua table contains the extension types on success.
136
+
137
+
In case of errors, it returns `nil` and a string describing the error.
138
+
139
+
Note that the ext is gotten from the raw extensions of the client hello message associated with the current downstream SSL connection.
140
+
141
+
So this function can only be called in the context of [ssl_client_hello_by_lua*](https://github.com/openresty/lua-nginx-module/#ssl_client_hello_by_lua_block).
142
+
143
+
Example:
144
+
145
+
```nginx
146
+
# nginx.conf
147
+
server {
148
+
listen 443 ssl;
149
+
server_name test.com;
150
+
ssl_client_hello_by_lua_block {
151
+
local ssl_clt = require "ngx.ssl.clienthello"
152
+
local exts = ssl_clt.get_client_hello_ext_present()
153
+
if not exts then
154
+
ngx.log(ngx.ERR, "failed to get_client_hello_ext_present()")
0 commit comments