mirror of
https://github.com/brunoos/luasec.git
synced 2024-11-09 23:18:26 +01:00
Document core module
This commit is contained in:
parent
9420dcda40
commit
4f714ed56f
47
doc/core.md
47
doc/core.md
@ -1,9 +1,44 @@
|
|||||||
Functions
|
Functions
|
||||||
---------
|
---------
|
||||||
|
|
||||||
`ssl.compression`
|
### core.compression ###
|
||||||
`ssl.create`
|
|
||||||
`ssl.info`
|
compression = core.compression(conn)
|
||||||
`ssl.setfd`
|
|
||||||
`ssl.setmethod`
|
Returns the compression method used in a particular `conn` object. Can fail,
|
||||||
`ssl.copyright`
|
in which case it returns nil, followed by an error message.
|
||||||
|
|
||||||
|
### core.create ###
|
||||||
|
|
||||||
|
conn = core.create(context)
|
||||||
|
|
||||||
|
Creates a new core connection object from a context. Use of `ssl.wrap` is
|
||||||
|
encouraged.
|
||||||
|
|
||||||
|
### core.info ###
|
||||||
|
|
||||||
|
buffer, numbits, processedbits, version = core.info(conn)
|
||||||
|
|
||||||
|
Returns the information associated with a `conn` object.
|
||||||
|
|
||||||
|
### core.setfd ###
|
||||||
|
|
||||||
|
core.setfd(conn, fd)
|
||||||
|
|
||||||
|
Set the `conn` object to use the given file descriptor. Usually done by
|
||||||
|
`ssl.wrap`.
|
||||||
|
|
||||||
|
### core.setmethod ###
|
||||||
|
|
||||||
|
core.setmethod(name, value)
|
||||||
|
|
||||||
|
Set the the name and value as method/member on `conn` objects. Similar to the
|
||||||
|
following snippet:
|
||||||
|
|
||||||
|
debug.getmetatable(conn).__index[name] = value
|
||||||
|
|
||||||
|
### core.copyright ###
|
||||||
|
|
||||||
|
copyright = core.copyright()
|
||||||
|
|
||||||
|
Return copyright information for luasec.
|
||||||
|
Loading…
Reference in New Issue
Block a user