paf

HTTP/AF and MirageOS
Library paf.mirage
Module Paf_mirage . S . TLS
module FLOW : sig ... end
type error = [
| `Read of TCP.error
| `Tls_alert of Tls.Packet.alert_type
| `Tls_failure of Tls.Engine.failure
| `Write of TCP.write_error
]
type write_error = [
| `Closed
| `Read of TCP.error
| `Tls_alert of Tls.Packet.alert_type
| `Tls_failure of Tls.Engine.failure
| `Write of TCP.write_error
]
val pp_error : error Fmt.t
val pp_write_error : write_error Fmt.t
val write : flow -> Cstruct.t -> ( unit, write_error ) result Lwt.t
val writev : flow -> Cstruct.t list -> ( unit, write_error ) result Lwt.t
val close : flow -> unit Lwt.t
val reneg : ?authenticator:X509.Authenticator.t -> ?acceptable_cas:X509.Distinguished_name.t list -> ?cert:Tls.Config.own_cert -> ?drop:bool -> flow -> ( unit, write_error ) result Lwt.t
val key_update : ?request:bool -> flow -> ( unit, write_error ) result Lwt.t
val client_of_flow : Tls.Config.client -> ?host:[ `host ] Domain_name.t -> FLOW.flow -> ( flow, write_error ) result Lwt.t
val server_of_flow : Tls.Config.server -> FLOW.flow -> ( flow, write_error ) result Lwt.t
val epoch : flow -> ( Tls.Core.epoch_data, unit ) result