Sendmail_with_starttls.Make_with_tls
type 'x send = 'x Value.send
type 'x recv = 'x Value.recv
type encoder = Context_with_tls.encoder
type decoder = Context_with_tls.decoder
type value_error = Value.error
type error = [
| `Tls_alert of Tls.Packet.alert_type
| `Tls_failure of Tls.Engine.failure
| `Tls_closed
| `Value of value_error
]
val starttls_as_client :
encoder ->
Tls.Config.client ->
(unit, [> error ]) Colombe.State.t
val starttls_as_server :
decoder ->
Tls.Config.server ->
(unit, [> error ]) Colombe.State.t
val close : encoder -> (unit, [> error ]) Colombe.State.t
val encode : encoder -> 'a send -> 'a -> (unit, [> error ]) Colombe.State.t
val decode : decoder -> 'a recv -> ('a, [> error ]) Colombe.State.t