mirror of
https://github.com/ipxe/ipxe
synced 2026-01-25 07:31:04 +03:00
[crypto] Add x509_is_self_signed() helper function
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -1102,6 +1102,10 @@ static void x509_test_exec ( void ) {
|
||||
x509_validate_chain_fail_ok ( &server_chain, test_time,
|
||||
&empty_store, &test_root );
|
||||
|
||||
/* Check self-signedess */
|
||||
ok ( x509_is_self_signed ( root_crt.cert ) );
|
||||
ok ( ! x509_is_self_signed ( intermediate_crt.cert ) );
|
||||
|
||||
/* Sanity check */
|
||||
assert ( list_empty ( &empty_store.links ) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user