alertWhy: unknown_ca for ASN_NO_SIGNER_E

This commit is contained in:
Takashi Kojo
2020-06-02 05:54:16 +09:00
parent 9c73a4bdbc
commit 5bcd121ab5

View File

@ -9870,6 +9870,8 @@ static void DoCertFatalAlert(WOLFSSL* ssl, int ret)
alertWhy = bad_certificate; alertWhy = bad_certificate;
if (ret == ASN_AFTER_DATE_E || ret == ASN_BEFORE_DATE_E) { if (ret == ASN_AFTER_DATE_E || ret == ASN_BEFORE_DATE_E) {
alertWhy = certificate_expired; alertWhy = certificate_expired;
} else if (ret == ASN_NO_SIGNER_E) {
alertWhy = unknown_ca;
} }
#if (defined(OPENSSL_ALL) || defined(WOLFSSL_APACHE_HTTPD)) #if (defined(OPENSSL_ALL) || defined(WOLFSSL_APACHE_HTTPD))
else if (ret == CRL_CERT_REVOKED) { else if (ret == CRL_CERT_REVOKED) {