Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get back detailed results on which signatures are present vs. not present, match vs mismatch #128

Open
dralley opened this issue Apr 18, 2023 · 0 comments

Comments

@dralley
Copy link
Collaborator

dralley commented Apr 18, 2023

The functions which verify digests and signatures ought to provide some way to inspect the results of the verification in a more detailed way.

e.g. something like

struct DigestReport {
     payloaddigest: DigestStatus,
     sha256header: DigestStatus,
     sha1header: DigestStatus,
     // etc.
}

enum DigestStatus {
    Success,
    NotPresent,
    Mismatch(String, String),
}

where the report can be easily collapsed into a single Result<...: RPMError> for success or failure

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

No branches or pull requests

1 participant