summaryrefslogtreecommitdiff
path: root/ext/openssl
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Replace @param annotations with type declarations"Christoph M. Becker2020-02-172-4/+6
| | | | This reverts commit c31029f335ca1b453af799805c43c37e959ad555.
* Replace @param annotations with type declarationsChristoph M. Becker2020-02-162-6/+4
|
* Reindent phpt filesNikita Popov2020-02-0313-78/+78
|
* Merge branch 'PHP-7.4'Christoph M. Becker2020-01-212-2/+26
|\ | | | | | | | | * PHP-7.4: Fix #79145: openssl memory leak
| * Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-01-212-2/+26
| |\ | | | | | | | | | | | | * PHP-7.3: Fix #79145: openssl memory leak
| | * Fix #79145: openssl memory leakChristoph M. Becker2020-01-212-2/+26
| | | | | | | | | | | | | | | | | | We must increase the refcount of `return_value` only if `cert` is a resource; this is already done in `php_openssl_evp_from_zval()`, though.
* | | Fix #78880 Another roundMáté Kocsis2020-01-191-1/+1
| | |
* | | Make error messages more consistent by fixing capitalizationMáté Kocsis2020-01-1731-140/+140
| | | | | | | | | | | | Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.
* | | Fix #78880: Final spelling fixesMáté Kocsis2020-01-161-1/+1
| | |
* | | Fix #78880: Yet another batch of spelling errorsMáté Kocsis2020-01-161-1/+1
| | |
* | | Use RETURN_THROWS() after zend_fetch_resource*()Máté Kocsis2020-01-031-4/+4
| | |
* | | Use RETURN_THROWS() during ZPP in most of the extensionsMáté Kocsis2019-12-311-60/+65
| | | | | | | | | | | | Except for some bigger ones: reflection, sodium, spl
* | | Add union return types for function stubsMáté Kocsis2019-11-112-76/+50
| | |
* | | Clean DONE tags from testsFabien Villepinte2019-11-078-16/+0
| | | | | | | | | | | | | | | | | | | | | Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
* | | Merge branch 'PHP-7.4'Nikita Popov2019-11-051-0/+2
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fixed bug #78775
| * | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-11-051-0/+2
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fixed bug #78775
| | * Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-11-051-0/+2
| | |\ | | | | | | | | | | | | | | | | * PHP-7.2: Fixed bug #78775
| | | * Fixed bug #78775Nikita Popov2019-11-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Clear the OpenSSL error queue before performing SSL stream operations. As we don't control all code that could possibly be using OpenSSL, we can't rely on the error queue being empty.
* | | | Accept int parameter in the first placeChristoph M. Becker2019-11-011-10/+1
| | | | | | | | | | | | | | | | | | | | | | | | This is more liberal then before, where that parameter (if given) had to be IS_LONG, while now it would be converted to int according to weak typing rules. This is, however, more what a developer would expect.
* | | | Add missing ZPP checksMáté Kocsis2019-11-011-0/+4
| | | | | | | | | | | | | | | | Closes GH-4878.
* | | | Finish OpenSSL arginfo stubsChristoph M. Becker2019-11-013-178/+261
| | | |
* | | | Cleanup return values when parameter parsing is unsuccessfulMáté Kocsis2019-10-301-1/+1
| | | |
* | | | Add more openssl stubsRimvydas Zilinskas2019-10-303-121/+195
| | | | | | | | | | | | | | | | Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
* | | | Add missing zend_parse_parameters_none() checksGabriel Caruso2019-10-081-0/+4
| | | | | | | | | | | | | | | | Closes GH-4796.
* | | | Merge branch 'PHP-7.4'Christoph M. Becker2019-10-011-3/+3
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Update regarding changed OpenSSL default config path
| * | | Update regarding changed OpenSSL default config pathChristoph M. Becker2019-10-011-3/+3
| | | |
* | | | Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-253-6/+0
| | | | | | | | | | | | | | | | Closes GH-4732.
* | | | Merge branch 'PHP-7.4'Christoph M. Becker2019-09-041-0/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Add missing SKIPIF (openssl)
| * | | Add missing SKIPIF (openssl)Fabien Villepinte2019-09-041-0/+2
| | | | | | | | | | | | | | | | Co-Authored-By: Gabriel Caruso <carusogabriel34@gmail.com>
| * | | Fixed bug #78391Nikita Popov2019-08-092-1/+14
| | | |
* | | | Add partial openssl stubsRimvydas Zilinskas2019-08-103-48/+74
| | | | | | | | | | | | | | | | Closes GH-4509.
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-08-092-1/+14
|\ \ \ \
| * | | | Fixed bug #78391Nikita Popov2019-08-092-1/+14
| |/ / /
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-07-241-21/+2
|\ \ \ \ | |/ / /
| * | | Remove php_openssl_cipher_get_version()Nikita Popov2019-07-241-21/+2
| | | | | | | | | | | | | | | | | | | | | | | | This was added in 7.1 when add_assoc_string mistakenly accepted a char* rather than const char* parameter and is no longer needed. We can use SSL_CIPHER_get_version() directly.
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-07-221-4/+4
|\ \ \ \ | |/ / /
| * | | Report errors from stream read and write operationsNikita Popov2019-07-221-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The php_stream_read() and php_stream_write() functions now return an ssize_t value, with negative results indicating failure. Functions like fread() and fwrite() will return false in that case. As a special case, EWOULDBLOCK and EAGAIN on non-blocking streams should not be regarded as error conditions, and be reported as successful zero-length reads/writes instead. The handling of EINTR remains unclear and is internally inconsistent (e.g. some code-paths will automatically retry on EINTR, while some won't). I'm landing this now to make sure the stream wrapper ops API changes make it into 7.4 -- however, if the user-facing changes turn out to be problematic we have the option of clamping negative returns to zero in php_stream_read() and php_stream_write() to restore the old behavior in a relatively non-intrusive manner.
* | | | Merge branch 'PHP-7.4'Peter Kokot2019-07-221-10/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | * PHP-7.4: Fix internals upgrading log Remove HAVE_DSA_DEFAULT_METHOD
| * | | Remove HAVE_DSA_DEFAULT_METHODPeter Kokot2019-07-221-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | Last usage removed via 6a813634052710f3f4bf6e2e03ca1b6c7be3bcee. Closes GH-4455
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-07-031-1/+2
|\ \ \ \ | |/ / /
| * | | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-07-031-1/+2
| |\ \ \ | | |/ /
| | * | Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-07-031-1/+2
| | |\ \ | | | |/
| | | * Fixed bug #78231Nikita Popov2019-07-031-1/+2
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-06-212-13/+34
|\ \ \ \ | |/ / /
| * | | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-06-212-13/+34
| |\ \ \ | | |/ /
| | * | Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-06-212-13/+34
| | |\ \ | | | |/
| | | * Fix PKCS12 leak in opensslNikita Popov2019-06-211-2/+3
| | | |
| | | * Fix d leak in ecc openssl_pkey_newNikita Popov2019-06-211-1/+6
| | | |
| | | * Fix netscape spki leak in opensslNikita Popov2019-06-211-0/+3
| | | |
| | | * Fix X509 leak in openssl_pkcs7_verify()Nikita Popov2019-06-211-1/+1
| | | |