ID:               22978
 User updated by:  busia at tiscali dot it
 Reported By:      busia at tiscali dot it
 Status:           Open
 Bug Type:         Feature/Change Request
 Operating System: Redhat 7.0
 PHP Version:      4.3.2RC1
 New Comment:

The problem is also with the input data: I have input data (email
message) in a variable and i have to write them to a file to use this
function.


Previous Comments:
------------------------------------------------------------------------

[2003-03-31 05:47:37] busia at tiscali dot it

Is it possible to add an option into "openssl_pkcs7_verify" to save the
store the certificate into a variable instead of into a file? 

I tried:
---------------------------------------
ob_start();
openssl_pkcs7_verify("/home/busia/mail_firmata_mittente_cambiato",
PKCS7_DETACHED, "php://stdout");
$pem=ob_get_contents();
ob_end_clean();
---------------------------------------

But I receive this warning:
---------------------------------------
PHP Warning:  openssl_pkcs7_verify() [<a href='http://www
.php.net/function.openssl-pkcs7-verify'>function.openssl-pkcs7-verify</a>]:
sign
ature OK, but cannot open php://stdout for writing in
/home/busia/prova2.php on
line 5
---------------------------------------

Writing the file and the reding it seems a waste of resources.

Thanks
Andrea Busia

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=22978&edit=1

Reply via email to