mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 12:44:45 +02:00
add missing error strings
This commit is contained in:
@@ -2357,7 +2357,7 @@ int wolfSSL_Init(void)
|
|||||||
|
|
||||||
/* Initialize crypto for use with TLS connection */
|
/* Initialize crypto for use with TLS connection */
|
||||||
if (wolfcrypt_Init() != 0)
|
if (wolfcrypt_Init() != 0)
|
||||||
ret = WC_FAILURE_E;
|
ret = WC_INIT_E;
|
||||||
|
|
||||||
initRefCount++;
|
initRefCount++;
|
||||||
UnLockMutex(&count_mutex);
|
UnLockMutex(&count_mutex);
|
||||||
|
@@ -337,6 +337,30 @@ const char* wc_GetErrorString(int error)
|
|||||||
case SRP_BAD_KEY_E:
|
case SRP_BAD_KEY_E:
|
||||||
return "SRP bad key values error";
|
return "SRP bad key values error";
|
||||||
|
|
||||||
|
case ASN_NO_SKID:
|
||||||
|
return "ASN no Subject Key Identifier found error";
|
||||||
|
|
||||||
|
case ASN_NO_AKID:
|
||||||
|
return "ASN no Authority Key Identifier found error";
|
||||||
|
|
||||||
|
case ASN_NO_KEYUSAGE:
|
||||||
|
return "ASN no Key Usage found error";
|
||||||
|
|
||||||
|
case SKID_E:
|
||||||
|
return "Setting Subject Key Identifier error";
|
||||||
|
|
||||||
|
case AKID_E:
|
||||||
|
return "Setting Authority Key Identifier error";
|
||||||
|
|
||||||
|
case KEYUSAGE_E:
|
||||||
|
return "Bad Key Usage value error";
|
||||||
|
|
||||||
|
case CERTPOLICIES_E:
|
||||||
|
return "Setting Certificate Policies error";
|
||||||
|
|
||||||
|
case WC_INIT_E:
|
||||||
|
return "wolfCrypt Initialize Failure error";
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return "unknown error number";
|
return "unknown error number";
|
||||||
|
|
||||||
|
@@ -161,7 +161,7 @@ enum {
|
|||||||
KEYUSAGE_E = -226, /* Bad Key Usage value */
|
KEYUSAGE_E = -226, /* Bad Key Usage value */
|
||||||
CERTPOLICIES_E = -227, /* setting Certificate Policies error */
|
CERTPOLICIES_E = -227, /* setting Certificate Policies error */
|
||||||
|
|
||||||
WC_FAILURE_E = -228, /* wolfcrypt failed to initialize */
|
WC_INIT_E = -228, /* wolfcrypt failed to initialize */
|
||||||
|
|
||||||
MIN_CODE_E = -300 /* errors -101 - -299 */
|
MIN_CODE_E = -300 /* errors -101 - -299 */
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user