mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-06 01:40:28 +00:00
Add crypto.tls.wrap docs
This commit is contained in:
parent
be83153073
commit
e246e07e03
1 changed files with 8 additions and 0 deletions
|
@ -7978,6 +7978,14 @@ function unix.Errno:doc() end
|
||||||
--- differs from the System Five error code.
|
--- differs from the System Five error code.
|
||||||
function unix.Errno:__tostring() end
|
function unix.Errno:__tostring() end
|
||||||
|
|
||||||
|
--- Wraps a plain TCP client socket connection with TLS encryption.
|
||||||
|
---
|
||||||
|
--- Initiates the connection handshake immediately.
|
||||||
|
---@param fd integer
|
||||||
|
---@param hostname string for validating that the hostname on the certificate matches what is expected
|
||||||
|
---@return crypto.tls.Connection
|
||||||
|
---@nodiscard
|
||||||
|
function crypto.tls.wrap(fd, hostname)
|
||||||
-- CONSTANTS
|
-- CONSTANTS
|
||||||
|
|
||||||
---@type integer for debug logging level. See `Log`.
|
---@type integer for debug logging level. See `Log`.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue