summaryrefslogtreecommitdiff
path: root/ext/openssl
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Improve openssl_random_pseudo_bytes()Sammy Kaye Powers2019-01-113-7/+23
| | | | | | | | | | | | | | | | | | | | | | | | CSPRNG implementations should always fail closed. Now openssl_random_pseudo_bytes() will fail closed by throwing an `\Exception` in fail conditions. RFC: https://wiki.php.net/rfc/improve-openssl-random-pseudo-bytes
* | | Merge branch 'PHP-7.3'Jakub Zelenka2019-01-1026-216/+500
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.2' into PHP-7.3Jakub Zelenka2019-01-1026-218/+502
| |\ \ | | |/
| | * Fix cleaning up after openssl_pkcs7_verify_basic testAlexander Kurilo2019-01-101-3/+1
| | |
| | * Generate certs for openssl tests on the flyAlexander Kurilo2019-01-1025-219/+505
| | | | | | | | | | | | | | | | | | | | | | | | The idea is to create an easy way to provide a certificate that never expires. In order to make it cross-platform, PHP is used rather than openssl CLI app. Using openssl to generate certificates for tests that test openssl might be not the best idea but pros seem to outweight cons that this "recursice dependency" adds
* | | Merge branch 'PHP-7.3'Christoph M. Becker2018-12-315-44/+91
|\ \ \ | |/ / | | | | | | | | | * PHP-7.3: Regenerate certs for openssl tests
| * | Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2018-12-315-44/+91
| |\ \ | | |/ | | | | | | | | | * PHP-7.2: Regenerate certs for openssl tests
| | * Regenerate certs for openssl testsAlexander Kurilo2018-12-315-44/+91
| | |
* | | Merge branch 'PHP-7.3'Jakub Zelenka2018-12-024-73/+58
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.2' into PHP-7.3Jakub Zelenka2018-12-024-73/+58
| |\ \ | | |/
| | * Regenerate certificates for openssl testsAlexander Kurilo2018-12-024-73/+58
| | |
| | * Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-1525-28/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
| | * Trim trailing whitespace in *.phptPeter Kokot2018-10-1434-60/+60
| | |
| | * Sync leading and final newlines in source code filesPeter Kokot2018-10-141-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
| | * Trim trailing whitespace in source code filesPeter Kokot2018-10-134-8/+8
| | |
| * | Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-1525-28/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
| * | Trim trailing whitespace in *.phptPeter Kokot2018-10-1434-60/+60
| | |
| * | Sync leading and final newlines in source code filesPeter Kokot2018-10-141-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
| * | Trim trailing whitespace in source code filesPeter Kokot2018-10-131-1/+1
| | |
| * | Merge branch 'PHP-7.2' into PHP-7.3Anatol Belski2018-09-131-1/+12
| |\ \ | | |/ | | | | | | | | | * PHP-7.2: Backport changes for OpenSSL 1.1.1 CI integration
| | * Backport changes for OpenSSL 1.1.1 CI integrationAnatol Belski2018-09-131-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add debug message for failing test parts (cherry picked from commit a45169a6ba54b13484d70cb474679c96347f779b) Show all unmatched errors when test failed (cherry picked from commit 70159652541c62b5f3bbb26da76b7e56987b2544) More possibly colliding libs to remove from the test image (cherry picked from commit 3008ad1a49210e4604522a987cbdd27a5a0a2c42) Remove colliding file from CI image (cherry picked from commit 6220d21c3420ff0d7366d410920ba5279fba3893) Fix typo (cherry picked from commit 24517d82cf8dc708d08bc77435ad418de4bdff4e)
* | | Add openssl_x509_verify() functionBen Scholzen (DASPRiD)2018-11-144-0/+88
| | | | | | | | | | | | This patch introduces a wrapper around OpenSSL's X509_verify() function.
* | | Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-1525-28/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* | | Trim trailing whitespace in *.phptPeter Kokot2018-10-144-4/+4
| | |
* | | Trim trailing whitespace in testsGabriel Caruso2018-10-1437-65/+65
| | |
* | | Sync leading and final newlines in source code filesPeter Kokot2018-10-141-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* | | Trim trailing whitespace in source code filesPeter Kokot2018-10-131-1/+1
| | |
* | | Fix localized error messages and memory leaksAnatol Belski2018-09-171-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The FormatMessage API needs to LocalFree the delivered error messages. In cases where messages are delivered in non ASCII compatible encoding, the messages might be unreadable. This aligns the error message encoding with the encoding settings in PHP, the focus is UTF-8 as default. Initialize error buffer Avoid code duplication
* | | Don't use xml resource in openssl testNikita Popov2018-09-171-2/+1
| | | | | | | | | | | | Instead use a file resource, removing the dependency on ext/xml.
* | | Show all unmatched errors when test failedAnatol Belski2018-09-121-5/+8
| | |
* | | Add debug message for failing test partsAnatol Belski2018-09-121-1/+9
| | |
* | | Merge branch 'PHP-7.3'Anatol Belski2018-09-121-2/+2
|\ \ \ | |/ / | | | | | | | | | * PHP-7.3: Improve error code matching
| * | Merge branch 'PHP-7.2' into PHP-7.3Anatol Belski2018-09-121-2/+2
| |\ \ | | |/ | | | | | | | | | * PHP-7.2: Improve error code matching
| | * Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2018-09-121-2/+2
| | |\ | | | | | | | | | | | | | | | | * PHP-7.1: Improve error code matching
| | | * Improve error code matchingAnatol Belski2018-09-121-2/+2
| | | |
* | | | Merge branch 'PHP-7.3'Jakub Zelenka2018-09-091-2/+6
|\ \ \ \ | |/ / /
| * | | Merge branch 'PHP-7.2' into PHP-7.3Jakub Zelenka2018-09-091-2/+6
| |\ \ \ | | |/ /
| | * | Merge branch 'PHP-7.1' into PHP-7.2Jakub Zelenka2018-09-091-2/+6
| | |\ \ | | | |/
| | | * Fix ssl stream reneg limit test to print only after first renegotiationJakub Zelenka2018-09-091-2/+6
| | | | | | | | | | | | | | | | | | | | It has been reported that in some setup the test does multiple renegotiations which is allowed.
* | | | Merge branch 'PHP-7.3'Jakub Zelenka2018-09-021-1/+3
|\ \ \ \ | |/ / /
| * | | Merge branch 'PHP-7.2' into PHP-7.3Jakub Zelenka2018-09-021-1/+3
| |\ \ \ | | |/ /
| | * | Fix stream_security_level.phpt with OpenSSL 1.1.1Jakub Zelenka2018-09-021-1/+3
| | | |
* | | | Merge branch 'PHP-7.3'Jakub Zelenka2018-08-193-2/+97
|\ \ \ \ | |/ / /
| * | | Merge branch 'PHP-7.2' into PHP-7.3Jakub Zelenka2018-08-193-2/+97
| |\ \ \ | | |/ /
| | * | Merge branch 'PHP-7.1' into PHP-7.2Jakub Zelenka2018-08-193-2/+97
| | |\ \ | | | |/
| | | * Fix bug #76705 (unusable ssl => peer_fingerprint in stream_context_create())Jakub Zelenka2018-08-193-2/+97
| | | |
* | | | Remove superfluous checks of always available functionsGabriel Caruso2018-08-031-2/+1
|/ / /
* | | Trim trailing whitespaces in build filesPeter Kokot2018-07-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Some editors utilizing .editorconfig automatically trim whitespaces. For convenience this patch removes whitespaces in certain build files: - ext/*/config*.m4 - configure.ac - acinclude.m4
* | | Remove unused Git attributes identPeter Kokot2018-07-256-12/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
* | | Use zval_ptr_dtor() instead of zval_dtor() in internal functions that ↵Dmitry Stogov2018-07-051-1/+1
| | | | | | | | | | | | destroy new created object (This is safer and produces less code)