pub struct X509StoreBuilderRef(/* private fields */);
Expand description
A borrowed reference to a X509StoreBuilder
.
Implementations§
Source§impl 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 set_flags(&mut self, flags: X509Flags)
pub fn set_flags(&mut self, flags: X509Flags)
Sets verify flags.
This corresponds to X509_STORE_set_flags
.
Sourcepub fn verify_param_mut(&mut self) -> &mut X509VerifyParamRef
pub fn verify_param_mut(&mut self) -> &mut X509VerifyParamRef
Returns a mutable reference to the X509 verification configuration.
This corresponds to [X509_STORE_get0_param
].
Trait Implementations§
Source§impl AsMut<X509StoreBuilderRef> for X509StoreBuilder
impl AsMut<X509StoreBuilderRef> for X509StoreBuilder
Source§fn as_mut(&mut self) -> &mut X509StoreBuilderRef
fn as_mut(&mut self) -> &mut X509StoreBuilderRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<X509StoreBuilderRef> for X509StoreBuilder
impl AsRef<X509StoreBuilderRef> for X509StoreBuilder
Source§fn as_ref(&self) -> &X509StoreBuilderRef
fn as_ref(&self) -> &X509StoreBuilderRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<X509StoreBuilderRef> for X509StoreBuilder
impl Borrow<X509StoreBuilderRef> for X509StoreBuilder
Source§fn borrow(&self) -> &X509StoreBuilderRef
fn borrow(&self) -> &X509StoreBuilderRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<X509StoreBuilderRef> for X509StoreBuilder
impl BorrowMut<X509StoreBuilderRef> for X509StoreBuilder
Source§fn borrow_mut(&mut self) -> &mut X509StoreBuilderRef
fn borrow_mut(&mut self) -> &mut X509StoreBuilderRef
Mutably borrows from an owned value. Read more
Source§impl ForeignTypeRef for X509StoreBuilderRef
impl ForeignTypeRef for X509StoreBuilderRef
Source§type CType = x509_store_st
type CType = x509_store_st
The raw C type.
Source§unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type. Read more
impl Send for X509StoreBuilderRef
impl Sync for X509StoreBuilderRef
Auto Trait Implementations§
impl Freeze for X509StoreBuilderRef
impl !RefUnwindSafe for X509StoreBuilderRef
impl Unpin for X509StoreBuilderRef
impl UnwindSafe for X509StoreBuilderRef
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