pub unsafe extern "C" fn s2n_config_set_client_auth_type(
config: *mut s2n_config,
client_auth_type: u32
) -> i32
Expand description
Sets whether or not a Client Certificate should be required to complete the TLS Connection.
If this is set to S2N_CERT_AUTH_OPTIONAL
the server will request a client certificate but allow the client to not provide one.
Rejecting a client certificate when using S2N_CERT_AUTH_OPTIONAL
will terminate the handshake.
@param config A pointer to a s2n_config object @param client_auth_type The client auth policy for the connection @returns S2N_SUCCESS on success. S2N_FAILURE on failure