mirror of
https://github.com/openssl/openssl.git
synced 2026-05-07 20:12:39 +00:00
25c2f88caa
In ossl_x509v3_cache_extensions(), introduce EXFLAG_DUPLICATE flag to signal duplicate X.509 extensions. Add O(1) duplicate detection using a bitset with minimal stack memory footprint, in compliance with RFC 5280 Section 4.2. Fixes #26325 Co-authored-by: Tomáš Mráz <tm@t8m.info> Co-authored-by: David von Oheimb <DDvO@users.noreply.github.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Simo Sorce <simo@redhat.com> Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Neil Horman <nhorman@openssl.org> MergeDate: Tue Mar 17 13:43:13 2026 (Merged from https://github.com/openssl/openssl/pull/30233)