Basic bindings for establishing SSL connections.
A utility to generate the appropriate method for theprotocol
,
as a client unless the optional server?
is true. Protocol
should be one of the symbols 'sslv2-or-v3, 'sslv2, 'sslv3 or 'tls.A wrapper around SSL_CTX_new for the given protocol
, as symbol
as in ssl-method
, setting SSL_MODE_ENABLE_PARTIAL_WRITE
and SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER by default.Wrapper around SSL_new. Creates a new SSL structure which is
needed to hold the data for a TLS/SSL connection. Takes settings
from an ssl-context, which can either be provided directly as
x
, or created implicitly using the same signature as
ssl-ctx-new
.Given the ssl context ssl
, as created with ssl-new
,
establishes an SSL connection on ports in
and out
from
file descriptor fd
and returns a list of two new ports, the
wrapped input and output of the SSL connection.