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
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
#[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
#[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
)
#[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.