Struct openssl::ocsp::OcspRequest
source · pub struct OcspRequest(_);
Implementations§
source§impl OcspRequest
impl OcspRequest
sourcepub fn new() -> Result<OcspRequest, ErrorStack>
pub fn new() -> Result<OcspRequest, ErrorStack>
This corresponds to OCSP_REQUEST_new
.
sourcepub fn from_der(der: &[u8]) -> Result<OcspRequest, ErrorStack>
pub fn from_der(der: &[u8]) -> Result<OcspRequest, ErrorStack>
Deserializes a DER-encoded OCSP request.
This corresponds to d2i_OCSP_REQUEST
.
Methods from Deref<Target = OcspRequestRef>§
sourcepub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
pub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
Serializes the request to its standard DER encoding.
This corresponds to i2d_OCSP_REQUEST
.
sourcepub fn add_id(
&mut self,
id: OcspCertId
) -> Result<&mut OcspOneReqRef, ErrorStack>
pub fn add_id( &mut self, id: OcspCertId ) -> Result<&mut OcspOneReqRef, ErrorStack>
This corresponds to OCSP_request_add0_id
.
Trait Implementations§
source§impl AsRef<OcspRequestRef> for OcspRequest
impl AsRef<OcspRequestRef> for OcspRequest
source§fn as_ref(&self) -> &OcspRequestRef
fn as_ref(&self) -> &OcspRequestRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<OcspRequestRef> for OcspRequest
impl Borrow<OcspRequestRef> for OcspRequest
source§fn borrow(&self) -> &OcspRequestRef
fn borrow(&self) -> &OcspRequestRef
Immutably borrows from an owned value. Read more
source§impl Deref for OcspRequest
impl Deref for OcspRequest
§type Target = OcspRequestRef
type Target = OcspRequestRef
The resulting type after dereferencing.
source§fn deref(&self) -> &OcspRequestRef
fn deref(&self) -> &OcspRequestRef
Dereferences the value.
source§impl DerefMut for OcspRequest
impl DerefMut for OcspRequest
source§fn deref_mut(&mut self) -> &mut OcspRequestRef
fn deref_mut(&mut self) -> &mut OcspRequestRef
Mutably dereferences the value.
source§impl Drop for OcspRequest
impl Drop for OcspRequest
source§impl ForeignType for OcspRequest
impl ForeignType for OcspRequest
§type CType = OCSP_REQUEST
type CType = OCSP_REQUEST
The raw C type.
§type Ref = OcspRequestRef
type Ref = OcspRequestRef
The type representing a reference to this type.
source§unsafe fn from_ptr(ptr: *mut OCSP_REQUEST) -> OcspRequest
unsafe fn from_ptr(ptr: *mut OCSP_REQUEST) -> OcspRequest
Constructs an instance of this type from its raw type.
source§fn as_ptr(&self) -> *mut OCSP_REQUEST
fn as_ptr(&self) -> *mut OCSP_REQUEST
Returns a raw pointer to the wrapped value.