Struct mbedtls::x509::Certificate
source · pub struct Certificate { /* private fields */ }
Implementations
sourceimpl Certificate
impl Certificate
pub fn from_der(der: &[u8]) -> Result<Certificate>
sourcepub fn from_pem(pem: &[u8]) -> Result<Certificate>
pub fn from_pem(pem: &[u8]) -> Result<Certificate>
Input must be NULL-terminated
Methods from Deref<Target = LinkedCertificate>
pub fn check_key_usage(&self, usage: KeyUsage) -> bool
pub fn check_extended_key_usage(&self, usage_oid: &[c_char]) -> bool
pub fn issuer(&self) -> Result<String>
pub fn issuer_raw(&self) -> Result<Vec<u8>>
pub fn subject(&self) -> Result<String>
pub fn subject_raw(&self) -> Result<Vec<u8>>
pub fn serial(&self) -> Result<String>
pub fn serial_raw(&self) -> Result<Vec<u8>>
pub fn public_key(&self) -> &Pk
pub fn public_key_mut(&mut self) -> &mut Pk
pub fn as_der(&self) -> &[u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
pub fn verify(
&mut self,
trust_ca: &mut Certificate,
err_info: Option<&mut String>
) -> Result<()>
Trait Implementations
sourceimpl Deref for Certificate
impl Deref for Certificate
type Target = LinkedCertificate
type Target = LinkedCertificate
The resulting type after dereferencing.
sourcefn deref(&self) -> &LinkedCertificate
fn deref(&self) -> &LinkedCertificate
Dereferences the value.
sourceimpl DerefMut for Certificate
impl DerefMut for Certificate
sourcefn deref_mut(&mut self) -> &mut LinkedCertificate
fn deref_mut(&mut self) -> &mut LinkedCertificate
Mutably dereferences the value.
sourceimpl Drop for Certificate
impl Drop for Certificate
sourceimpl<'c> From<&'c mut Certificate> for List<'c>
impl<'c> From<&'c mut Certificate> for List<'c>
sourcefn from(cert: &'c mut Certificate) -> List<'c>
fn from(cert: &'c mut Certificate) -> List<'c>
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for Certificate
impl !Send for Certificate
impl !Sync for Certificate
impl Unpin for Certificate
impl UnwindSafe for Certificate
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