Skip to content
Closed
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
7 changes: 7 additions & 0 deletions crates/mtc_api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,13 @@ pub fn validate_correspondence(
"entry and bootstrap versions must be v3".into(),
));
}

if log_entry.issuer != bootstrap.issuer {
return Err(MtcError::Dynamic(
"entry issuer must match bootstrap issuer".into(),
));
}

// Make sure the validity is contained within the validity of every cert in
// the chain.
for cert in core::iter::once(&leaf).chain(chain_certs) {
Expand Down
Loading