Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Module for encoding and decoding OCSP requests.
val pp : t Fmt.t
pp ppf request
pretty prints request
val create :
?certs:Certificate.t list ->
?digest:Mirage_crypto.Hash.hash ->
?requestor_name:General_name.b ->
?key:Private_key.t ->
cert_id list ->
(t, [> Rresult.R.msg ]) Rresult.result
create ~certs ~digest ~requestor_name ~key certids
creates request for given certids
and, if key
is provided, signs it using digest
. requestorName
may be used by responder to distinguish requesters. certs
may be used by responder to check requestor authority.
val validate :
t ->
?allowed_hashes:Mirage_crypto.Hash.hash list ->
Public_key.t ->
(unit, [> Validation.signature_error | `No_signature ]) Rresult.result
validate request key
validates the signature of request
with the pulic key
.
val requestor_name : t -> General_name.b option
requestor_name request
is requestorName from this request
decode_der buffer
decodes request in buffer