forked from wolfSSL/wolfssl
Merge pull request #274 from JacobBarthelmeh/master
Updated comments for adding new error id strings and added missing UNKNOWN_MAX_FRAG_LEN_E.
This commit is contained in:
@ -9366,6 +9366,9 @@ const char* wolfSSL_ERR_reason_error_string(unsigned long e)
|
||||
case UNKNOWN_SNI_HOST_NAME_E:
|
||||
return "Unrecognized host name Error";
|
||||
|
||||
case UNKNOWN_MAX_FRAG_LEN_E:
|
||||
return "Unrecognized max frag len Error";
|
||||
|
||||
case KEYUSE_SIGNATURE_E:
|
||||
return "Key Use digitalSignature not set Error";
|
||||
|
||||
|
@ -142,13 +142,13 @@ enum wolfSSL_ErrorCodes {
|
||||
BAD_CERTIFICATE_STATUS_ERROR = -406, /* Bad certificate status message */
|
||||
OCSP_INVALID_STATUS = -407, /* Invalid OCSP Status */
|
||||
|
||||
/* add strings to SetErrorString !!!!! */
|
||||
/* add strings to wolfSSL_ERR_reason_error_string in internal.c !!!!! */
|
||||
|
||||
/* begin negotiation parameter errors */
|
||||
UNSUPPORTED_SUITE = -500, /* unsupported cipher suite */
|
||||
MATCH_SUITE_ERROR = -501 /* can't match cipher suite */
|
||||
/* end negotiation parameter errors only 10 for now */
|
||||
/* add strings to SetErrorString !!!!! */
|
||||
/* add strings to wolfSSL_ERR_reason_error_string in internal.c !!!!! */
|
||||
|
||||
/* no error stings go down here, add above negotiation errors !!!! */
|
||||
};
|
||||
|
@ -34,7 +34,7 @@
|
||||
#endif
|
||||
|
||||
|
||||
/* error codes */
|
||||
/* error codes, add string for new errors !!! */
|
||||
enum {
|
||||
MAX_CODE_E = -100, /* errors -101 - -299 */
|
||||
OPEN_RAN_E = -101, /* opening random device error */
|
||||
@ -166,6 +166,9 @@ enum {
|
||||
BAD_COND_E = -230, /* Bad condition variable operation */
|
||||
|
||||
MIN_CODE_E = -300 /* errors -101 - -299 */
|
||||
|
||||
/* add new companion error id strings for any new error codes
|
||||
wolfcrypt/src/error.c !!! */
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user