pub struct OcspRequest { /* private fields */ }Expand description
An OCSP request (OCSP_REQUEST*).
Build with OcspRequest::new, populate with OcspRequest::add_cert_id,
then encode with OcspRequest::to_der and send to the OCSP responder.
Implementations§
Source§impl OcspRequest
impl OcspRequest
Sourcepub fn new() -> Result<Self, ErrorStack>
pub fn new() -> Result<Self, ErrorStack>
Create a new, empty OCSP request.
§Errors
Sourcepub fn from_der(der: &[u8]) -> Result<Self, ErrorStack>
pub fn from_der(der: &[u8]) -> Result<Self, ErrorStack>
Decode an OCSP request from DER bytes.
§Errors
Sourcepub fn add_cert_id(&mut self, cert_id: OcspCertId) -> Result<(), ErrorStack>
pub fn add_cert_id(&mut self, cert_id: OcspCertId) -> Result<(), ErrorStack>
Add a certificate identifier to the request.
cert_id ownership is transferred to the request (add0 semantics);
the OcspCertId is consumed.
§Errors
Trait Implementations§
Source§impl Drop for OcspRequest
impl Drop for OcspRequest
impl Send for OcspRequest
Auto Trait Implementations§
impl Freeze for OcspRequest
impl RefUnwindSafe for OcspRequest
impl !Sync for OcspRequest
impl Unpin for OcspRequest
impl UnsafeUnpin for OcspRequest
impl UnwindSafe for OcspRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more