-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Error codes in 4.0 #9619
Error codes in 4.0 #9619
Comments
After some discussion with @mpg (but written in my own words here and with a bit of further analysis), it appears that a useful milestone is to unify the error code space, so this is what I am defining as the goal of this issue. Fully unifying the error codes is out of scope and can be discussed further in #8501. By unifying the error code space, I mean that any code that expects a PSA error code can now receive and propagate an mbedtls error code, and vice versa. Already, in Mbed TLS 3.x, this was partly the case, in that:
What was missing from the unification is that some code specifically expects a low-level error code, which must be a specific kind of mbedtls error code, not an arbitrary error code. This affects two places in the code:
So the goal here is to get rid of error code additions, and remove the now-obsolete bits of The following are out of scope:
|
We won't have the capacity to unify error codes in 4.0, but we would like to do the low cost high benefit actions here. The goal of this task is to get the low hanging fruits of error code unification (see #8501)
The text was updated successfully, but these errors were encountered: