Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions sdk/src/identity/identity_assertion/assertion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,25 @@ impl IdentityAssertion {
status_tracker: &mut StatusTracker,
verifier: &SV,
) -> Result<SV::Output, ValidationError<SV::Error>> {
// TO DO: Create new status tracker here and pass it through
// the rest of this code. Then we can rewrite the log with
// assertion label at the end of this process.
if let Some(ref label) = self.label {
status_tracker.push_current_uri(label);
}

let result = self.validate_imp(manifest, status_tracker, verifier).await;

if self.label.is_some() {
status_tracker.pop_current_uri();
}

result
}

// UPDATED TO DO: Hold off until Gavin lands the post-validate branch.
// Then we'll get the assertion label handed to us nicely.
async fn validate_imp<SV: SignatureVerifier>(
&self,
manifest: &Manifest,
status_tracker: &mut StatusTracker,
verifier: &SV,
) -> Result<SV::Output, ValidationError<SV::Error>> {
self.check_padding(status_tracker)?;

self.signer_payload
Expand Down
Loading