Minor improvement in documentation of hardcoded config func ptrs

This commit is contained in:
Hanno Becker 2019-07-04 11:31:36 +01:00
parent 65f6f38097
commit 572a5d84d6

View file

@ -3605,10 +3605,10 @@
* If defined,
* - MBEDTLS_SSL_CONF_SET_TIMER must evaluate to the name of an externally
* defined function with signature
* void (*f_set_timer)( void* , uint32_t, uint32_t ),
* void f_set_timer( void* , uint32_t, uint32_t ),
* * MBEDTLS_SSL_CONF_SEND must evaluate to the name of an externally
* defined function with signature
* int (*f_get_timer)( void* ).
* int f_get_timer( void* ).
*/
//#define MBEDTLS_SSL_CONF_GET_TIMER mbedtls_timing_get_delay
//#define MBEDTLS_SSL_CONF_SET_TIMER mbedtls_timing_set_delay
@ -3617,13 +3617,13 @@
* If defined,
* - MBEDTLS_SSL_CONF_RECV must evaluate to the name of an externally
* defined function with signature
* int (*f_recv)( void*, unsigned char *, size_t ),
* int f_recv( void*, unsigned char *, size_t ),
* * MBEDTLS_SSL_CONF_SEND must evaluate to the name of an externally
* defined function with signature
* int (*f_send)( void*, const unsigned char *, size_t ),
* int f_send( void*, const unsigned char *, size_t ),
* * MBEDTLS_SSL_CONF_RECV_TIMEOUT must evaluate to the name of an
* externally defined function with signature
* int (*f_recv_timeout)( void*, const unsigned char *, size_t, uint32_t ).
* int f_recv_timeout( void*, const unsigned char *, size_t, uint32_t ).
*/
//#define MBEDTLS_SSL_CONF_RECV mbedtls_net_recv
//#define MBEDTLS_SSL_CONF_SEND mbedtls_net_send
@ -3631,7 +3631,7 @@
/* The PRNG to use by the SSL module. If defined, this must
* evaluate to the name on externally defined function with signature
* int (*f_rng)(void *, unsigned char *, size_t),
* int f_rng(void *, unsigned char *, size_t),
* e.g. mbedtls_ctr_drbg_random or mbedtls_hmac_drbg_random.
*/
//#define MBEDTLS_SSL_CONF_RNG mbedtls_ctr_drbg_random