Re: In memory support for openssl_pkcs7_*
| From: | Pierre Joye | Date: | Fri, 16 Jul 2010 07:54:24 +0000 |
| Subject: | Re: In memory support for openssl_pkcs7_* | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49086@lists.php.net to get a copy of this message | ||
hi,
On Fri, Jul 16, 2010 at 9:45 AM, Jille Timmermans <jille@quis.cx> wrote:
> For the record: I created a proof-of-concept patch which changes
> openssl_pkcs7_sign() to use the input filename as a string instead as a
> filename. Paul has tested this and it seems to work.
>
> I don't know what the best way is to go from here. We could add an extra
> argument to all those functions which toggles whether they are threated as
> filenames or not. Or we could let all the functies also accept streams,
> etc..
> Is there a maintainer of the OpenSSL (pcks7) functions?
>
> -- Jille
>
> Op 15-7-2010 11:15, Paul van Brouwershaven schreef:
>>
>> Hi,
>>
>> 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.
Can you open a feature request for these changes/features please? So I
won't lost track of them.
Thanks for your workd and feedbacks,
Cheers,
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org