Skip to content

Commit

Permalink
try manual fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
justAnIdentity committed Nov 24, 2023
1 parent 6483415 commit 6029784
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/presentation/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,21 +418,21 @@ pub fn find_anchor(
Ok(root_cert) => root_cert.tbs_certificate.subject == leaf_issuer,
Err(_) => false,
}
},
}
TrustAnchor::Custom(certificate, _ruleset) => {
match x509_cert::Certificate::from_der(&certificate.bytes) {
Ok(root_cert) => root_cert.tbs_certificate.subject == leaf_issuer,
Err(_) => false,
}
},
}
TrustAnchor::Aamva(certificate) => {
match x509_cert::Certificate::from_der(&certificate.bytes) {
Ok(root_cert) => root_cert.tbs_certificate.subject == leaf_issuer,
Err(_) => false,
}
}
})
else {
})
else {
return Err(Error::MdocAuth(
"The certificate issuer does not match any known trusted issuer".to_string(),
));
Expand Down

0 comments on commit 6029784

Please sign in to comment.