Commit a236e27
committed
x509_str: require CA:TRUE unconditionally in wolfSSL_X509_verify_cert
Drop the OPENSSL_ALL / WOLFSSL_QT preprocessor guard on the basicConstraints
cA check so non-CA issuers are rejected in every OpenSSL-compat build.
OPENSSL_EXTRA-only builds previously installed an attacker-supplied CA:FALSE
leaf as a temporary CA via X509StoreAddCa(..., WOLFSSL_TEMP_CA), bypassing
RFC 5280 4.2.1.9. The verify_cb override path stays gated on OPENSSL_ALL /
WOLFSSL_QT since that field only exists there. Continuation of the
CVE-2026-5501 fix.1 parent c098e53 commit a236e27
1 file changed
Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
| 708 | + | |
712 | 709 | | |
713 | | - | |
714 | 710 | | |
715 | 711 | | |
| 712 | + | |
716 | 713 | | |
717 | 714 | | |
718 | 715 | | |
719 | 716 | | |
720 | 717 | | |
721 | 718 | | |
722 | 719 | | |
723 | | - | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
724 | 723 | | |
725 | 724 | | |
726 | 725 | | |
727 | | - | |
728 | | - | |
729 | | - | |
| 726 | + | |
| 727 | + | |
730 | 728 | | |
731 | 729 | | |
732 | 730 | | |
| |||
0 commit comments