Struct X509StoreBuilder
pub struct X509StoreBuilder(/* private fields */);boring and crypto and std only.Expand description
A builder type used to construct an X509Store.
Implementations§
§impl X509StoreBuilder
impl X509StoreBuilder
pub fn new() -> Result<X509StoreBuilder, ErrorStack>
pub fn new() -> Result<X509StoreBuilder, ErrorStack>
Returns a builder for a certificate store.
The store is initially empty.
Methods from Deref<Target = X509StoreBuilderRef>§
pub fn add_cert(&mut self, cert: impl AsRef<X509Ref>) -> Result<(), ErrorStack>
pub fn add_cert(&mut self, cert: impl AsRef<X509Ref>) -> Result<(), ErrorStack>
Adds a certificate to the certificate store.
This corresponds to X509_STORE_add_cert.
pub 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.
pub fn set_flags(&mut self, flags: X509VerifyFlags)
pub fn set_flags(&mut self, flags: X509VerifyFlags)
Sets certificate chain validation related flags.
This corresponds to X509_STORE_set_flags.
pub fn try_set_flags(
&mut self,
flags: X509VerifyFlags,
) -> Result<(), ErrorStack>
pub fn try_set_flags( &mut self, flags: X509VerifyFlags, ) -> Result<(), ErrorStack>
Sets certificate verification flags without panicking on native failure.
This corresponds to X509_STORE_set_flags.
pub 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.
pub 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§
§impl AsMut<X509StoreBuilderRef> for X509StoreBuilder
impl AsMut<X509StoreBuilderRef> for X509StoreBuilder
§fn as_mut(&mut self) -> &mut X509StoreBuilderRef
fn as_mut(&mut self) -> &mut X509StoreBuilderRef
§impl AsRef<X509StoreBuilderRef> for X509StoreBuilder
impl AsRef<X509StoreBuilderRef> for X509StoreBuilder
§fn as_ref(&self) -> &X509StoreBuilderRef
fn as_ref(&self) -> &X509StoreBuilderRef
§impl Borrow<X509StoreBuilderRef> for X509StoreBuilder
impl Borrow<X509StoreBuilderRef> for X509StoreBuilder
§fn borrow(&self) -> &X509StoreBuilderRef
fn borrow(&self) -> &X509StoreBuilderRef
§impl BorrowMut<X509StoreBuilderRef> for X509StoreBuilder
impl BorrowMut<X509StoreBuilderRef> for X509StoreBuilder
§fn borrow_mut(&mut self) -> &mut X509StoreBuilderRef
fn borrow_mut(&mut self) -> &mut X509StoreBuilderRef
§impl Deref for X509StoreBuilder
impl Deref for X509StoreBuilder
§type Target = X509StoreBuilderRef
type Target = X509StoreBuilderRef
§fn deref(&self) -> &X509StoreBuilderRef
fn deref(&self) -> &X509StoreBuilderRef
§impl DerefMut for X509StoreBuilder
impl DerefMut for X509StoreBuilder
§fn deref_mut(&mut self) -> &mut X509StoreBuilderRef
fn deref_mut(&mut self) -> &mut X509StoreBuilderRef
§impl Drop for X509StoreBuilder
impl Drop for X509StoreBuilder
§impl ForeignType for X509StoreBuilder
impl ForeignType for X509StoreBuilder
§type Ref = X509StoreBuilderRef
type Ref = X509StoreBuilderRef
§unsafe fn from_ptr(ptr: *mut x509_store_st) -> X509StoreBuilder
unsafe fn from_ptr(ptr: *mut x509_store_st) -> X509StoreBuilder
impl Send for X509StoreBuilder
impl Sync for X509StoreBuilder
Auto Trait Implementations§
impl Freeze for X509StoreBuilder
impl RefUnwindSafe for X509StoreBuilder
impl Unpin for X509StoreBuilder
impl UnsafeUnpin for X509StoreBuilder
impl UnwindSafe for X509StoreBuilder
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a rama_grpc::Request§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more