Hcs.Tls_config

hcs · API reference

TLS configuration helpers for servers and clients.

Use this module to configure certificates, client verification behavior, ALPN protocol selection, and intentionally insecure test clients.

TLS configuration and helpers for HCS.

This module uses OpenSSL through eio-ssl.

val alpn_h2 : string
val alpn_http11 : string
val alpn_h2c : string
type protocol = 
  | HTTP_1_1
  | HTTP_2
val protocol_of_alpn : string -> protocol option
val alpn_of_protocol : protocol -> string
val ssl_initialized : bool ref
val ensure_ssl_initialized : unit -> unit
val create_context : Ssl.context_type -> Ssl.context
val ssl_error_to_string : Ssl.Error.t -> string
module Client : sig ... end
module Server : sig ... end
val failure_to_string : 'a -> 'a
val negotiated_protocol : Eio_ssl.Context.t -> protocol option