Merge pull request #10363 from felixc-arm/error-codes-prereq

[1/3] Unify generic error codes (partial prerequisite)
This commit is contained in:
Gilles Peskine
2025-08-29 11:04:53 +00:00
committed by GitHub
10 changed files with 84 additions and 71 deletions
+7
View File
@@ -0,0 +1,7 @@
API changes
* Make the following error codes aliases of their PSA equivalents, where
xxx is a module, e.g. X509 or SSL.
MBEDTLS_ERR_xxx_BAD_INPUT_DATA -> PSA_ERROR_INVALID_ARGUMENT
MBEDTLS_ERR_xxx_ALLOC_FAILED -> PSA_ERROR_INSUFFICIENT_MEMORY
MBEDTLS_ERR_xxx_BUFFER_TOO_SMALL -> PSA_ERROR_BUFFER_TOO_SMALL
MBEDTLS_ERR_PKCS7_VERIFY_FAIL -> PSA_ERROR_INVALID_SIGNATURE