pub struct X509StoreBuilderRef(/* private fields */);
Expand description
A reference to an 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.
This corresponds to X509_STORE_add_cert
.
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.
This corresponds to X509_STORE_set_default_paths
.
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
.
Sourcepub fn set_purpose(&mut self, purpose: X509PurposeId) -> Result<(), ErrorStack>
pub fn set_purpose(&mut self, purpose: X509PurposeId) -> Result<(), ErrorStack>
Sets the certificate purpose.
The purpose value can be obtained by X509PurposeRef::get_by_sname()
This corresponds to X509_STORE_set_purpose
.
Sourcepub fn set_param(
&mut self,
param: &X509VerifyParamRef,
) -> Result<(), ErrorStack>
pub fn set_param( &mut self, param: &X509VerifyParamRef, ) -> Result<(), ErrorStack>
Sets certificate chain validation related parameters.
This corresponds to X509_STORE_set1_param
.
Trait Implementations§
Source§impl AsRef<X509StoreBuilderRef> for X509StoreBuilder
impl AsRef<X509StoreBuilderRef> for X509StoreBuilder
Source§fn as_ref(&self) -> &X509StoreBuilderRef
fn as_ref(&self) -> &X509StoreBuilderRef
Source§impl Borrow<X509StoreBuilderRef> for X509StoreBuilder
impl Borrow<X509StoreBuilderRef> for X509StoreBuilder
Source§fn borrow(&self) -> &X509StoreBuilderRef
fn borrow(&self) -> &X509StoreBuilderRef
Source§impl ForeignTypeRef for X509StoreBuilderRef
impl ForeignTypeRef for X509StoreBuilderRef
Source§type CType = X509_STORE
type CType = X509_STORE
Source§unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Source§unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 0 bytes