summaryrefslogtreecommitdiff
path: root/gemini/tlsUtils.mli
blob: 35a674d746049d2b85474e6b54c26f849a271166 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module type TLS_UTILS =
sig
  type authenticator = X509_lwt.authenticator Lwt.t
  type ciphers = Tls.Ciphersuite.ciphersuite list

  val null_auth : authenticator

  val ca : Lwt_io.file_name -> authenticator

  val self_sign : ?bits:int -> ?days:int
    -> X509.Distinguished_name.t
    -> (Tls.Config.certchain, string) result
end

module TlsUtils : TLS_UTILS