package tls-async

  1. Overview
  2. Docs
type t = X509.OCSP.Request.t
val pp : t Fmt.t
val validate : t -> ?allowed_hashes:Mirage_crypto.Hash.hash list -> X509.Public_key.t -> (unit, [> `Bad_encoding of X509.Distinguished_name.t * string * Cstruct.t | `Bad_signature of X509.Distinguished_name.t * string | `Hash_not_allowed of X509.Distinguished_name.t * Mirage_crypto.Hash.hash | `Msg of string | `No_signature | `Unsupported_algorithm of X509.Distinguished_name.t * string | `Unsupported_keytype of X509.Distinguished_name.t * X509.Public_key.t ]) Stdlib.result
val requestor_name : t -> X509.General_name.b option
val cert_ids : t -> X509.OCSP.cert_id list
val encode_der : t -> Cstruct.t
val create : ?certs:Certificate.t list -> ?digest:Mirage_crypto.Hash.hash -> ?requestor_name:General_name.b -> ?key:Private_key.t -> cert_id list -> t Core.Or_error.t
val decode_der : contents:string -> t Core.Or_error.t
OCaml

Innovation. Community. Security.