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
--- The `jit_stack_size` cannot be set to a value lower than PCRE's default of 32K.
28
28
---
29
-
--- This method requires the PCRE library enabled in Nginx.
30
-
---
31
-
--- This feature was first introduced in the v0.1.12 release.
32
-
---
33
29
---@paramoptionstring '"jit_stack_size"'
34
30
---@paramvalueany
35
31
functionre.opt(option, value) end
@@ -58,15 +54,6 @@ function re.opt(option, value) end
58
54
--- -- res is now {"a", "b", "c", "d"}
59
55
---```
60
56
---
61
-
--- The optional ctx table argument can be a Lua table holding an optional pos field. When the pos field in the ctx table argument is specified, `split()` will start splitting the subject from that index:
---The `header_value` argument can either be a string or a non-empty, array-like table. A nil or empty table value will cause this function to throw an error.
11
11
---
12
-
---This feature was first introduced in the v0.1.18 release.
13
-
---
14
12
---@paramheader_namestring must be a non-empty string.
15
13
---@paramheader_valuestring|string[]
16
14
functionreq.add_header(header_name, header_value) end
---Note that the SNI name is gotten from the raw extensions of the client hello message associated with the current downstream SSL connection.
13
13
---
14
-
---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).
14
+
---So this function can only be called in the context of `ssl_client_hello_by_lua*`.
15
15
---@returnstring?host
16
16
---@returnstring?error
17
17
functionclienthello.get_client_hello_server_name() end
@@ -25,7 +25,7 @@ function clienthello.get_client_hello_server_name() end
25
25
---
26
26
--- Note that the ext is gotten from the raw extensions of the client hello message associated with the current downstream SSL connection.
27
27
---
28
-
--- 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).
28
+
--- So this function can only be called in the context of `ssl_client_hello_by_lua*`.
29
29
---
30
30
--- Example:
31
31
---
@@ -86,9 +86,13 @@ function clienthello.get_client_hello_ext(ext_type) end
86
86
--- Returns `true` on success, or a `nil` value and a string describing the error otherwise.
87
87
---
88
88
--- Considering it is meaningless to set ssl protocols after the protocol is determined,
89
-
--- so this function may 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).
89
+
--- so this function may only be called in the context of `ssl_client_hello_by_lua*`.
Copy file name to clipboardExpand all lines: meta/3rd/OpenResty/library/ngx.ssl.lua
+1-11Lines changed: 1 addition & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -21,8 +21,6 @@ function ssl.set_der_priv_key(der_priv_key) end
21
21
---
22
22
--- This function can be called in any context.
23
23
---
24
-
--- This function was first added in version 0.1.7.
25
-
---
26
24
---@parampem_priv_keystring
27
25
---@returnstring?priv_key
28
26
---@returnstring?error
@@ -51,8 +49,6 @@ function ssl.get_tls1_version() end
51
49
---
52
50
--- Note that this set_cert function will run slightly faster, in terms of CPU cycles wasted, than the set_der_cert variant, since the first function uses opaque cdata pointers which do not require any additional conversion needed to be performed by the SSL library during the SSL handshake.
53
51
---
54
-
--- This function was first added in version 0.1.7.
55
-
---
56
52
---@paramcert_chainstring
57
53
---@returnboolean ok
58
54
---@returnstring?error
@@ -67,8 +63,6 @@ ssl.TLS1_VERSION=769
67
63
---
68
64
--- Note that this set_priv_key function will run slightly faster, in terms of CPU cycles wasted, than the set_der_priv_key variant, since the first function uses opaque cdata pointers which do not require any additional conversion needed to be performed by the SSL library during the SSL handshake.
69
65
---
70
-
--- This function was first added in version 0.1.7.
71
-
---
72
66
---@parampriv_keystring
73
67
---@returnboolean ok
74
68
---@returnstring?error
@@ -166,8 +160,6 @@ function ssl.clear_certs() end
166
160
---
167
161
--- This function can be called in any context where downstream https is used.
168
162
---
169
-
--- This function was first introduced in lua-resty-core 0.1.14.
170
-
---
171
163
---@returnstring?addr_data
172
164
---@returnngx.ssl.addr_type?addr_type
173
165
---@returnstring?error
@@ -182,8 +174,6 @@ function ssl.raw_client_addr() end
182
174
---
183
175
--- This function can be called in any context.
184
176
---
185
-
--- This function was first added in version 0.1.7.
186
-
---
187
177
---@returnstring?cert_chain
188
178
---@returnstring?error
189
179
functionssl.parse_pem_cert(pem_cert_chain) end
@@ -286,7 +276,7 @@ function ssl.cert_pem_to_der(pem_cert_chain) end
286
276
---
287
277
--- This function was first added in version 0.1.20.
288
278
---
289
-
---@paramca_certs? # the CA certificate chain opaque pointer returned by the parse_pem_cert function for the current SSL connection. The list of certificates will be sent to clients. Also, they will be added to trusted store. If omitted, will not send any CA certificate to clients.
279
+
---@paramca_certs?any # the CA certificate chain opaque pointer returned by the parse_pem_cert function for the current SSL connection. The list of certificates will be sent to clients. Also, they will be added to trusted store. If omitted, will not send any CA certificate to clients.
290
280
---@paramdepth?number verification depth in the client certificates chain. If omitted, will use the value specified by ssl_verify_depth.
0 commit comments