Skip to content

Conversation

@Koenvh1
Copy link
Contributor

@Koenvh1 Koenvh1 commented Oct 31, 2025

No description provided.

now: Time
) -> Result<(ResourceCert, ResourceSignedChecklist), ValidationError> {
let cert = self.signed.validate_at(cert, strict, now)?;
Ok((cert, self.content))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should also check that the resources in the RSC content are covered by the EE certificate’s resources and that the EE certificate is has not been revoked by asking for the CRL.

For ROAs, this method seems to be called process rather than validate. Maybe we should do the same here for consistency.


//--- Deref and AsRef

impl ops::Deref for Rsc {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The recommendation is to not impl Deref for these kinds of types – the deref impls we have on similar types should all go. ’twas my mistake …


digest_algorithm: DigestAlgorithm,

check_list: Captured,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Longer term we are planning to move away from using Captured and instead have the actual decoded content here – i.e., a Vec<FileNameAndHash> (which then should move away from using Bytes). Maybe move this one to that already?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants