Skip to content

Stop implicitly tagging DistinguishedName #188

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

Merged

Conversation

Lukasa
Copy link
Contributor

@Lukasa Lukasa commented Aug 14, 2024

DistinguishedName was incorrectly marked DERImplicitlyTaggable, but it isn't. DistinguishedName is our name for Name, which is an untagged choice type. Untagged choice types can never be implicitly tagged.

Resolves #177

DistinguishedName was incorrectly marked DERImplicitlyTaggable,
but it isn't. DistinguishedName is our name for Name, which is
an untagged choice type. Untagged choice types can never be
implicitly tagged.
@Lukasa Lukasa added the 🆕 semver/minor Adds new public API. label Aug 14, 2024
@Lukasa Lukasa requested a review from dnadoba August 14, 2024 14:51
}
}

@available(*, deprecated, message: "Distinguished names may not be implicitly tagged")
Copy link
Member

Choose a reason for hiding this comment

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

Is this enough or do we also need to deprecate each symbol declared in the extension?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is enough.

@Lukasa Lukasa merged commit 387fb97 into apple:main Aug 15, 2024
5 of 6 checks passed
@Lukasa Lukasa deleted the cb-distinguished-name-isnt-implicitly-taggable branch August 15, 2024 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using GeneralName.directoryName results in a corrupt certificate
3 participants