mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-08-15 19:11:25 +02:00
VerifyX509Acert parsed the acert and checked the signature but never validated the notBefore and notAfter dates, so wolfSSL_X509_ACERT_verify and wc_VerifyX509Acert accepted expired or not-yet-valid attribute certificates whenever the signature was good. Call CheckDate for both validity bounds before signature verification. CheckDate returns the proper date error and honors the runtime skip-date control. Also correct ParseX509Acert to report ASN_AFTER_DATE_E instead of ASN_BEFORE_DATE_E when the notAfter date check fails. Fixes F-6986.