|
NAMEtls_connect , tls_connect_fds ,
tls_connect_servername ,
tls_connect_socket ,
tls_connect_cbs —
instruct a TLS client to establish a connection
SYNOPSIS#include <tls.h>
int
int
int
int
int
DESCRIPTIONAfter creating a TLS client context with tls_client(3) and configuring it with tls_configure(3), a client connection is initiated by callingtls_connect (). This function will create a new socket,
connect to the specified host and
port, and then establish a secure connection. The
port may be numeric or a service name. If it is
NULL , then a host of the format
"hostname:port" is permitted. The name to use for verification is
inferred from the host value.
The An already existing socket can be upgraded to a secure connection
by calling Alternatively, a secure connection can be established over a pair
of existing file descriptors by calling
Calling RETURN VALUESThese functions return 0 on success or -1 on error.SEE ALSOtls_accept_socket(3), tls_client(3), tls_close(3), tls_config_ocsp_require_stapling(3), tls_configure(3), tls_handshake(3), tls_init(3)HISTORYtls_connect () and
tls_connect_socket () appeared in
OpenBSD 5.6 and got their final names in
OpenBSD 5.7.
AUTHORSJoel Sing <jsing@openbsd.org>Reyk Floeter <reyk@openbsd.org>
Visit the GSP FreeBSD Man Page Interface. |