alter return value and add error string

This commit is contained in:
JacobBarthelmeh
2022-03-15 10:26:59 -07:00
parent d531e21f34
commit d0e83be596
2 changed files with 6 additions and 2 deletions

View File

@ -20627,6 +20627,10 @@ const char* wolfSSL_ERR_reason_error_string(unsigned long e)
return "HTTP Version error";
case HTTP_APPSTR_ERR:
return "HTTP Application string error";
#endif
#ifdef OPENSSL_EXTRA
case -X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY:
return "unable to get local issuer certificate";
#endif
case UNSUPPORTED_PROTO_VERSION:
#ifdef OPENSSL_ALL

View File

@ -59244,8 +59244,8 @@ static int GetX509Error(int e)
return X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD;
case ASN_AFTER_DATE_E:
return X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD;
case ASN_NO_SIGNER_E:
return X509_V_ERR_INVALID_CA;
case ASN_NO_SIGNER_E: /* get issuer error if no CA found locally */
return X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY;
case ASN_SELF_SIGNED_E:
return X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT;
case ASN_PATHLEN_INV_E: