Struct openssl::ocsp::OcspRequest

source ·
pub struct OcspRequest(/* private fields */);

Implementations§

source§

impl OcspRequest

source

pub fn new() -> Result<OcspRequest, ErrorStack>

This corresponds to OCSP_REQUEST_new.

source

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>§

source

pub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>

Serializes the request to its standard DER encoding.

This corresponds to i2d_OCSP_REQUEST.

source

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

source§

fn as_ref(&self) -> &OcspRequestRef

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Borrow<OcspRequestRef> for OcspRequest

source§

fn borrow(&self) -> &OcspRequestRef

Immutably borrows from an owned value. Read more
source§

impl Deref for OcspRequest

§

type Target = OcspRequestRef

The resulting type after dereferencing.
source§

fn deref(&self) -> &OcspRequestRef

Dereferences the value.
source§

impl DerefMut for OcspRequest

source§

fn deref_mut(&mut self) -> &mut OcspRequestRef

Mutably dereferences the value.
source§

impl Drop for OcspRequest

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl ForeignType for OcspRequest

§

type CType = OCSP_REQUEST

The raw C type.
§

type Ref = OcspRequestRef

The type representing a reference to this type.
source§

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

Returns a raw pointer to the wrapped value.
source§

impl Send for OcspRequest

source§

impl Sync for OcspRequest

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.