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

crl: remove exports of untrusted::Input. #83

Merged
merged 1 commit into from
Jun 15, 2023
Merged

crl: remove exports of untrusted::Input. #83

merged 1 commit into from
Jun 15, 2023

Conversation

cpu
Copy link
Member

@cpu cpu commented Jun 14, 2023

We don't want to add untrusted to webpki's public API, but several fields of the CertificateRevocationList type did this accidentally when it was added in #44.

This branch makes the untrusted::Input fields crate-private and adds public methods that can return &[u8] versions of these fields for external usage.

Along the way I also deleted the CertificateRevocationLists type - we didn't export that from lib.rs. I added this type before landing on the CrlProvider trait implemented in a separate branch. With that approach there's no need for a list-of-CRLs type. This also side-steps concerns about the best data structure to use: each CrlProvider implementation can choose their own approach.

We don't want to add `untrusted` to webpki's public API, but several
fields of the `CertificateRevocationList` type did this accidentally.

This commit makes the `untrusted::Input` fields crate-private and adds
public methods that can return `&[u8]` versions of these fields for
external usage.

Along the way I also deleted the `CertificateRevocationLists` type - we
didn't export that from `lib.rs`. I added this type before landing on
the `CrlProvider` trait implemented in a separate branch. With that
approach there's no need for a list-of-CRLs type.
@cpu cpu self-assigned this Jun 14, 2023
@cpu cpu mentioned this pull request Jun 14, 2023
@codecov
Copy link

codecov bot commented Jun 14, 2023

Codecov Report

Merging #83 (3b20d8b) into main (7b74dfa) will decrease coverage by 0.10%.
The diff coverage is 57.14%.

@@            Coverage Diff             @@
##             main      #83      +/-   ##
==========================================
- Coverage   95.68%   95.59%   -0.10%     
==========================================
  Files          15       15              
  Lines        2900     2907       +7     
==========================================
+ Hits         2775     2779       +4     
- Misses        125      128       +3     
Impacted Files Coverage Δ
src/crl.rs 98.20% <57.14%> (-1.34%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@cpu cpu merged commit fab5190 into rustls:main Jun 15, 2023
@cpu cpu deleted the cpu-dont-leak-untrusted branch June 15, 2023 12:22
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.

3 participants