mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-30 12:50:58 +00:00
Make mg_random() weak, see #1269
This commit is contained in:
1 parent
7061b7202f
commit
31c9e3fb7e
3 files changed
+33
-28
No files matched your search
@@ -1021,6 +1021,11 @@ int mg_tls_init(struct mg_connection *c, struct mg_tls_opts *opts);
|
||||
|
||||
Initialise TLS on a given connection.
|
||||
|
||||
IMPORTANT: mbedTLS implementation uses `mg_random` as RNG. The `mg_random`
|
||||
is defined as weak, therefore it is possible to override Mongoose's `mg_random`
|
||||
with a custom implementation. Just create your own `mg_random` function:
|
||||
`void mg_random(void *buf, size_t len)`.
|
||||
|
||||
|
||||
## Timers
|
||||
|
||||
|
||||
Reference in new issue
Block a user