mirror of
https://github.com/CovidBraceletPrj/CovidBracelet.git
synced 2024-12-05 00:55:43 +01:00
add mbedtls platform init call
This commit is contained in:
parent
b85ba1fefe
commit
cac96d7990
@ -18,6 +18,8 @@
|
||||
#include "tracing.h"
|
||||
#include "bloom.h"
|
||||
|
||||
#include "mbedtls/platform.h"
|
||||
|
||||
|
||||
/**
|
||||
* Fill the bloom filter with all stored records.
|
||||
@ -43,6 +45,13 @@ void main(void) {
|
||||
int err = 0;
|
||||
printk("Starting Contact-Tracing Wristband...\n");
|
||||
|
||||
int ret = 0;
|
||||
|
||||
if((ret = mbedtls_platform_setup(NULL)) != 0) {
|
||||
mbedtls_printf("Platform initialization failed with error %d\r\n", ret);
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Use custom randomization as the mbdet_tls context initialization messes with the Zeyhr BLE stack.
|
||||
err = en_init(sys_csrand_get);
|
||||
if (err) {
|
||||
|
Loading…
Reference in New Issue
Block a user