Crate turtls

Crate turtls 

Source
Expand description
WARNING: This code has not been audited. Use at your own risk.

Structs§

TurtlsCipherList
The supported ciphersuites.
TurtlsConfig
Configure TurtlsConn connections.
TurtlsConn
A TLS connection object.
TurtlsExts
The extensions to use in the handshake.
TurtlsIo
The functions to use to perform IO.

Enums§

TurtlsAlert
TLS error reporting.
TurtlsError
The result of a TLS operation.

Functions§

turtls_app_proto
Returns a pointer to name of the negotiated application protocol.
turtls_close
Alerts the peer and closes the connection.
turtls_connect
Performs a TLS handshake with a server, returning the connection status.
turtls_free
Frees a connection object.
turtls_get_config
Returns a pointer to the configuration struct tls_conn.
turtls_get_error
Returns the last error to occur.
turtls_get_tls_error
Returns last TLS error to occur.
turtls_new
Creates a new connection object.
turtls_stringify_alert
Returns a string representation of the alert.