|
NAMEtls_config_set_session_fd ,
tls_config_set_session_id ,
tls_config_set_session_lifetime ,
tls_config_add_ticket_key —
configure resuming of TLS handshakes
SYNOPSIS#include <tls.h>
int
int
int
int
DESCRIPTIONtls_config_set_session_fd () sets a file descriptor to be
used to manage data for TLS sessions (client only). The given file descriptor
must be a regular file and be owned by the current user, with permissions
being restricted to only allow the owner to read and write the file (0600). If
the file has a non-zero length, the client will attempt to read session data
from this file and resume the previous TLS session with the server. Upon a
successful handshake the file will be updated with current session data, if
available. The caller is responsible for closing this file descriptor, after
all TLS contexts that have been configured to use it have been freed via
tls_free ().
RETURN VALUESThese functions return 0 on success or -1 on error.SEE ALSOtls_accept_socket(3), tls_config_set_protocols(3), tls_init(3), tls_load_file(3), tls_server(3)HISTORYtls_config_set_session_id (),
tls_config_set_session_lifetime () and
tls_config_add_ticket_key () appeared in
OpenBSD 6.1.
AUTHORSClaudio Jeker <claudio@openbsd.org>Joel Sing <jsing@openbsd.org>
Visit the GSP FreeBSD Man Page Interface. |