pub struct X509Store { /* private fields */ }Expand description
An OpenSSL certificate trust store (X509_STORE*).
Cloneable via X509_STORE_up_ref; wrapping in Arc<X509Store> is safe.
Implementations§
Source§impl X509Store
impl X509Store
Sourcepub fn new() -> Result<Self, ErrorStack>
pub fn new() -> Result<Self, ErrorStack>
Create an empty trust store.
§Errors
Sourcepub fn add_cert(&mut self, cert: &X509) -> Result<(), ErrorStack>
pub fn add_cert(&mut self, cert: &X509) -> Result<(), ErrorStack>
Add a trusted certificate to the store.
The certificate’s reference count is incremented internally.
§Errors
Trait Implementations§
impl Send for X509Store
impl Sync for X509Store
Auto Trait Implementations§
impl Freeze for X509Store
impl RefUnwindSafe for X509Store
impl Unpin for X509Store
impl UnsafeUnpin for X509Store
impl UnwindSafe for X509Store
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