Skip to content
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

Simplify error.c without error addition #9927

Open
gilles-peskine-arm opened this issue Jan 24, 2025 · 0 comments
Open

Simplify error.c without error addition #9927

gilles-peskine-arm opened this issue Jan 24, 2025 · 0 comments
Labels
enhancement size-s Estimated task size: small (~2d)

Comments

@gilles-peskine-arm
Copy link
Contributor

Since #9926, error codes can no longer be the sum of a low-level code and a high-level code. They're all MBEDTLS_ERR_xxx constants (or PSA_ERROR_xxx, but that's a separate issue).

The goal of this issue is to simplify error.c (technically error.fmt) and generate_errors.pl accordingly. The current code still copes with values that are the sum of a low-level code and a high-level code, but this is no longer meaningful. We just have one set of numerical constants to translate to string constants.

We may or may not want to handle PSA_ERROR_xxx values at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement size-s Estimated task size: small (~2d)
Projects
Status: No status
Development

No branches or pull requests

1 participant