1
0
mirror of https://github.com/CovidBraceletPrj/CovidBracelet.git synced 2024-10-15 02:19:20 +02:00

add mbedtls platform init call

This commit is contained in:
Patrick Rathje 2023-02-16 17:31:15 +01:00
parent b85ba1fefe
commit cac96d7990

View File

@ -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) {