check error strings and update comment

This commit is contained in:
Jacob Barthelmeh
2016-01-27 09:50:20 -07:00
parent 71fcc1e478
commit 18f1faa13d
2 changed files with 5 additions and 2 deletions

View File

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

View File

@ -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 !!!! */
};