From e64ccee068b81268542186e91a5bc8c35b2af719 Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Mon, 25 Nov 2024 01:51:34 +0000 Subject: [PATCH] Clarify comment regarding error mapping --- libs/mbedtls/mbedtls_stubs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/mbedtls/mbedtls_stubs.c b/libs/mbedtls/mbedtls_stubs.c index 9dc180f6167..56c8e7fe31a 100644 --- a/libs/mbedtls/mbedtls_stubs.c +++ b/libs/mbedtls/mbedtls_stubs.c @@ -335,7 +335,8 @@ static int verify_callback(void* param, mbedtls_x509_crt *crt, int depth, uint32 if(policy_status.dwError == 0) { *flags = 0; } else { - // TODO: properly map errors + // if we ever want to read the verification result, + // we need to properly map dwError to flags *flags |= MBEDTLS_X509_BADCERT_OTHER; } CertFreeCertificateChain(chain_context);