-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change x5c type to (NonEmpty X509.SignedCertificate)
There is no real reason to keep the newtype within the JWSHeader and JWK data types themselves - it is only needed for parsing/printing and is extraneous w.r.t. the data type definition. Update the data declarations and perform necessary changes to the FromJSON/ToJSON instances. Add 'instance Functor (HeaderParam p)' to support this change. This change also uncovered a bug in JWSHeader parsing where the X509-related fields were read from the wrong keys, which was fixed in this commit.
- Loading branch information
1 parent
36fb501
commit 32c3efd
Showing
5 changed files
with
17 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters