mirror of
https://github.com/ipxe/ipxe
synced 2026-04-04 03:00:20 +03:00
[crypto] Add x509_is_self_signed() helper function
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -595,7 +595,7 @@ static void validator_step ( struct validator *validator ) {
|
||||
* nothing more to do.
|
||||
*/
|
||||
last = x509_last ( validator->chain );
|
||||
if ( asn1_compare ( &last->issuer.raw, &last->subject.raw ) == 0 ) {
|
||||
if ( x509_is_self_signed ( last ) ) {
|
||||
validator_finished ( validator, rc );
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user