php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #31003 OpenSSL - no way to get pkcs7 data out of application/pkcs7-mime signed data
Submitted: 2004-12-07 07:30 UTC Modified: 2017-01-29 04:22 UTC
Votes:4
Avg. Score:5.0 ± 0.0
Reproduced:4 of 4 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (25.0%)
From: slusarz at curecanti dot org Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 4.3.10 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: slusarz at curecanti dot org
New email:
PHP Version: OS:

 

 [2004-12-07 07:30 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-20 20:26 UTC] heiglandreas@php.net
-Status: Open +Status: Feedback -Package: Feature/Change Request +Package: *General Issues
 [2017-01-20 20:26 UTC] heiglandreas@php.net
Is this still relevant?
 [2017-01-29 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 11:01:30 2024 UTC