boringssl/crypto/x509v3
Adam Langley 8bd1d07535 Require basicConstraints cA flag in intermediate certs.
OpenSSL 1.0.2 (and thus BoringSSL) accepts keyUsage certSign or a
Netscape CA certificate-type in lieu of basicConstraints in an
intermediate certificate (unless X509_V_FLAG_X509_STRICT) is set.

Update-Note: This change tightens the code so that basicConstraints is required for intermediate certificates when verifying chains. This was previously only enabled if X509_V_FLAG_X509_STRICT was set, but that flag also has other effects.

Change-Id: I9e41f4c567084cf30ed08f015a744959982940af
Reviewed-on: https://boringssl-review.googlesource.com/30185
Reviewed-by: Matt Braithwaite <mab@google.com>
2018-08-01 19:10:19 +00:00
..
CMakeLists.txt Restore some revocation-related X.509 extensions. 2018-05-15 23:36:08 +00:00
ext_dat.h Restore some revocation-related X.509 extensions. 2018-05-15 23:36:08 +00:00
pcy_cache.c Avoid modifying stack in sk_find. 2018-04-12 21:02:12 +00:00
pcy_data.c
pcy_int.h
pcy_lib.c
pcy_map.c
pcy_node.c Avoid modifying stack in sk_find. 2018-04-12 21:02:12 +00:00
pcy_tree.c Avoid modifying stack in sk_find. 2018-04-12 21:02:12 +00:00
tab_test.cc
v3_akey.c
v3_akeya.c
v3_alt.c
v3_bcons.c
v3_bitst.c
v3_conf.c
v3_cpols.c Fix a crash in print_notice. 2017-03-21 14:50:26 +00:00
v3_crld.c
v3_enum.c
v3_extku.c
v3_genn.c Fix memory leak in GENERAL_NAME_set0_othername. 2017-10-30 18:40:17 +00:00
v3_ia5.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
v3_info.c
v3_int.c
v3_lib.c Avoid modifying stack in sk_find. 2018-04-12 21:02:12 +00:00
v3_ncons.c
v3_ocsp.c Restore some revocation-related X.509 extensions. 2018-05-15 23:36:08 +00:00
v3_pci.c
v3_pcia.c
v3_pcons.c OpenSSL reformat x509/, x509v3/, pem/ and asn1/. 2016-01-19 17:01:51 +00:00
v3_pku.c OpenSSL reformat x509/, x509v3/, pem/ and asn1/. 2016-01-19 17:01:51 +00:00
v3_pmaps.c
v3_prn.c
v3_purp.c Require basicConstraints cA flag in intermediate certs. 2018-08-01 19:10:19 +00:00
v3_skey.c
v3_sxnet.c
v3_utl.c Avoid modifying stack in sk_find. 2018-04-12 21:02:12 +00:00
v3name_test.cc