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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Apr 19 07:01:27 2024 UTC