Skip to content

Commit

Permalink
Re-order arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
jasperpatterson authored and cpu committed May 16, 2024
1 parent c5dfa95 commit 3071d7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/verify_cert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl<'a, 'p: 'a> ChainOptions<'a, 'p> {
// TODO: check_distrust(trust_anchor_subject, trust_anchor_spki)?;

let node = path.node();
self.check_signed_chain(&node, trust_anchor, budget, time)?;
self.check_signed_chain(&node, time, trust_anchor, budget)?;
check_signed_chain_name_constraints(&node, trust_anchor, budget)?;

let verify = match verify_path {
Expand Down Expand Up @@ -137,9 +137,9 @@ impl<'a, 'p: 'a> ChainOptions<'a, 'p> {
fn check_signed_chain(
&self,
path: &PathNode<'_>,
time: UnixTime,
trust_anchor: &TrustAnchor,
budget: &mut Budget,
time: UnixTime,
) -> Result<(), ControlFlow<Error, Error>> {
let mut spki_value = untrusted::Input::from(trust_anchor.subject_public_key_info.as_ref());
let mut issuer_subject = untrusted::Input::from(trust_anchor.subject.as_ref());
Expand Down

0 comments on commit 3071d7b

Please sign in to comment.