Skip to content

Commit

Permalink
Add warning about sys_mbedtls_ctr_drbg_context_unlock
Browse files Browse the repository at this point in the history
Signed-off-by: Davide Bettio <davide@uninstall.it>
  • Loading branch information
bettio committed Dec 3, 2023
1 parent 5c5802d commit 255f18c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libAtomVM/sys_mbedtls.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ void sys_mbedtls_entropy_context_unlock(GlobalContext *global);
int sys_mbedtls_entropy_func(void *entropy, unsigned char *buf, size_t size);

mbedtls_ctr_drbg_context *sys_mbedtls_get_ctr_drbg_context_lock(GlobalContext *global);

/**
* @warning do not call this function when already owning the entropy context
*/
void sys_mbedtls_ctr_drbg_context_unlock(GlobalContext *global);

#endif

0 comments on commit 255f18c

Please sign in to comment.