php-src/ext/openssl
Niels Dossche cd8722304c
Fix error return check of EVP_CIPHER_CTX_ctrl()
OpenSSL can return -1 on error [1, 2], and OpenBSD's docs confirm this
[3]. Change all checks to <= 0.

[1] b3161bd9a9/crypto/evp/evp_enc.c (L1530-L1531)
[2] b3161bd9a9/crypto/evp/evp_enc.c (L1611)
[3] https://man.openbsd.org/EVP_CIPHER_CTX_ctrl.3

Closes GH-18987.
2025-07-15 20:37:33 +02:00
..
tests Fix bug #80770: openssl cafile not used in SNI SSL_CTX 2025-07-15 11:23:10 +02:00
config.w32
config0.m4 Fix #75725: ./configure: detecting RAND_egd 2021-11-22 14:11:07 +01:00
CREDITS Add support for Cryptographic Message Syntax (CMS) 2020-06-07 16:58:34 +01:00
openssl.c Fix error return check of EVP_CIPHER_CTX_ctrl() 2025-07-15 20:37:33 +02:00
openssl.stub.php Merge branch 'PHP-8.2' into PHP-8.3 2024-09-28 16:24:01 +01:00
openssl_arginfo.h Merge branch 'PHP-8.2' into PHP-8.3 2024-09-28 16:24:01 +01:00
php_openssl.h Fix GH-11054: Reset OpenSSL errors when using a PEM public key 2023-05-06 11:56:31 +01:00
xp_ssl.c Fix bug #80770: openssl cafile not used in SNI SSL_CTX 2025-07-15 11:23:10 +02:00