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
Copy file name to clipboardExpand all lines: meta/3rd/OpenResty/library/ngx.ssl.lua
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ function ssl.set_der_priv_key(der_priv_key) end
22
22
--- This function can be called in any context.
23
23
---
24
24
---@parampem_priv_keystring
25
-
---@returnstring?priv_key
25
+
---@returnffi.cdata*?priv_key
26
26
---@returnstring?error
27
27
functionssl.parse_pem_priv_key(pem_priv_key) end
28
28
@@ -49,7 +49,7 @@ function ssl.get_tls1_version() end
49
49
---
50
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.
51
51
---
52
-
---@paramcert_chainstring
52
+
---@paramcert_chainffi.cdata*
53
53
---@returnboolean ok
54
54
---@returnstring?error
55
55
functionssl.set_cert(cert_chain) end
@@ -63,7 +63,7 @@ ssl.TLS1_VERSION=769
63
63
---
64
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.
65
65
---
66
-
---@parampriv_keystring
66
+
---@parampriv_keyffi.cdata*
67
67
---@returnboolean ok
68
68
---@returnstring?error
69
69
functionssl.set_priv_key(priv_key) end
@@ -174,7 +174,8 @@ function ssl.raw_client_addr() end
174
174
---
175
175
--- This function can be called in any context.
176
176
---
177
-
---@returnstring?cert_chain
177
+
---@parampem_cert_chainstring
178
+
---@returnffi.cdata*?cert_chain
178
179
---@returnstring?error
179
180
functionssl.parse_pem_cert(pem_cert_chain) end
180
181
@@ -276,7 +277,7 @@ function ssl.cert_pem_to_der(pem_cert_chain) end
276
277
---
277
278
--- This function was first added in version 0.1.20.
278
279
---
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.
280
+
---@paramca_certs?ffi.cdata*# 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.
280
281
---@paramdepth?number verification depth in the client certificates chain. If omitted, will use the value specified by ssl_verify_depth.
Copy file name to clipboardExpand all lines: meta/3rd/OpenResty/library/tablepool.lua
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---@meta
2
-
localtablepool={}
2
+
localtablepool={}
3
3
4
4
--- Releases the already used Lua table, `tb`, into the table pool named `pool_name`. If the specified table pool does not exist, create it right away.
5
5
---
@@ -13,7 +13,7 @@ local tablepool={}
13
13
---
14
14
---@parampool_namestring
15
15
---@paramtbtable
16
-
---@paramno_clearboolean
16
+
---@paramno_clear?boolean
17
17
functiontablepool.release(pool_name, tb, no_clear) end
18
18
19
19
--- Fetches a (free) Lua table from the table pool of the specified name `pool_name`.
0 commit comments