Struct openssl::ocsp::OcspCertId
source · [−]pub struct OcspCertId(_);
Implementations
sourceimpl OcspCertId
impl OcspCertId
sourcepub fn from_cert(
digest: MessageDigest,
subject: &X509Ref,
issuer: &X509Ref
) -> Result<OcspCertId, ErrorStack>
pub fn from_cert(
digest: MessageDigest,
subject: &X509Ref,
issuer: &X509Ref
) -> Result<OcspCertId, ErrorStack>
Constructs a certificate ID for certificate subject
.
This corresponds to OCSP_cert_to_id
.
Trait Implementations
sourceimpl AsRef<OcspCertIdRef> for OcspCertId
impl AsRef<OcspCertIdRef> for OcspCertId
sourcefn as_ref(&self) -> &OcspCertIdRef
fn as_ref(&self) -> &OcspCertIdRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<OcspCertIdRef> for OcspCertId
impl Borrow<OcspCertIdRef> for OcspCertId
sourcefn borrow(&self) -> &OcspCertIdRef
fn borrow(&self) -> &OcspCertIdRef
Immutably borrows from an owned value. Read more
sourceimpl Deref for OcspCertId
impl Deref for OcspCertId
type Target = OcspCertIdRef
type Target = OcspCertIdRef
The resulting type after dereferencing.
sourcefn deref(&self) -> &OcspCertIdRef
fn deref(&self) -> &OcspCertIdRef
Dereferences the value.
sourceimpl DerefMut for OcspCertId
impl DerefMut for OcspCertId
sourcefn deref_mut(&mut self) -> &mut OcspCertIdRef
fn deref_mut(&mut self) -> &mut OcspCertIdRef
Mutably dereferences the value.
sourceimpl Drop for OcspCertId
impl Drop for OcspCertId
sourceimpl ForeignType for OcspCertId
impl ForeignType for OcspCertId
type CType = OCSP_CERTID
type CType = OCSP_CERTID
The raw C type.
type Ref = OcspCertIdRef
type Ref = OcspCertIdRef
The type representing a reference to this type.
sourceunsafe fn from_ptr(ptr: *mut OCSP_CERTID) -> OcspCertId
unsafe fn from_ptr(ptr: *mut OCSP_CERTID) -> OcspCertId
Constructs an instance of this type from its raw type.
sourcefn as_ptr(&self) -> *mut OCSP_CERTID
fn as_ptr(&self) -> *mut OCSP_CERTID
Returns a raw pointer to the wrapped value.
impl Send for OcspCertId
impl Sync for OcspCertId
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more