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

Move verification of downloaded target into new public verify() method #143

Merged
merged 1 commit into from
Apr 6, 2021

Conversation

phenaproxima
Copy link
Contributor

Per Seldaek's feedback in composer/composer#9740, it would simplify our integration with Composer if it were possible to verify a downloaded file or string against TUF without relying on TUF to do the downloading too. To that end, let's expose a new verify() method which takes a data stream and validates it against a specific known target.

@phenaproxima phenaproxima requested a review from tedbow April 6, 2021 18:28
Copy link
Contributor

@tedbow tedbow left a comment

Choose a reason for hiding this comment

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

Nice change!

@phenaproxima phenaproxima merged commit 93da955 into php-tuf:main Apr 6, 2021
@phenaproxima phenaproxima deleted the verify-method branch April 6, 2021 19:37
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.

None yet

2 participants