Update outdated comment on effect of hardcoding RNG on API

This commit is contained in:
Hanno Becker 2019-07-04 11:28:34 +01:00
parent 62327abd65
commit 65f6f38097

View file

@ -1478,11 +1478,8 @@ void mbedtls_ssl_conf_verify( mbedtls_ssl_config *conf,
/** /**
* \brief Set the random number generator callback * \brief Set the random number generator callback
* *
* \note On constrained systems, the RNG can also be * \note On constrained systems, the RNG can also be configured at
* configured at compile-time via the option * compile-time via the option MBEDTLS_SSL_CONF_RNG.
* MBEDTLS_SSL_CONF_RNG. In this case, the
* \p f_rng argument in this function has no
* effect.
* *
* \param conf SSL configuration * \param conf SSL configuration
* \param f_rng RNG function * \param f_rng RNG function
@ -1491,7 +1488,7 @@ void mbedtls_ssl_conf_verify( mbedtls_ssl_config *conf,
void mbedtls_ssl_conf_rng( mbedtls_ssl_config *conf, void mbedtls_ssl_conf_rng( mbedtls_ssl_config *conf,
int (*f_rng)(void *, unsigned char *, size_t), int (*f_rng)(void *, unsigned char *, size_t),
void *p_rng ); void *p_rng );
#else #else /* !MBEDTLS_SSL_CONF_RNG */
/** /**
* \brief Set the random number generator callback context. * \brief Set the random number generator callback context.
* *
@ -1500,7 +1497,7 @@ void mbedtls_ssl_conf_rng( mbedtls_ssl_config *conf,
*/ */
void mbedtls_ssl_conf_rng_ctx( mbedtls_ssl_config *conf, void mbedtls_ssl_conf_rng_ctx( mbedtls_ssl_config *conf,
void *p_rng ); void *p_rng );
#endif #endif /* MBEDTLS_SSL_CONF_RNG */
/** /**
* \brief Set the debug callback * \brief Set the debug callback