package tls-lwt
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=da79960789fa418b62bf89cd524e99815c5010413bc189f0f33966b8d0b886d2
sha512=2a5f5685b2a0bc37c3f80ffc2ebf49ad1b5506efedbc35aa6177faeae1dadb3048f35572ee6fc8a37ea352b600563c9080d9b69f42cedb37a56fc631ed44e345
doc/tls-lwt/Tls_lwt/index.html
Module Tls_lwtSource
Effectful operations using Lwt for pure TLS.
The pure TLS is state and buffer in, state and buffer out. This module uses Lwt for communication over the network.
This module implements a high-level API and a low-level API (in Unix). Most applications should use the high-level API described below.
Tls_alert exception received from the other endpoint
Tls_failure exception while processing incoming data
High-level API
val 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, [> `Msg of string ]) result 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.
connect_ext client (host, port) is ic, oc, the input and output channel of a TLS connection to host on port using the client configuration.