mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-24 18:25:38 +00:00
Explain why RNG ctx parameter is kept in MBEDTLS_SSL_CONF_RNG
This commit is contained in:
parent
665d698972
commit
0f36e7bfa3
|
@ -3670,6 +3670,9 @@
|
||||||
* int f_rng(void *, unsigned char *, size_t),
|
* int f_rng(void *, unsigned char *, size_t),
|
||||||
* which ignores its first parameter (the stack will always
|
* which ignores its first parameter (the stack will always
|
||||||
* pass NULL to this function).
|
* pass NULL to this function).
|
||||||
|
* NB: The reason not to drop the context parameter entirely
|
||||||
|
* is for compatibility with the Crypto and X.509 libraries
|
||||||
|
* which use RNG callbacks including context parameters.
|
||||||
*/
|
*/
|
||||||
//#define MBEDTLS_SSL_CONF_RNG rng_wrap
|
//#define MBEDTLS_SSL_CONF_RNG rng_wrap
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue