Sortix volatile manual
This manual documents Sortix volatile, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
tls_init, tls_config_new, tls_config_free, tls_config_error — initialize TLS client and server APISYNOPSIS
#include <tls.h>tls_init(void);
tls_config_new(void);
tls_config_free(struct tls_config *config);
tls_config_error(struct tls_config *config);
DESCRIPTION
The tls family of functions establishes a secure communications channel using the TLS socket protocol. Both clients and servers are supported.RETURN VALUES
tls_init() returns 0 on success or -1 on error.SEE ALSO
tls_accept_socket(3), tls_client(3), tls_config_ocsp_require_stapling(3), tls_config_set_protocols(3), tls_config_verify(3), tls_conn_version(3), tls_connect(3), tls_load_file(3), tls_ocsp_process_response(3), tls_read(3)HISTORY
The tls API first appeared in OpenBSD 5.6 as a response to the unnecessary challenges other APIs present in order to use them safely.AUTHORS
<jsing@openbsd.org><tedu@openbsd.org>