wolfcrypt/src/error.c, wolfssl/wolfcrypt/error-crypt.h: add BUSY_E and ALREADY_E.

This commit is contained in:
Daniel Pouzzner
2026-01-06 00:55:29 -06:00
parent 6264c115cc
commit f1dd234ac9
2 changed files with 10 additions and 2 deletions

View File

@@ -659,6 +659,12 @@ const char* wc_GetErrorString(int error)
case MLKEM_PUB_HASH_E:
return "ML-KEM priv key's stored hash doesn't match encoded pub key";
case BUSY_E:
return "Object is busy";
case ALREADY_E:
return "Operation was redundant or preempted";
case MAX_CODE_E:
case WC_SPAN1_MIN_CODE_E:
case MIN_CODE_E:

View File

@@ -309,9 +309,11 @@ enum wolfCrypt_ErrorCodes {
INTERRUPTED_E = -1004, /* Process interrupted */
MLKEM_PUB_HASH_E = -1005, /* Encoded public key in decapsulation key does
* not match stored hash*/
BUSY_E = -1006, /* Object is busy */
ALREADY_E = -1007, /* Operation was redundant or preempted */
WC_SPAN2_LAST_E = -1005, /* Update to indicate last used error code */
WC_LAST_E = -1005, /* the last code used either here or in
WC_SPAN2_LAST_E = -1007, /* Update to indicate last used error code */
WC_LAST_E = -1007, /* the last code used either here or in
* error-ssl.h */
WC_SPAN2_MIN_CODE_E = -1999, /* Last usable code in span 2 */