Add error code for the private key read lockout.
This commit is contained in:
parent
31f13a7f41
commit
f1d43f6891
@ -551,6 +551,9 @@ const char* wc_GetErrorString(int error)
|
||||
case ECC_PCT_E:
|
||||
return "wolfcrypt ECDHE Pairwise Consistency Test Failure";
|
||||
|
||||
case FIPS_PRIVATE_KEY_LOCKED_E:
|
||||
return "Cannot export private key, locked";
|
||||
|
||||
default:
|
||||
return "unknown error number";
|
||||
|
||||
|
@ -245,8 +245,9 @@ enum {
|
||||
KDF_SSH_KAT_FIPS_E = -284, /* SSH KDF KAT failure */
|
||||
DHE_PCT_E = -285, /* DHE Pairwise Consistency Test failure */
|
||||
ECC_PCT_E = -286, /* ECDHE Pairwise Consistency Test failure */
|
||||
FIPS_PRIVATE_KEY_LOCKED_E = -287, /* Cannot export private key. */
|
||||
|
||||
WC_LAST_E = -286, /* Update this to indicate last error */
|
||||
WC_LAST_E = -287, /* Update this to indicate last error */
|
||||
MIN_CODE_E = -300 /* errors -101 - -299 */
|
||||
|
||||
/* add new companion error id strings for any new error codes
|
||||
|
Loading…
x
Reference in New Issue
Block a user