Dmitry Stogov
b6cc4d2009
Use zval_ptr_dtor() instead of zval_dtor() in internal functions that destroy new created object (This is safer and produces less code)
2018-07-05 11:54:26 +03:00
Dmitry Stogov
265c3ed6cf
Fixed incorrrecr zval_dtor() usage to replace value of argument passed by reference, that may lead to memory leaks.
2018-07-05 10:57:49 +03:00
Dmitry Stogov
4a475a4976
Replace legacy zval_dtor() by zval_ptr_dtor_nogc() or even more specialized destructors.
...
zval_dtor() doesn't make a lot of sense in PHP-7.* and it's used incorrectly in some places.
Its occurances should be replaced by zval_ptr_dtor() or zval_ptr_dtor_nogc(), or even more specialized destructors.
2018-07-04 19:22:24 +03:00
Dmitry Stogov
5eb1f92f31
Use zend_string_release_ex() instread of zend_string_release() in places, where we sure about string persistence.
2018-05-28 16:27:12 +03:00
Jakub Zelenka
3986b6ab6e
Merge branch 'PHP-7.2'
2018-05-22 13:41:22 +01:00
Jakub Zelenka
a231860b02
Merge branch 'PHP-7.1' into PHP-7.2
2018-05-22 13:40:23 +01:00
Jakub Zelenka
68c3d09c2c
Fix bug #76174 (openssl extension fails to build with LibreSSL 2.7)
2018-05-22 13:30:58 +01:00
Jakub Zelenka
587cede59d
Merge branch 'PHP-7.2'
2018-05-18 17:25:06 +01:00
Jakub Zelenka
b027071688
Merge branch 'PHP-7.1' into PHP-7.2
2018-05-18 17:23:17 +01:00
Erik Lax
d6bc266ba0
Fix bug #76296 (openssl_pkey_get_public does not respect open_basedir)
2018-05-18 17:15:22 +01:00
Jakub Zelenka
2a2bf97a9a
Fix keylen type mismatch in openssl_pkey_derive
2018-05-11 17:05:03 +01:00
Jakub Zelenka
a76633444c
Fix openssl_pkey_derive arginfo
2018-05-09 19:38:47 +01:00
Jim Zubov
897133fbda
Add openssl_pkey_derive
2018-05-09 19:37:01 +01:00
Christoph M. Becker
d5f84fb9c5
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix some arginfos
2018-02-23 11:32:18 +01:00
Christoph M. Becker
c6cf3d4ada
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix some arginfos
2018-02-23 11:29:21 +01:00
Gabriel Caruso
0b8cfa6c78
Fix some arginfos
...
* all arguments for ftp_pasv are required
* $varname for getenv function isn't required anymore
* fsockopen and pfsockopen only require $hostname
* strtok can work with only one parameter
* strpbrk needs two parameters to work
* required parameters and add some parameters in openssl_* functions
2018-02-23 11:27:14 +01:00
Gabriel Caruso
1314f0fb3a
Use int instead of long in protos
2018-02-23 11:06:20 +01:00
Christoph M. Becker
e8affd805f
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix openssl_* arginfos
2018-02-20 16:26:06 +01:00
Christoph M. Becker
e80e38ab7c
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix openssl_* arginfos
2018-02-20 16:25:22 +01:00
Gabriel Caruso
276b57316c
Fix openssl_* arginfos
...
openssl_pkcs12_export and openssl_x509_parse had wrong arginfos
2018-02-20 16:23:42 +01:00
Gabriel Caruso
8034fdc9d9
Use int instead of integer in proto
2018-02-02 22:32:15 +01:00
Dmitry Stogov
14d3a627c9
Eliminate useless separation
2018-01-17 12:25:49 +03:00
Xinchen Hui
a6519d0514
year++
2018-01-02 12:57:58 +08:00
Xinchen Hui
7a7ec01a49
year++
2018-01-02 12:55:14 +08:00
Xinchen Hui
ccd4716ec7
year++
2018-01-02 12:53:31 +08:00
Dmitry Stogov
9e709e2fa0
Move constants into read-only data segment
2017-12-14 18:43:44 +03:00
Jakub Zelenka
19c62e83fa
Merge branch 'PHP-7.1' into PHP-7.2
2017-10-30 16:43:36 +00:00
Jakub Zelenka
7c2031bfca
Merge branch 'PHP-7.0' into PHP-7.1
2017-10-30 16:42:23 +00:00
Jakub Zelenka
fc169d2133
Prevent leaking x509 and csr resources if it is not requested
...
All functions using php_openssl_x509_from_zval or php_openssl_csr_from_zval
with makeresource equal to 0 do not deref the resource which means there
is a leak till the end of the request. This can cause issues for long
running apps. It is a generic solution for bug #75363 which also covers
other functions.
2017-10-30 16:40:56 +00:00
Joe Watkins
f2367d4626
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix bug #75307 Wrong reflection for openssl_open function
2017-10-27 16:06:57 +01:00
Joe Watkins
14be7dcf8e
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix bug #75307 Wrong reflection for openssl_open function
2017-10-27 16:06:29 +01:00
Fabien Villepinte
51ea2cfbe1
Fix bug #75307 Wrong reflection for openssl_open function
2017-10-27 16:06:01 +01:00
Jakub Zelenka
a3da46b524
Merge branch 'PHP-7.1' into PHP-7.2
2017-10-15 20:33:22 +01:00
Jakub Zelenka
547fee9cd4
Merge branch 'PHP-7.0' into PHP-7.1
2017-10-15 20:31:25 +01:00
Jakub Zelenka
999fe36d40
Properly fix #75363 and address some other leaks with cert
2017-10-15 20:25:58 +01:00
Bob Weinand
ee36507423
Merge branch 'PHP-7.1' into PHP-7.2
2017-10-12 12:32:30 +02:00
Bob Weinand
f8ff4c4918
Merge branch 'PHP-7.0' into PHP-7.1
2017-10-12 12:31:20 +02:00
Bob Weinand
a55af1e271
Fixed bug #75363 (openssl_x509_parse leaks memory)
2017-10-12 12:30:20 +02:00
Jakub Zelenka
1f843a8fb5
Automatically load OpenSSL configuration file
2017-08-30 17:31:17 +01:00
Jakub Zelenka
58df6a3b61
Do not explicitly initialize and clean up OpenSSL for OpenSSL 1.1
2017-08-30 17:29:24 +01:00
Anatol Belski
e2b61eccb9
Followup on 0ec147d3
for another place
...
which requires also to move the macros into the header
(cherry picked from commit b7eb2c0604
)
2017-07-24 16:33:12 +02:00
Anatol Belski
6918a68d9d
Ensure binary mode for OpenSSL I/O
...
Essential for OpenSSL 1.1.0 on Windows, some issues was revealed earlier
and now by openssl_pkcs12_export_to_file_basic.phpt.
(cherry picked from commit 0ec147d301
)
2017-07-24 16:31:09 +02:00
Anatol Belski
b7eb2c0604
Followup on 0ec147d3
for another place
...
which requires also to move the macros into the header
2017-07-24 16:24:04 +02:00
Anatol Belski
0ec147d301
Ensure binary mode for OpenSSL I/O
...
Essential for OpenSSL 1.1.0 on Windows, some issues was revealed earlier
and now by openssl_pkcs12_export_to_file_basic.phpt.
2017-07-24 15:43:48 +02:00
Jakub Zelenka
90ae2aec8c
Make functions in openssl.c more consistent
...
Improve naming, CS and add some static defs
2017-07-16 18:38:17 +01:00
Stanislav Malyshev
d75dbb0e31
Merge branch 'PHP-7.1'
...
* PHP-7.1:
Improve fix for #74145
Fix wddx
Fix tests
Fixed bug #74111
Fix bug #74603 - use correct buffer size
Fix bug #74651 - check EVP_SealInit as it can return -1
Update NEWS
Fix bug #74087
Fixed parsing of strange formats with mixed month/day and time strings
Fix bug #74145 - wddx parsing empty boolean tag leads to SIGSEGV
Fixed bug #74111
Fix #74435 : Buffer over-read into uninitialized memory
Fix bug #74603 - use correct buffer size
Fix bug #74651 - check EVP_SealInit as it can return -1
Update NEWS
Fix bug #73807
2017-07-04 21:23:16 -07:00
Stanislav Malyshev
0ba04f7737
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Improve fix for #74145
Fix wddx
Fix tests
Fixed bug #74111
Fix bug #74603 - use correct buffer size
Fix bug #74651 - check EVP_SealInit as it can return -1
Update NEWS
Fix bug #74087
Fixed parsing of strange formats with mixed month/day and time strings
Fix bug #74145 - wddx parsing empty boolean tag leads to SIGSEGV
Fixed bug #74111
Fix #74435 : Buffer over-read into uninitialized memory
Fix bug #74603 - use correct buffer size
Fix bug #74651 - check EVP_SealInit as it can return -1
Update NEWS
Fix bug #73807
2017-07-04 21:18:10 -07:00
Stanislav Malyshev
73cabfedf5
Fix bug #74651 - check EVP_SealInit as it can return -1
2017-07-04 19:30:56 -07:00
Jakub Zelenka
e657f0d3f2
Merge branch 'PHP-7.1'
2017-06-25 18:11:10 +01:00
Jakub Zelenka
0c707fcb10
Add OPENSSL_DONT_ZERO_PAD_KEY constant to prevent key padding
...
It fixes bug #71917 (openssl_open() returns junk on envelope < 16 bytes)
and bug #72362 (OpenSSL Blowfish encryption is incorrect for short
keys).
2017-06-25 18:08:50 +01:00