-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix various issues around X509_STORE_CTX reuse (#1272)
* Don't try to access X509_STORE_CTX after _cleanup Although OpenSSL happens to leave the errors in there on X509_STORE_CTX_cleanup, in no other OpenSSL API is accessing a cleaned up object meaningful. Do it in the other order. * Internal variables are internal The underscore-prefixed variables were not intended to be exposed as public API, so don't bother exposing it in the first place. * Don't reuse X509_STORE_CTXs There's a lot of history with X509_STORE_CTX's somewhat messy transition from a stack-allocated type to a heap-allocated type. (This is why a double X509_STORE_CTX_init used to leak memory.) We can avoid all this mess by just making a new X509_STORE_CTX each time.
- Loading branch information
Showing
1 changed file
with
33 additions
and
62 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