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

 ID:                 26076
 Comment by:         mo at nevali dot net
 Reported by:        ivan dot dolezal at vsb dot cz
 Summary:            openssl_pkcs7_verify should output the verified mail
 Status:             Assigned
 Type:               Feature/Change Request
 Package:            OpenSSL related
 Operating System:   *
 PHP Version:        *
 Assigned To:        wez
 Block user comment: N
 Private report:     N

 New Comment:

openssl_pkcs7_verify does nowadays include an optional parameter to
output the  

cleartext version of the message to a file — HOWEVER, this parameter
cannot be 

used unless the preceding parameters are ALSO used.



This is because although they are optional, there is no default value
for the 

$extracerts parameter which can be specified explicitly. The
implementation 

checks to see whether the C string (char * extracerts) is NULL or not,
which it 

will never be if the parameter is actually specified (even if it's a PHP
null 

value, as this will be coerced to the empty string).



This is a slightly awkward problem if you don't actually have any extra


certificates.


Previous Comments:
------------------------------------------------------------------------
[2003-11-02 04:52:52] w...@php.net

Already have plans to implement this.

------------------------------------------------------------------------
[2003-11-02 02:17:03] ivan dot dolezal at vsb dot cz

Description:
------------
The openssl_pkcs7_verify is able to verify signed e-mail, but I can't
get the verified message out of it to process it further.



As OpenSSL shell does have this functionality: switch "-text" in...



openssl smime -verify -CApath /etc/ssl/certs/ -in signedmessage.txt
-text



...outputs the message to STDOUT.

Expected result:
----------------
a new optional parametr called by reference in the function
openssl_pkcs7_verify, that would output the message from the e-mail

Actual result:
--------------
Currently there is no (documented) way to get the verified message out
of S/MIME. I can verify the message, find out, who signed it (with other
functions), but I can't process the message from the mail.


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



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

Reply via email to