exception Tls_alert of Tls.Packet.alert_typeTls_alert exception received from the other endpoint
exception Tls_failure of Tls.Engine.failureTls_failure exception while processing incoming data
module Unix : sig ... endLow-level API
High-level API
type ic = Lwt_io.input_channeltype oc = Lwt_io.output_channelval accept_ext : Tls.Config.server -> Lwt_unix.file_descr -> ((ic * oc) * Lwt_unix.sockaddr) Lwt.taccept_ext server fd is (ic, oc), sockaddr, the input and output channel from an accepted connection on the given fd, after upgrading to TLS using the server configuration.
val accept : Tls.Config.own_cert -> Lwt_unix.file_descr -> ((ic * oc) * Lwt_unix.sockaddr) Lwt.taccept own_cert fd is (ic, oc), sockaddr, the input and output channel from the accepted connection on fd, using the default configuration with the given own_cert.
val connect_ext : Tls.Config.client -> (string * int) -> (ic * oc) Lwt.tconnect_ext client (host, port) is ic, oc, the input and output channel of a TLS connection to host on port using the client configuration.
val connect : X509_lwt.authenticator -> (string * int) -> (ic * oc) Lwt.tconnect authenticator (host, port) is ic, oc, the input and output channel of a TLS connection to host on port using the default configuration and the authenticator.