Function esp_idf_sys::mbedtls_ssl_conf_verify

source ยท
pub unsafe extern "C" fn mbedtls_ssl_conf_verify(
    conf: *mut mbedtls_ssl_config,
    f_vrfy: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut mbedtls_x509_crt, arg3: c_int, arg4: *mut u32) -> c_int>,
    p_vrfy: *mut c_void,
)
Expand description

\brief Set the verification callback (Optional).

            If set, the provided verify callback is called for each
            certificate in the peer's CRT chain, including the trusted
            root. For more information, please see the documentation of
            \c mbedtls_x509_crt_verify().

\note For per context callbacks and contexts, please use mbedtls_ssl_set_verify() instead.

\param conf The SSL configuration to use. \param f_vrfy The verification callback to use during CRT verification. \param p_vrfy The opaque context to be passed to the callback.