pub struct rustls_allow_any_anonymous_or_authenticated_client_builder { /* private fields */ }
Expand description

A builder for a rustls_allow_any_anonymous_or_authenticated_client_verifier. This builder object can be used to configure certificate revocation lists, and then turned into a rustls_allow_any_anonymous_or_authenticated_client_verifier once ready.

Implementations§

source§

impl rustls_allow_any_anonymous_or_authenticated_client_builder

source

#[no_mangle]
pub extern "C" fn rustls_client_cert_verifier_optional_builder_new( store: *const rustls_root_cert_store ) -> *mut rustls_allow_any_anonymous_or_authenticated_client_builder

Create a new allow any anonymous or authenticated client certificate verifier builder using the root store.

This copies the contents of the rustls_root_cert_store. It does not take ownership of the pointed-to memory.

This object can then be used to load any CRLs.

Once that is complete, convert it into a real rustls_allow_any_anonymous_or_authenticated_client_verifier by calling rustls_allow_any_anonymous_or_authenticated_client_verifier_new().

source

#[no_mangle]
pub extern "C" fn rustls_client_cert_verifier_optional_builder_add_crl( builder: *mut rustls_allow_any_anonymous_or_authenticated_client_builder, crl_pem: *const u8, crl_pem_len: size_t ) -> rustls_result

Add one or more certificate revocation lists (CRLs) to the client certificate verifier by reading the CRL content from the provided buffer of PEM encoded content.

This function returns an error if the provided buffer is not valid PEM encoded content, or if the CRL content is invalid or unsupported.

source

#[no_mangle]
pub extern "C" fn rustls_client_cert_verifier_optional_builder_free( builder: *mut rustls_allow_any_anonymous_or_authenticated_client_builder )

Free a rustls_allow_any_anonymous_or_authenticated_client_builder previously returned from rustls_client_cert_verifier_optional_builder_new. Calling with NULL is fine. Must not be called twice with the same value.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.