Struct openssl::ocsp::OcspResponse [−][src]
pub struct OcspResponse(_);
Implementations
pub fn create(
status: OcspResponseStatus,
body: Option<&OcspBasicResponseRef>
) -> Result<OcspResponse, ErrorStack>
pub fn create(
status: OcspResponseStatus,
body: Option<&OcspBasicResponseRef>
) -> Result<OcspResponse, ErrorStack>
Creates an OCSP response from the status and optional body.
A body should only be provided if status
is RESPONSE_STATUS_SUCCESSFUL
.
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.
Returns the basic response.
This will only succeed if status()
returns RESPONSE_STATUS_SUCCESSFUL
.
Trait Implementations
Performs the conversion.
Immutably borrows from an owned value. Read more
type Target = OcspResponseRef
type Target = OcspResponseRef
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
type CType = OCSP_RESPONSE
type CType = OCSP_RESPONSE
The raw C type.
type Ref = OcspResponseRef
type Ref = OcspResponseRef
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.