Skip to content

Commit

Permalink
Improve X509_PKEY management in OpenSSL
Browse files Browse the repository at this point in the history
Remove the free_pkey argument from php_openssl_pkey_from_zval,
instead return an EVP_PKEY that always needs to be freed
(by incrementing refcount if necessary).

This makes the code simpler and fixes a number of bugs in the
existing handling.

Closes GH-5946.
  • Loading branch information
nikic committed Aug 10, 2020
1 parent e81ad40 commit 80d3ce3
Showing 1 changed file with 83 additions and 129 deletions.

0 comments on commit 80d3ce3

Please sign in to comment.