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

x509-cert: make Name a new type over RdnSequence #1499

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

baloo
Copy link
Member

@baloo baloo commented Sep 5, 2024

This make FromStr documented way to build a name. This also exposes a set of getter methods to get elements from the name (CN, Org, ...).

see:

@baloo baloo force-pushed the baloo/x509-cert/name-newtype branch 5 times, most recently from 3a8da71 to d059733 Compare September 5, 2024 05:10
Copy link

@str4d str4d left a comment

Choose a reason for hiding this comment

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

I didn't review the changes to tests, as I'm on my phone.

x509-cert/src/name.rs Outdated Show resolved Hide resolved
x509-cert/src/name.rs Outdated Show resolved Hide resolved
x509-cert/src/name.rs Show resolved Hide resolved
x509-cert/src/name.rs Outdated Show resolved Hide resolved
x509-cert/src/name.rs Outdated Show resolved Hide resolved
x509-cert/src/name.rs Outdated Show resolved Hide resolved
x509-cert/src/name.rs Outdated Show resolved Hide resolved
@baloo baloo force-pushed the baloo/x509-cert/name-newtype branch 2 times, most recently from b168e0d to d9fbfc4 Compare September 5, 2024 23:07
@baloo baloo marked this pull request as draft September 5, 2024 23:10
@baloo baloo force-pushed the baloo/x509-cert/name-newtype branch 3 times, most recently from 94ddacf to 32615dd Compare September 6, 2024 05:52
@baloo baloo marked this pull request as ready for review September 6, 2024 05:52
@baloo
Copy link
Member Author

baloo commented Sep 6, 2024

I guess there would be value in a builder for name, but this PR is already large enough.

@baloo baloo force-pushed the baloo/x509-cert/name-newtype branch 2 times, most recently from cd16b39 to cb27b48 Compare September 6, 2024 16:06
@tarcieri
Copy link
Member

tarcieri commented Sep 8, 2024

@baloo some merge conflicts in the tests.

Edit: oof, a lot more now, sorry. I'm done for now.

This make `FromStr` documented way to build a name.
This also exposes a set of getter methods to get elements from the name
(CN, Org, ...).
@baloo baloo force-pushed the baloo/x509-cert/name-newtype branch from cb27b48 to 593176c Compare September 9, 2024 17:47
@tarcieri
Copy link
Member

Going to merge this both as an improvement and to avoid additional merge conflicts

@tarcieri tarcieri merged commit 6ed9934 into RustCrypto:master Sep 10, 2024
53 checks passed
@baloo baloo deleted the baloo/x509-cert/name-newtype branch September 10, 2024 02:02
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.

x509-cert: Make it easier to work with the contents of a Name
3 participants