[−][src]Struct schannel::cert_store::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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,