Skip to content

Commit

Permalink
Clarify comment regarding error mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
tobil4sk committed Nov 25, 2024
1 parent 2e7b9a2 commit e64ccee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/mbedtls/mbedtls_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e64ccee

Please sign in to comment.