php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #55307 openssl_pkcs7_verify - detached process failure
Submitted: 2011-07-28 07:05 UTC Modified: 2013-02-18 00:34 UTC
From: g dot monika at nic dot in Assigned:
Status: No Feedback Package: OpenSSL related
PHP Version: 5.3.6 OS: ubuntu linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: g dot monika at nic dot in
New email:
PHP Version: OS:

 

 [2011-07-28 07:05 UTC] g dot monika at nic dot in
Description:
------------
---
From manual page: http://www.php.net/function.openssl-pkcs7-verify%23Return%20Values
---

// $file -  signed message 
// $ca - Array of Trusted Certificate
// $input_content - Actual Input Data for verification

$res= openssl_pkcs7_verify($file,PKCS7_DETACHED,
"certverify.pem",$ca,$ca[1],$input_content);

Test script:
---------------
For the code, $input_content i have passed the input value for detached type. it shows the Error as, 
error:2107507A:PKCS7 routines:PKCS7_verify:no content

it doesnot consider the input content will be in $input_content. It overwrite the null value for that text file.

For attached signed content ,the above code works fine. 




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-12-03 02:08 UTC] philip@php.net
-Status: Open +Status: Feedback
 [2012-12-03 02:08 UTC] philip@php.net
What's the problem here? Is $input_content set to a valid filename?
 [2013-02-18 00:34 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 "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC