aboutsummaryrefslogtreecommitdiffstats
path: root/src/net
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2024-02-15 12:43:51 +0000
committerMichael Brown <mcb30@ipxe.org>2024-02-15 12:45:58 +0000
commit943d75b557a8bf857d651e8116a7368b9d284e41 (patch)
tree36fae45ff882568d85857f5331eaae41e02267d3 /src/net
parent3e721e0c0836588b64deb6e1c1befd08f0f02e71 (diff)
downloadipxe-943d75b557a8bf857d651e8116a7368b9d284e41.tar.gz
[crypto] Add x509_is_self_signed() helper function
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net')
-rw-r--r--src/net/validator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/validator.c b/src/net/validator.c
index 693d4464b..333c60798 100644
--- a/src/net/validator.c
+++ b/src/net/validator.c
@@ -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;
}