#[repr(C)]
pub struct LinkedCertificate { /* private fields */ }

Implementations§

source§

impl LinkedCertificate

source

pub fn check_key_usage(&self, usage: KeyUsage) -> bool

source

pub fn check_extended_key_usage(&self, usage_oid: &[c_char]) -> bool

source

pub fn issuer(&self) -> Result<String>

source

pub fn issuer_raw(&self) -> Result<Vec<u8>>

source

pub fn subject(&self) -> Result<String>

source

pub fn subject_raw(&self) -> Result<Vec<u8>>

source

pub fn serial(&self) -> Result<String>

source

pub fn serial_raw(&self) -> Result<Vec<u8>>

source

pub fn public_key(&self) -> &Pk

source

pub fn public_key_mut(&mut self) -> &mut Pk

source

pub fn as_der(&self) -> &[u8]

source

pub fn version(&self) -> Result<CertificateVersion>

source

pub fn not_before(&self) -> Result<Time>

source

pub fn not_after(&self) -> Result<Time>

source

pub fn extensions_raw(&self) -> Result<Vec<u8>>

source

pub fn extensions(&self) -> Result<Vec<Extension>>

source

pub fn signature(&self) -> Result<Vec<u8>>

source

pub fn digest_type(&self) -> MdType

source

pub fn verify( &mut self, trust_ca: &mut Certificate, err_info: Option<&mut String> ) -> Result<()>

Trait Implementations§

source§

impl Debug for LinkedCertificate

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'c, 'r> From<&'c mut List<'r>> for &'c mut LinkedCertificate

source§

fn from(list: &'c mut List<'r>) -> &'c mut LinkedCertificate

Converts to this type from the input type.
source§

impl<'r> Into<*const x509_crt> for &'r LinkedCertificate

source§

fn into(self) -> *const x509_crt

Converts this type into the (usually inferred) input type.
source§

impl<'r> Into<*mut x509_crt> for &'r mut LinkedCertificate

source§

fn into(self) -> *mut x509_crt

Converts this type into the (usually inferred) input type.

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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.
const: unstable · 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.
const: unstable · source§

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

Performs the conversion.