[][src]Struct schannel::cert_store::Memory

pub struct Memory(_);

Representation of an in-memory certificate store.

Internally this contains a CertStore which this type can be converted to.

Implementations

impl Memory[src]

pub fn new() -> Result<Memory>[src]

Creates a new in-memory certificate store which certificates and CTLs can be added to.

Initially the returned certificate store contains no certificates.

pub fn add_encoded_certificate(&mut self, cert: &[u8]) -> Result<CertContext>[src]

Adds a new certificate to this memory store.

For example the bytes could be a DER-encoded certificate.

pub fn add_encoded_ctl(&mut self, ctl: &[u8]) -> Result<CtlContext>[src]

Adds a new CTL to this memory store, in its encoded form.

This can be created through the ctl_context::Builder type.

pub fn into_store(self) -> CertStore[src]

Consumes this memory store, returning the underlying CertStore.

Auto Trait Implementations

impl RefUnwindSafe for Memory

impl Send for Memory

impl Sync for Memory

impl Unpin for Memory

impl UnwindSafe for Memory

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.