summaryrefslogtreecommitdiff
path: root/ext/openssl/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Downgrade security level in tests using TLS < 1.2Nikita Popov2020-06-185-5/+15
| | | | | | | | | | | | | | | | | | | | A few additional tests have been added on master that require lower security level.
* | | | Merge branch 'PHP-7.4'Nikita Popov2020-06-187-122/+52
|\ \ \ \ | |/ / /
| * | | Generate certificates for bug69215.phptNikita Popov2020-06-184-86/+22
| | | |
| * | | Generate certificate for bug68920.phptNikita Popov2020-06-181-1/+12
| | | | | | | | | | | | | | | | | | | | The certificate really doesn't matter here, but it still needs to comply with security level...
| * | | Generate certificate for bug65729.pemNikita Popov2020-06-182-35/+18
| | | | | | | | | | | | | | | | Make this test pass under security level 2.
* | | | Merge branch 'PHP-7.4'Nikita Popov2020-06-183-36/+18
|\ \ \ \ | |/ / /
| * | | Revert "Fix tests regarding OpenSSL security_level"Nikita Popov2020-06-183-36/+18
| | | | | | | | | | | | | | | | This reverts commit b281493503401a2b5c45c11fcd0498d8448998c2.
* | | | Merge branch 'PHP-7.4'Christoph M. Becker2020-06-183-18/+36
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Fix tests regarding OpenSSL security_level
| * | | Fix tests regarding OpenSSL security_levelChristoph M. Becker2020-06-183-18/+36
| | | | | | | | | | | | | | | | | | | | | | | | The `security_level` stream option is only available as of OpenSSL 1.1.0, so we only set it for these versions. Older OpenSSL versions do not have security levels at all.
* | | | Merge branch 'PHP-7.4'Nikita Popov2020-06-189-41/+106
|\ \ \ \ | |/ / /
| * | | Migrate some tests to certificate generatorNikita Popov2020-06-189-41/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This migrates all the tests using ext/openssl/tests/streams_crypto_method.pem to the certificate generator, so we can easily adjust needed parameters. In particular, this makes the cert security level 2 compatible. However, we still need to downgrade security_level to 1 in a number of tests, because they are testing TLS < 1.2 connections.
* | | | Merge branch 'PHP-7.4'Nikita Popov2020-06-171-1/+2
|\ \ \ \ | |/ / /
| * | | Use sha256 as digest algorithm in certificate generatorNikita Popov2020-06-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes the generated certificates compatible with security level 2, which is apparently the default on Ubuntu 20.04. Unfortunately this does not fix all tests, because some are using pre-generated certificates.
* | | | Merge branch 'PHP-7.4'Christoph M. Becker2020-06-091-0/+15
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Fix #62890: default_socket_timeout=-1 causes connection to timeout
| * | | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-06-091-0/+15
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.3: Fix #62890: default_socket_timeout=-1 causes connection to timeout
| | * | Fix #62890: default_socket_timeout=-1 causes connection to timeoutChristoph M. Becker2020-06-091-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | While unencrypted connections ignore negative timeouts, SSL/TLS connections did not special case that, and so always failed due to timeout.
* | | | Add support for Cryptographic Message Syntax (CMS)Eliot Lear2020-06-0716-0/+904
| | | | | | | | | | | | | | | | | | | | | | | | It add CMS (RFC 5652) support, which is an update to PKCS7. The functions are analogous BUT NOT IDENTICAL to openssl_pkcs7*. In particular, support for different encodings (PEM, DER, SMIME) is now available.
* | | | openssl: Fix openssl_pkcs12_export_to_file extracerts testNicolas Frandeboeuf2020-06-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Same as https://github.com/php/php-src/pull/2681/files but for openssl_pkcs12_export_to_file Closes GH-5665
* | | | Enclose contents of CLEAN sections in PHP tagsChristoph M. Becker2020-04-291-2/+4
| | | | | | | | | | | | | | | | | | | | We also place the CLEAN sections before EXPECT(F), and remove extraneous clean-ups.
* | | | Merge branch 'PHP-7.4'Christoph M. Becker2020-04-011-0/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Enable error diagnostic for check_default_conf_path.phpt
| * | | Enable error diagnostic for check_default_conf_path.phptChristoph M. Becker2020-04-011-0/+2
| | | | | | | | | | | | | | | | | | | | Otherwise we have no clue why the test failed, if the regex didn't match.
* | | | Improve error messages of various extensionsMáté Kocsis2020-03-231-1/+1
| | | | | | | | | | | | | | | | Closes GH-5278
* | | | Change argument error message formatMáté Kocsis2020-02-263-5/+5
| | | | | | | | | | | | | | | | Closes GH-5211
* | | | Remove deprecated capture_session_meta OpenSSL stream contextGeorge Peter Banyard2020-02-262-16/+10
| | | | | | | | | | | | | | | | Closes GH-5200
* | | | Make type error messages more consistentMáté Kocsis2020-02-173-5/+5
| | | | | | | | | | | | | | | | Closes GH-5092
* | | | Reindent phpt filesNikita Popov2020-02-0313-78/+78
| | | |
* | | | Merge branch 'PHP-7.4'Christoph M. Becker2020-01-211-0/+26
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Fix #79145: openssl memory leak
| * | | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-01-211-0/+26
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.3: Fix #79145: openssl memory leak
| | * | Fix #79145: openssl memory leakChristoph M. Becker2020-01-211-0/+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-1729-67/+67
| | | | | | | | | | | | | | | | 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
| | | |
* | | | 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'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
| | | |
* | | | 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-091-0/+13
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-08-091-0/+13
|\ \ \ \
| * | | | Fixed bug #78391Nikita Popov2019-08-091-0/+13
| |/ / /
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-06-052-7/+12
|\ \ \ \ | |/ / /
| * | | Allow exceptions in __toString()Nikita Popov2019-06-052-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RFC: https://wiki.php.net/rfc/tostring_exceptions And convert some object to string conversion related recoverable fatal errors into Error exceptions. Improve exception safety of internal code performing string conversions.
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-06-031-0/+2
|\ \ \ \ | |/ / /
| * | | Prevent use of TLS 1.3 in stream_server_reneg_limit.phptNikita Popov2019-06-031-0/+2
| | | | | | | | | | | | | | | | | | | | TLS 1.3 does not support renegotiation, make sure this test does not use it.
* | | | Convert fetch_resource warnings into TypeErrorsNikita Popov2019-06-035-27/+33
| | | | | | | | | | | | | | | | | | | | More type checks that are not part of zpp and should generate a TypeError in PHP 8.
* | | | Merge branch 'PHP-7.4'Jakub Zelenka2019-06-021-3/+9
|\ \ \ \ | |/ / /
| * | | Merge branch 'PHP-7.3' into PHP-7.4Jakub Zelenka2019-06-021-3/+9
| |\ \ \ | | |/ /
| | * | Merge branch 'PHP-7.2' into PHP-7.3Jakub Zelenka2019-06-021-3/+9
| | |\ \ | | | |/
| | | * Fix bug #78079 (openssl_encrypt_ccm.phpt fails with OpenSSL 1.1.1c)Jakub Zelenka2019-06-021-3/+9
| | | | | | | | | | | | | | | | It also fixes invalid setting of tag length
* | | | Merge branch 'PHP-7.4'Peter Kokot2019-05-101-2/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Remove unused variable