pub struct X509StoreBuilderRef(_);
Expand description
Reference to an X509StoreBuilder
.
Implementations
sourceimpl X509StoreBuilderRef
impl X509StoreBuilderRef
sourcepub fn add_cert(&mut self, cert: X509) -> Result<(), ErrorStack>
pub fn add_cert(&mut self, cert: X509) -> Result<(), ErrorStack>
Adds a certificate to the certificate store.
sourcepub fn set_default_paths(&mut self) -> Result<(), ErrorStack>
pub fn set_default_paths(&mut self) -> Result<(), ErrorStack>
Load certificates from their default locations.
These locations are read from the SSL_CERT_FILE
and SSL_CERT_DIR
environment variables if present, or defaults specified at OpenSSL
build time otherwise.
sourcepub fn add_lookup<T>(
&mut self,
method: &'static X509LookupMethodRef<T>
) -> Result<&mut X509LookupRef<T>, ErrorStack>
pub fn add_lookup<T>(
&mut self,
method: &'static X509LookupMethodRef<T>
) -> Result<&mut X509LookupRef<T>, ErrorStack>
Adds a lookup method to the store.
This corresponds to X509_STORE_add_lookup
.
sourcepub fn set_flags(&mut self, flags: X509VerifyFlags) -> Result<(), ErrorStack>
pub fn set_flags(&mut self, flags: X509VerifyFlags) -> Result<(), ErrorStack>
Sets certificate chain validation related flags.
This corresponds to X509_STORE_set_flags
.
Trait Implementations
sourceimpl AsRef<X509StoreBuilderRef> for X509StoreBuilder
impl AsRef<X509StoreBuilderRef> for X509StoreBuilder
sourcefn as_ref(&self) -> &X509StoreBuilderRef
fn as_ref(&self) -> &X509StoreBuilderRef
Performs the conversion.
sourceimpl Borrow<X509StoreBuilderRef> for X509StoreBuilder
impl Borrow<X509StoreBuilderRef> for X509StoreBuilder
sourcefn borrow(&self) -> &X509StoreBuilderRef
fn borrow(&self) -> &X509StoreBuilderRef
Immutably borrows from an owned value. Read more
sourceimpl ForeignTypeRef for X509StoreBuilderRef
impl ForeignTypeRef for X509StoreBuilderRef
impl Send for X509StoreBuilderRef
impl Sync for X509StoreBuilderRef
Auto Trait Implementations
impl !RefUnwindSafe for X509StoreBuilderRef
impl Unpin for X509StoreBuilderRef
impl UnwindSafe for X509StoreBuilderRef
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more