Module Async_ssl__Ssl
An Async-pipe-based interface with OpenSSL.
This module allows you to create an SSL client and server, with encrypted communication between both.
module Version : module type of Async_ssl.Version
module Opt : module type of Async_ssl.Opt
module Verify_mode : module type of Async_ssl.Verify_mode
module Certificate : sig ... end
module Session : sig ... end
module Connection : sig ... end
val client : ?version:Version.t -> ?options:Opt.t list -> ?name:string -> ?hostname:string -> ?allowed_ciphers:[ `Secure | `Openssl_default | `Only of string list ] -> ?ca_file:string -> ?ca_path:string -> ?crt_file:string -> ?key_file:string -> ?verify_modes:Verify_mode.t list -> ?session:Session.t -> app_to_ssl:string Async.Pipe.Reader.t -> ssl_to_app:string Async.Pipe.Writer.t -> net_to_ssl:string Async.Pipe.Reader.t -> ssl_to_net:string Async.Pipe.Writer.t -> unit -> Connection.t Async.Deferred.Or_error.t
val server : ?version:Version.t -> ?options:Opt.t list -> ?name:string -> ?allowed_ciphers:[ `Secure | `Openssl_default | `Only of string list ] -> ?ca_file:string -> ?ca_path:string -> crt_file:string -> key_file:string -> ?verify_modes:Verify_mode.t list -> app_to_ssl:string Async.Pipe.Reader.t -> ssl_to_app:string Async.Pipe.Writer.t -> net_to_ssl:string Async.Pipe.Reader.t -> ssl_to_net:string Async.Pipe.Writer.t -> unit -> Connection.t Async.Deferred.Or_error.t