Skip to content

Commit 0e8739f

Browse files
Teppo JärvelinArto Kinnunen
authored andcommitted
Added new global rng, needed for MbedTLS optimisations
1 parent d5db37e commit 0e8739f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,10 @@ int8_t tls_sec_prot_lib_connect(tls_security_t *sec, bool is_server, const sec_p
327327
return -1;
328328
}
329329

330+
#if !defined(MBEDTLS_SSL_CONF_RNG)
330331
// Configure random number generator
331332
mbedtls_ssl_conf_rng(&sec->conf, mbedtls_ctr_drbg_random, &sec->ctr_drbg);
333+
#endif
332334

333335
#ifdef MBEDTLS_ECP_RESTARTABLE
334336
// Set ECC calculation maximum operations (affects only client)

0 commit comments

Comments
 (0)