[php-src] PR #21926: ext/openssl: avoid redundant input/output copies.
| From: | devnexen | Date: | Fri, 01 May 2026 20:57:52 +0000 |
| Subject: | [php-src] PR #21926: ext/openssl: avoid redundant input/output copies. | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35977@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21926
Author: devnexen
Switch the PKCS12/PKCS7/CMS readers to BIO_new_mem_buf so the parsers work on the PHP string
directly. Also adds a missing NULL check in pkcs12_read.
openssl_seal/openssl_open write straight into a zend_string instead of an emalloc buffer that gets
copied via zend_string_init.