]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[x509] Record root of trust used when validating a certificate
authorMichael Brown <mcb30@ipxe.org>
Tue, 8 Dec 2020 14:58:46 +0000 (14:58 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 8 Dec 2020 15:04:28 +0000 (15:04 +0000)
commit39f5293492f351a274940d0ba2624ecb242b3c9b
treeead79747a5ab15d5db6dd4a236acdc9f224c7590
parent6e92d6213d20329d8b84431f00d8cbe7d63bb379
[x509] Record root of trust used when validating a certificate

Record the root of trust used at the point that a certificate is
validated, redefine validation as checking a certificate against a
specific root of trust, and pass an explicit root of trust when
creating a TLS connection.

This allows a custom TLS connection to be used with a custom root of
trust, without causing any validated certificates to be treated as
valid for normal purposes.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
13 files changed:
src/crypto/ocsp.c
src/crypto/x509.c
src/include/ipxe/tls.h
src/include/ipxe/validator.h
src/include/ipxe/x509.h
src/net/tcp/https.c
src/net/tcp/syslogs.c
src/net/tls.c
src/net/validator.c
src/tests/ocsp_test.c
src/tests/x509_test.c
src/usr/certmgmt.c
src/usr/imgtrust.c