package capnp-rpc-net

  1. Overview
  2. Docs

Module Capnp_rpc_net.Tls_wrapperSource

Sourceval connect_as_server : [> Eio.Flow.two_way_ty | Eio.Resource.close_ty ] Eio.Std.r -> Auth.Secret_key.t option -> (Endpoint.t, [> `Msg of string ]) result
Sourceval connect_as_client : [> Eio.Flow.two_way_ty | Eio.Resource.close_ty ] Eio.Std.r -> Auth.Secret_key.t Lazy.t -> Auth.Digest.t -> (Endpoint.t, [> `Msg of string ]) result

connect_as_client underlying key digest is an endpoint using flow underlying. If digest requires TLS, it performs a TLS handshake. It uses key as its private key and checks that the server is the one required by auth.

OCaml

Innovation. Community. Security.