/** * Copyright (c) 2026 Dominic Masters * * This software is released under the MIT License. * https://opensource.org/licenses/MIT */ /** * Wii/Dolphin overrides for mbedtls 4.x. * Used as both MBEDTLS_USER_CONFIG_FILE and TF_PSA_CRYPTO_USER_CONFIG_FILE, * so intentionally has no include guard (operations are idempotent). */ /* Disable the mbedtls TCP/socket layer — Wii has no Unix/Windows sockets. * We provide our own socket implementation via networksocket.c. */ #undef MBEDTLS_NET_C /* Disable built-in Unix/Windows entropy; use driver-provided entropy instead. * We implement mbedtls_platform_get_entropy() in networktls.c. */ #undef MBEDTLS_PSA_BUILTIN_GET_ENTROPY #define MBEDTLS_PSA_DRIVER_GET_ENTROPY /* Disable the built-in ms_time; we implement mbedtls_ms_time() via OGC * timer (gettime / ticks_to_millisecs) in networktls.c. */ #define MBEDTLS_PLATFORM_MS_TIME_ALT