New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove deprecated error codes #4283
Comments
In this task MBEDTLS_ERR_CIPHER_HW_ACCEL_FAILED has been deprecated but it's still used in active (?) code in a switch/case as a default: return value and some other places. What to use here instead? file cipher.c, from line 322:
same file, from line 1246:
The same question is with MBEDTLS_ERR_MD_HW_ACCEL_FAILED, MBEDTLS_ERR_PK_HW_ACCEL_FAILED, MBEDTLS_ERR_RSA_UNSUPPORTED_OPERATION (in test_suite_rsa.function). |
Use |
This issue has been fixed by #4339 so it can be closed now. |
Remove deprecated error codes, which can be found using `git grep -i 'MBEDTLS_ERR.*deprecated'.
Normally, those codes are already no longer used in the library, programs and test, and only their definition remains, which should be removed. However there are a few exceptions:
library/error.c
uses them but it's generated, so it just needs to be re-generated after updating the header fileslibrary/psa_crypto.c
uses them in a largeswitch
statement inmbedtls_to_psa_error()
: the correspondingcase
s need to be removedinclude/mbedtls/error.h
documents the ranges used by each module and might need to be updatedThe text was updated successfully, but these errors were encountered: