Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
TLS/SSL connection establishment using OpenSSL and Async
module Ssl_config : sig ... end
val ssl_connect :
Ssl_config.config ->
Async.Reader.t ->
Async.Writer.t ->
(Async.Reader.t * Async.Writer.t) Async.Deferred.t
ssl_connect rd wr
will establish a client TLS/SSL session over an existing pair of a rd
Reader.t
and wd
Writer.t
Async connections.
val ssl_listen :
?version:[ `Ssl_not_compiled_in ] ->
?ca_file:string ->
?ca_path:string ->
crt_file:string ->
key_file:string ->
Async.Reader.t ->
Async.Writer.t ->
(Async.Reader.t * Async.Writer.t) Async.Deferred.t
ssl_listen ~crt_file ~key_file rd wr
will establish a server TLS/SSL session over an existing pair of rd
Reader.t
and wd
Writer.t
Async connections.
version
is the version of SSL being used by the server. If not set, it is Ssl.Version.Tlsv1_2
.
From Async_ssl.Std.Ssl
: If both ca_file
and ca_path
are specified, the certificates in ca_file
will be searched before the certificates in ca_path
.