-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for PEM Parameters without ASN1 hooks (#1831)
This reverts part of commit 32fdc51. commit 32fdc51 removed the function pointers for `param_decode` and `param_encode` and removed `PEM_read_bio_Parameters` and `PEM_write_bio_Parameters` along with it (which was the only API consuming these hooks). This reverts part of the commit to add these back. I ultimately decided to leave the ASN1 logic in `PEM_read/write_bio_Parameters` which allows us to continue decoupling the pem logic from `EVP_PKEY`. These correspond to the historical `param_decode` and `param_encode` `EVP_PKEY_ASN1_METHOD` hooks in OpenSSL. ### Testing: 1. Round trip serde tests for each possible `EVP_PKEY` type 2. Sample test DH Parameter file from Ruby 3.1. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.
- Loading branch information
1 parent
3c22151
commit 95ec546
Showing
4 changed files
with
242 additions
and
0 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