From:             slusarz at curecanti dot org
Operating system: Linux
PHP version:      4.3.10RC1
PHP Bug Type:     OpenSSL related
Bug description:  OpenSSL - no way to get pkcs7 data out of 
application/pkcs7-mime signed data 

Description:
------------
Enhancement request: Why does the
verify (http://us2.php.net/openssl_pkcs7_verify) command returns a boolean
vs. the
string on success and false on error?  Currently, there is absolutely no
way of getting the data out of signed block (i.e.
application/(x-)pkcs7-mime block with smime-type=signed-data) with PHP
functions.

And, come to think of it, openssl_pkcs_verify doesn't even return a
boolean - as indicated by the documentation - since -1 is a possible
return value.

Reproduce code:
---------------
e.g. this message data:

Content-Type: application/x-pkcs7-mime;
        smime-type=signed-data;
        name="smime.p7m"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
        filename="smime.p7m"

[signed data]

...may verify correctly (openssl_pkcs7_verify() returns true), but there
is no way to retrieve the actual contents of the signed data.


-- 
Edit bug report at http://bugs.php.net/?id=31003&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31003&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31003&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31003&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31003&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31003&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31003&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31003&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31003&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31003&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31003&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31003&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31003&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31003&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31003&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31003&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31003&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31003&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31003&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31003&r=mysqlcfg

Reply via email to