mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-28 05:20:28 +00:00
Redbean SSL identification (#360)
* Let Fetch() be used earlier in initialization * Have ssl log messages show cert name * Introduce GetSslIdentity Lua API
This commit is contained in:
parent
abac6f729c
commit
22409b2b5e
2 changed files with 59 additions and 16 deletions
|
@ -672,6 +672,10 @@ FUNCTIONS
|
|||
GetScheme() → str
|
||||
Returns scheme from Request-URL, if any.
|
||||
|
||||
GetSslIdentity() → str
|
||||
Returns certificate subject or PSK identity from the current SSL
|
||||
session. `nil` is returned for regular (non-SSL) connections.
|
||||
|
||||
GetStatus() → int
|
||||
Returns current status (as set by an earlier SetStatus call) or
|
||||
`nil` if the status hasn't been set yet.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue