pub unsafe extern "C" fn s2n_config_set_cert_tiebreak_callback(
    config: *mut s2n_config,
    cert_tiebreak_cb: Option<unsafe extern "C" fn(_: *mut s2n_cert_chain_and_key, _: *mut s2n_cert_chain_and_key, _: *mut u8, _: u32) -> *mut s2n_cert_chain_and_key>
) -> i32
Expand description

Sets the s2n_cert_tiebreak_callback for resolving domain name conflicts. If no callback is set, the first certificate added for a domain name will always be preferred.

@param config The configuration object being updated @param cert_tiebreak_cb The pointer to the certificate tiebreak function

@returns S2N_SUCCESS on success. S2N_FAILURE on failure