package paf

  1. Overview
  2. Docs
HTTP/AF and MirageOS

Install

dune-project
 Dependency

Authors

Maintainers

Sources

paf-0.6.0.tbz
sha256=baf35eceec745789b06f1534ef309f0985ce80260a3f1b2138a8a20232de7fd9
sha512=5d359537b27571f1ad407722f05d2d1fae9bfa104e235fc1f9dfddb9215cbf1ddf5c983860ba8f3d73f172490b33466ff228deee840cd472c3031fe17b921bd2

doc/paf.mirage/Paf_mirage/Make/TLS/index.html

Module Make.TLSSource

Sourcetype error = [
  1. | `Tls_alert of Tls.Packet.alert_type
  2. | `Tls_failure of Tls.Engine.failure
  3. | `Read of TCP.error
  4. | `Write of TCP.write_error
]
Sourcetype write_error = [
  1. | `Closed
  2. | error
]
include Mirage_flow.S with type error := error and type write_error := write_error
Sourceval pp_error : error Fmt.t
Sourceval pp_write_error : write_error Fmt.t
Sourcetype flow
Sourceval read : flow -> (Cstruct.t Mirage_flow.or_eof, error) result Lwt.t
Sourceval write : flow -> Cstruct.t -> (unit, write_error) result Lwt.t
Sourceval writev : flow -> Cstruct.t list -> (unit, write_error) result Lwt.t
Sourceval shutdown : flow -> [ `read | `read_write | `write ] -> unit Lwt.t
Sourceval close : flow -> unit Lwt.t
Sourceval no_close : flow -> unit
Sourceval to_close : flow -> unit
Sourceval epoch : flow -> (Tls.Core.epoch_data, unit) result
Sourceval reneg : ?authenticator:X509.Authenticator.t -> ?acceptable_cas:X509.Distinguished_name.t list -> ?cert:Tls.Config.own_cert -> ?drop:bool -> flow -> (unit, [ write_error | `Msg of string ]) result Lwt.t
Sourceval key_update : ?request:bool -> flow -> (unit, [ write_error | `Msg of string ]) result Lwt.t
Sourceval server_of_flow : Tls.Config.server -> TCP.flow -> (flow, write_error) result Lwt.t
Sourceval client_of_flow : Tls.Config.client -> ?host:[ `host ] Domain_name.t -> TCP.flow -> (flow, write_error) result Lwt.t
OCaml

Innovation. Community. Security.