add second wolfCrypt error code span, and add DEADLOCK_AVERTED_E.

This commit is contained in:
Daniel Pouzzner
2024-11-13 13:01:00 -06:00
parent 524f0f5799
commit 0ebd86d668
8 changed files with 81 additions and 31 deletions

View File

@@ -642,11 +642,14 @@ const char* wc_GetErrorString(int error)
case PBKDF2_KAT_FIPS_E:
return "wolfCrypt FIPS PBKDF2 Known Answer Test Failure";
case DEADLOCK_AVERTED_E:
return "Deadlock averted -- retry the call";
case MAX_CODE_E:
case WC_SPAN1_MIN_CODE_E:
case MIN_CODE_E:
default:
return "unknown error number";
}
}
@@ -660,4 +663,3 @@ void wc_ErrorString(int error, char* buffer)
buffer[WOLFSSL_MAX_ERROR_SZ-1] = 0;
}
#endif /* !NO_ERROR_STRINGS */