Set X509_V_ERR_INVALID_EXTENSION error for invalid basic constraints
authorTomas Mraz <tmraz@fedoraproject.org>
Thu, 2 Apr 2020 15:31:21 +0000 (17:31 +0200)
committerTomas Mraz <tmraz@fedoraproject.org>
Mon, 6 Apr 2020 08:26:13 +0000 (10:26 +0200)
commitfa86e2ee3533bb7fa9f3c62c38920cf960e9fec0
tree7c296122ba9150bc189f1e0787f2ee616db87ede
parent428cf5ff83a48d0b51c97476586b2cbd053b6302
Set X509_V_ERR_INVALID_EXTENSION error for invalid basic constraints

If we encounter certificate with basic constraints CA:false,
pathlen present and X509_V_FLAG_X509_STRICT is set we set
X509_V_ERR_INVALID_EXTENSION error.

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11463)
crypto/x509/x509_vfy.c