Skip to main content

mbedtls_ssl_conf_rng

Function mbedtls_ssl_conf_rng 

Source
pub unsafe extern "C" fn mbedtls_ssl_conf_rng(
    conf: *mut mbedtls_ssl_config,
    f_rng: mbedtls_f_rng_t,
    p_rng: *mut c_void,
)
Expand description

\brief Set the random number generator callback

\note The callback with its parameter must remain valid as long as there is an SSL context that uses the SSL configuration.

\param conf SSL configuration \param f_rng RNG function (mandatory) \param p_rng RNG parameter