pub struct OcspResponse(_);

Implementations

Creates an OCSP response from the status and optional body.

A body should only be provided if status is RESPONSE_STATUS_SUCCESSFUL.

This corresponds to OCSP_response_create.

Deserializes a DER-encoded OCSP response.

This corresponds to d2i_OCSP_RESPONSE.

Methods from Deref<Target = OcspResponseRef>

Serializes the response to its standard DER encoding.

This corresponds to i2d_OCSP_RESPONSE.

Returns the status of the response.

This corresponds to OCSP_response_status.

Returns the basic response.

This will only succeed if status() returns RESPONSE_STATUS_SUCCESSFUL.

This corresponds to OCSP_response_get1_basic.

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.
Immutably borrows from an owned value. Read more
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Executes the destructor for this type. Read more
The raw C type.
The type representing a reference to this type.
Constructs an instance of this type from its raw type.
Returns a raw pointer to the wrapped value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.