Skip to content

Add content type validation as specified in RFC 9052#292

Open
aahajj wants to merge 1 commit intolaurencelundblade:masterfrom
aahajj:fix/vaildate-content-type
Open

Add content type validation as specified in RFC 9052#292
aahajj wants to merge 1 commit intolaurencelundblade:masterfrom
aahajj:fix/vaildate-content-type

Conversation

@aahajj
Copy link

@aahajj aahajj commented May 30, 2025

Implemented validation for textual content type values to ensure they follow the <type-name>/<subtype-name> format as required by RFC 9052, Section 3.2.

Currently, setting a content type is allowed when signing a message. When encryption and the other functionalities are implemented/merged, setting a content type must be moved somewhere else, right?

I've put the validation in util just so that it can be used in the future when content type can be used across the library.

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.

1 participant