[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>
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ void certstat ( struct x509_certificate *cert ) {
|
||||
printf ( " [PERMANENT]" );
|
||||
if ( cert->flags & X509_FL_EXPLICIT )
|
||||
printf ( " [EXPLICIT]" );
|
||||
if ( x509_is_valid ( cert ) )
|
||||
if ( x509_is_valid ( cert, NULL ) )
|
||||
printf ( " [VALIDATED]" );
|
||||
printf ( "\n" );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user