Req #52356 [Com]: In memory support for openssl_pkcs7_*
| From: | jille at quis dot cx | Date: | Fri, 16 Jul 2010 08:13:52 +0000 |
| Subject: | Req #52356 [Com]: In memory support for openssl_pkcs7_* | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-152464@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52356&edit=1
ID: 52356
Comment by: jille at quis dot cx
Reported by: p dot vanbrouwershaven at networking4all dot com
Summary: In memory support for openssl_pkcs7_*
Status: Open
Type: Feature/Change Request
Package: OpenSSL related
PHP Version: Irrelevant
New Comment:
Attached patch is a proof-of-concept patch. It changes
openssl_pkcs7_sign() to use the input filename as a string instead of as
a filename. Paul has tested this and it seems to work.
Previous Comments:
------------------------------------------------------------------------
[2010-07-16 10:06:33] p dot vanbrouwershaven at networking4all dot com
Description:
------------
The PHP functions openssl_pkcs7_(sign|encrypt|decrypt|verify) do require
files to
be executed. In many cases this will create the unintended requirement
of
temporary files. In compare with
openssl_(sign|encrypt|decrypt|verify|...) which
are doing almost the same thing this is a strange behavior.
When we look at the purpose of openssl_pkcs7_* (working with digital
signatures in
mail), you would not expect to work with files instead of strings for
this few
data.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52356&edit=1