Struct openssl::x509::store::X509StoreBuilder [−][src]
pub struct X509StoreBuilder(_);
Expand description
A builder type used to construct an X509Store
.
Implementations
Returns a builder for a certificate store.
The store is initially empty.
Methods from Deref<Target = X509StoreBuilderRef>
Adds a certificate to the certificate store.
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.
pub 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
.
Sets certificate chain validation related flags.
This corresponds to X509_STORE_set_flags
.
Trait Implementations
Performs the conversion.
Immutably borrows from an owned value. Read more
type Target = X509StoreBuilderRef
type Target = X509StoreBuilderRef
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
type CType = X509_STORE
type CType = X509_STORE
The raw C type.
type Ref = X509StoreBuilderRef
type Ref = X509StoreBuilderRef
The type representing a reference to this type.
Constructs an instance of this type from its raw type.
Returns a raw pointer to the wrapped value.