Compat self-signed trust with reject-only aux data
authorViktor Dukhovni <openssl-users@dukhovni.org>
Fri, 29 Jan 2016 07:28:43 +0000 (02:28 -0500)
committerViktor Dukhovni <openssl-users@dukhovni.org>
Mon, 1 Feb 2016 02:24:12 +0000 (21:24 -0500)
commit33cc5dde478ba5ad79f8fd4acd8737f0e60e236e
tree9c1ab89462ef00d5700c3712737a6ae960c2e604
parent0daccd4dc1f1ac62181738a91714f35472e50f3c
Compat self-signed trust with reject-only aux data

When auxiliary data contains only reject entries, continue to trust
self-signed objects just as when no auxiliary data is present.

This makes it possible to reject specific uses without changing
what's accepted (and thus overring the underlying EKU).

Added new supported certs and doubled test count from 38 to 76.

Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
38 files changed:
crypto/x509/x509_trs.c
crypto/x509/x509_vfy.c
include/openssl/x509.h
test/certs/ca+anyEKU.pem [new file with mode: 0644]
test/certs/ca-anyEKU.pem [new file with mode: 0644]
test/certs/ca-clientAuth.pem [new file with mode: 0644]
test/certs/cca+anyEKU.pem [new file with mode: 0644]
test/certs/cca+clientAuth.pem [new file with mode: 0644]
test/certs/cca+serverAuth.pem [new file with mode: 0644]
test/certs/cca-anyEKU.pem [new file with mode: 0644]
test/certs/cca-cert.pem [new file with mode: 0644]
test/certs/cca-clientAuth.pem [new file with mode: 0644]
test/certs/cca-serverAuth.pem [new file with mode: 0644]
test/certs/croot+anyEKU.pem [new file with mode: 0644]
test/certs/croot+clientAuth.pem [new file with mode: 0644]
test/certs/croot+serverAuth.pem [new file with mode: 0644]
test/certs/croot-anyEKU.pem [new file with mode: 0644]
test/certs/croot-cert.pem [new file with mode: 0644]
test/certs/croot-clientAuth.pem [new file with mode: 0644]
test/certs/croot-serverAuth.pem [new file with mode: 0644]
test/certs/mkcert.sh
test/certs/root-clientAuth.pem [new file with mode: 0644]
test/certs/sca+anyEKU.pem [new file with mode: 0644]
test/certs/sca+clientAuth.pem [new file with mode: 0644]
test/certs/sca+serverAuth.pem [new file with mode: 0644]
test/certs/sca-anyEKU.pem [new file with mode: 0644]
test/certs/sca-cert.pem [new file with mode: 0644]
test/certs/sca-clientAuth.pem [new file with mode: 0644]
test/certs/sca-serverAuth.pem [new file with mode: 0644]
test/certs/setup.sh
test/certs/sroot+anyEKU.pem [new file with mode: 0644]
test/certs/sroot+clientAuth.pem [new file with mode: 0644]
test/certs/sroot+serverAuth.pem [new file with mode: 0644]
test/certs/sroot-anyEKU.pem [new file with mode: 0644]
test/certs/sroot-cert.pem [new file with mode: 0644]
test/certs/sroot-clientAuth.pem [new file with mode: 0644]
test/certs/sroot-serverAuth.pem [new file with mode: 0644]
test/recipes/25-test_verify.t