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

fixes surname handling for RDNSequence #46

Merged
merged 2 commits into from
Mar 1, 2022
Merged

Conversation

tofferoma
Copy link
Contributor

surname used incosistent casing (:surName vs :surname) which led to
an error when providing a string with "SN=Doe" to RDNSequence.new for example.

Changes

  • consistently use lowercase for the surname atom in RDNSequence.new_attr/1
  • adds testcase to validate that a RDN Sequence with a provided "SN"
    returns without error in RDNSequenceTest

surname used incosistent casing (:surName vs :surname) which led to
an error when providing a string with "SN=Doe" to RDNSequence.new for example.

Changes
- consistently use lowercase for the surname atom in RDNSequence.new_attr/1
- adds testcase to validate that a RDN Sequence with a provided "SN"
  returns without error in RDNSequenceTest
Copy link
Owner

@voltone voltone left a comment

Choose a reason for hiding this comment

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

Thanks! I would just make the test case a little more realistic

test/x509/rdn_sequence_test.exs Outdated Show resolved Hide resolved
uses more meaningful and instructive values

Co-authored-by: Bram Verburg <[email protected]>
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.

2 participants