OCSP.RequestSourceModule for encoding and decoding OCSP requests.
type for Request
val create :
?certs:Certificate.t list ->
?digest:Digestif.hash' ->
?requestor_name:General_name.b ->
?key:Private_key.t ->
cert_id list ->
(t, [> `Msg of string ]) resultcreate ~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:Digestif.hash' list ->
Public_key.t ->
(unit, [> Validation.signature_error | `No_signature ]) resultvalidate request key validates the signature of request with the pulic key.
requestor_name request is requestorName from this request