package async_ssl

  1. Overview
  2. Docs
type t
val sexp_of_t : t -> Sexplib0.Sexp.t
val closed : t -> unit Core.Or_error.t Async.Deferred.t
val close : t -> unit
val version : t -> Version.t
val peer_certificate : t -> Certificate.t Core.Or_error.t option
val peer_certificate_fingerprint : t -> [ `SHA1 ] -> string option
val check_peer_certificate_host : t -> string -> unit Core.Or_error.t
val pem_peer_certificate_chain : t -> string option
val alpn_selected : t -> string option
val session_reused : t -> bool

Check if this TLS1.2 session was reused. This doesn't work for TLS1.3 and newer.

OCaml

Innovation. Community. Security.