| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Make sure the server has started up before we try to connect to it.
|
|\
| |
| |
| |
| | |
* PHP-7.4:
Next attempt to fix bug #80368
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Apparently treating LibreSSL as OpenSSL 1.1 is not just something
we did in our code, it's something that upstream LibreSSL claims,
despite not actually being compatible. Duh.
Check for EVP_CIPH_OCB_MODE instead, which should reliably
determine support...
|
|\ \
| |/ |
|
| |\ |
|
| | | |
|
| | | |
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Fixed bug #80368
|
| | |
| | |
| | |
| | |
| | | |
We assume that usually LibreSSL supports everything OpenSSL 1.1 does.
In this instance, this is not the case.
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Fix CCM tag length setting for old OpenSSL versions
|
| | |
| | |
| | |
| | |
| | |
| | | |
While OpenSSL 1.1 allows unconditionally setting the CCM tag length
even for decryption, some older versions apparently do not. As such,
we do need to treat CCM and OCB separately after all.
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Fix bug #79983: Add support for OCB mode
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
OCB mode ciphers were already exposed to openssl_encrypt/decrypt,
but misbehaved, because they were not treated as AEAD ciphers.
From that perspective, OCB should be treated the same way as GCM.
In OpenSSL 1.1 the necessary controls were unified under
EVP_CTRL_AEAD_* (and OCB is only supported since OpenSSL 1.1).
Closes GH-6337.
|
| | | |
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Allow passing $tag for non-authenticated encryption
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
openssl_encrypt() currently throws a warning if the $tag out
parameter is passed for a non-authenticated cipher. This violates
the principle that a function should behave the same if a parameter
is not passed, and if the default value is passed for the parameter.
I believe this warning should simply be dropped and the $tag be
populated with null, as is already the case. Otherwise, it is not
possible to use openssl_encrypt() in generic wrapper APIs, that are
compatible with both authenticated and non-authenticated encryption.
Closes GH-6333.
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Revert "Add missing X509 purpose constants"
|
| | |
| | |
| | |
| | |
| | |
| | | |
This reverts commit 1e53e14bc31aec98a408e517c7c8493ef4bf80cd.
This fails on Travis.
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Add missing X509 purpose constants
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
X509_PURPOSE_OCSP_HELPER, X509_PURPOSE_TIMESTAMP_SIGN are available
from OpenSSL for many years:
- X509_PURPOSE_OCSP_HELPER, since 2001
- X509_PURPOSE_TIMESTAMP_SIGN, since 2006
Also drop the ifdef check for X509_PURPOSE_ANY, as it is always
available in supported OpenSSL versions.
Closes GH-6312.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Intended to find issues in opaque object destructors.
Closes GH-6251.
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* PHP-7.4:
Update UPGRADING
Update UPGRADING
Update NEWS & UPGRADING
Do not decode cookie names anymore
Fix bug #79601 (Wrong ciphertext/tag in AES-CCM encryption for a 12 bytes IV)
|
| |\ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* PHP-7.3:
Update UPGRADING
Update NEWS & UPGRADING
Do not decode cookie names anymore
Fix bug #79601 (Wrong ciphertext/tag in AES-CCM encryption for a 12 bytes IV)
|
| | |\ \
| | | |/
| | |/|
| | | |
| | | |
| | | |
| | | | |
* PHP-7.2:
Update NEWS & UPGRADING
Do not decode cookie names anymore
Fix bug #79601 (Wrong ciphertext/tag in AES-CCM encryption for a 12 bytes IV)
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Closes GH-6156
|
| | | |
| | | |
| | | |
| | | |
| | | | |
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Closes GH-6121
|
| | | |
| | | |
| | | |
| | | | |
Since e8e4ddce
|
| | | |
| | | |
| | | |
| | | | |
Closes GH-6025
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
They will now follow the canonical order of types. Older macros are
left intact due to maintaining BC.
Closes GH-6112
|
| | | |
| | | |
| | | |
| | | | |
Closes GH-5999
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
RC4 is considered insecure, and it's not possible to change the
default of these functions. As such, require the method to be
passed explicitly.
Closes GH-6093.
|
| | | |
| | | |
| | | |
| | | | |
Closes GH-5111
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
These two $recipcert parameters don't use proper union types
right now. They are a bit tricky due to the $recipkey -> $recipcert
fallback.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Remove null checks before EVP_PKEY_free and BIO_free. NULL is a
no-op for both of these. Probably applies to most other freeing
function as well...
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | |
| | | |
| | | |
| | | | |
Closes GH-5958
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Closes GH-5860
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
|
|\ \ \ \
| |/ / /
| | | |
| | | |
| | | | |
* PHP-7.4:
Fixed bug #79881
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Closes GH-5758
|
| | | |
| | | |
| | | |
| | | |
| | | | |
For the rare cases where references are part of the API,
construct them explicitly. Otherwise do not allow separation.
|
| | | |
| | | |
| | | |
| | | | |
Closes GH-5779
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The hash is used to check whether the arginfo file needs to be
regenerated. PHP-Parser will only be downloaded if this is actually
necessary.
This ensures that release artifacts will never try to regenerate
stubs and thus fetch PHP-Parser, as long as you do not modify any
files.
Closes GH-5739.
|
|\ \ \ \
| |/ / / |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
The putenv trick doesn't work on ZTS Windows, so generate a new
openssl config every time.
|
|\ \ \ \
| |/ / / |
|