-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix i2d behavior for i2d_SSL_SESSION (#1966)
`i2d_SSL_SESSION` wasn't exactly following the correct behavior of the legacy `i2d` functions when `pp` is non-NULL, but `*pp` is NULL. This caused issues with functions expecting a newly allocated buffer when calling `i2d_SSL_SESSION` with the recommended documented behavior. See `i2d_SAMPLE` for more details. ### Testing: New test below usage of `i2d_SSL_SESSION` to verify the behavior. 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
a11d73c
commit df6b7cd
Showing
3 changed files
with
18 additions
and
12 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