wolfcrypt/src/error.c, wolfssl/wolfcrypt/error-crypt.h: add BUSY_E and ALREADY_E.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user