pub unsafe extern "C" fn s2n_connection_set_client_auth_type(
    conn: *mut s2n_connection,
    client_auth_type: Type
) -> c_int
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 conn A pointer to the s2n_connection object @param client_auth_type The client auth policy for the connection @returns S2N_SUCCESS on success. S2N_FAILURE on failure