Struct openssl::ocsp::OcspCertId
source · pub struct OcspCertId(/* private fields */);
Implementations§
source§impl 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§
source§impl AsRef<OcspCertIdRef> for OcspCertId
impl AsRef<OcspCertIdRef> for OcspCertId
source§fn as_ref(&self) -> &OcspCertIdRef
fn as_ref(&self) -> &OcspCertIdRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<OcspCertIdRef> for OcspCertId
impl Borrow<OcspCertIdRef> for OcspCertId
source§fn borrow(&self) -> &OcspCertIdRef
fn borrow(&self) -> &OcspCertIdRef
Immutably borrows from an owned value. Read more
source§impl Deref for OcspCertId
impl Deref for OcspCertId
source§type Target = OcspCertIdRef
type Target = OcspCertIdRef
The resulting type after dereferencing.
source§fn deref(&self) -> &OcspCertIdRef
fn deref(&self) -> &OcspCertIdRef
Dereferences the value.
source§impl DerefMut for OcspCertId
impl DerefMut for OcspCertId
source§fn deref_mut(&mut self) -> &mut OcspCertIdRef
fn deref_mut(&mut self) -> &mut OcspCertIdRef
Mutably dereferences the value.
source§impl Drop for OcspCertId
impl Drop for OcspCertId
source§impl ForeignType for OcspCertId
impl ForeignType for OcspCertId
source§type CType = OCSP_CERTID
type CType = OCSP_CERTID
The raw C type.
source§type Ref = OcspCertIdRef
type Ref = OcspCertIdRef
The type representing a reference to this type.
source§unsafe 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.
source§fn 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§
impl Freeze for OcspCertId
impl RefUnwindSafe for OcspCertId
impl Unpin for OcspCertId
impl UnwindSafe for OcspCertId
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more