Symbian platform (C++)
SDK native APIs, runtime and tooling
Loading...
Searching...
No Matches
config.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2#ifndef SYMBIAN_MBEDTLS_CONFIG_H_
3#define SYMBIAN_MBEDTLS_CONFIG_H_
4
5#define MBEDTLS_SSL_SRV_C
6
7// Single event-thread ownership until the SDK concurrency backend is verified.
8#undef MBEDTLS_THREADING_C
9#undef MBEDTLS_THREADING_PTHREAD
10#undef MBEDTLS_THREADING_IMPL
11#undef MBEDTLS_NET_C
12#undef MBEDTLS_TIMING_C
13#undef MBEDTLS_FS_IO
14#undef MBEDTLS_SELF_TEST
15// Do not inherit the port's ordinary memset-based secret erasure.
16#define MBEDTLS_PLATFORM_ZEROIZE_ALT
17
18#ifdef SYMBIAN_MBEDTLS_GUEST
19// These are required services, not successful no-op implementations. The final
20// app link fails until it provides a trusted entropy source and UTC conversion.
22#define MBEDTLS_PLATFORM_MEMORY
23#define MBEDTLS_PLATFORM_CALLOC_MACRO symbian_mbedtls_calloc
24#define MBEDTLS_PLATFORM_FREE_MACRO symbian_mbedtls_free
25#define MBEDTLS_PLATFORM_GMTIME_R_ALT
26#define MBEDTLS_PLATFORM_TIME_MACRO symbian_mbedtls_time
27#define MBEDTLS_NO_PLATFORM_ENTROPY
28#define MBEDTLS_ENTROPY_HARDWARE_ALT
29#else
30#define MBEDTLS_DEBUG_C
31// Native verification uses the host entropy source, not library/symbian.c.
32#undef MBEDTLS_ENTROPY_HARDWARE_ALT
33#endif
34
35#endif // SYMBIAN_MBEDTLS_CONFIG_H_