Add error code for the private key read lockout.

This commit is contained in:
John Safranek 2021-10-12 15:59:17 -07:00 committed by Daniel Pouzzner
parent 31f13a7f41
commit f1d43f6891
2 changed files with 5 additions and 1 deletions

View File

@ -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";

View File

@ -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