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

Address further IP address support feedback #24

Closed
wants to merge 2 commits into from

Conversation

ereslibre
Copy link
Contributor

  • Rename name to subject_name
  • Remove EndEntityCert::verify_is_valid_for_dns_name

Addresses further feedback provided in #5

Use `EndEntityCert::verify_is_valid_for_subject_name` that accepts a
`SubjectNameRef` as the subject name to match the certificate against.
@ereslibre ereslibre mentioned this pull request Jan 6, 2023
3 tasks
@ereslibre ereslibre force-pushed the ip-address-support-feedback branch 2 times, most recently from 9eff60d to d7c9629 Compare January 6, 2023 15:29
src/subject_name/mod.rs Outdated Show resolved Hide resolved
@ereslibre ereslibre force-pushed the ip-address-support-feedback branch 2 times, most recently from 59c46b8 to 8afa5cc Compare January 6, 2023 17:06
src/subject_name/mod.rs Outdated Show resolved Hide resolved
src/subject_name/mod.rs Show resolved Hide resolved

mod verify;
pub(super) use verify::{check_name_constraints, verify_cert_dns_name, verify_cert_subject_name};
pub use verify::{check_name_constraints, verify_cert_subject_name};
Copy link
Member

Choose a reason for hiding this comment

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

But then this change doesn't make much sense? We don't want to make these free functions part of the public API, right, so they should have limited visibility? (Hopefully we can merge #22 soon.) If pub(super) is not enough they should probably become pub(crate).

Copy link
Contributor Author

@ereslibre ereslibre Jan 6, 2023

Choose a reason for hiding this comment

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

Thanks, updated. pub(super) did fit the bill.

@ctz
Copy link
Member

ctz commented Jan 9, 2023

Merged with a fixup (e69b9df)

@ctz ctz closed this Jan 9, 2023
@ereslibre ereslibre deleted the ip-address-support-feedback branch January 9, 2023 13:18
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