Req #31003 [Opn->Fbk]: OpenSSL - no way to get pkcs7 data out of application/pkcs7-mime signed data
| From: | heiglandreas@php.net | Date: | Fri, 20 Jan 2017 20:26:39 +0000 |
| Subject: | Req #31003 [Opn->Fbk]: OpenSSL - no way to get pkcs7 data out of application/pkcs7-mime signed data | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-206784@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=31003&edit=1
ID: 31003
Updated by: heiglandreas@php.net
Reported by: slusarz at curecanti dot org
Summary: OpenSSL - no way to get pkcs7 data out of
application/pkcs7-mime signed data
-Status: Open
+Status: Feedback
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
Operating System: Linux
PHP Version: 4.3.10
Block user comment: N
Private report: N
New Comment:
Is this still relevant?
Previous Comments:
------------------------------------------------------------------------
[2004-12-07 07:30:05] slusarz at curecanti dot org
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 this bug report at https://bugs.php.net/bug.php?id=31003&edit=1