php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17751 wrong variable used in php_openssl_csr_sign
Submitted: 2002-06-13 15:29 UTC Modified: 2002-06-13 15:41 UTC
From: eric at ypass dot net Assigned:
Status: Closed Package: OpenSSL related
PHP Version: 4.0CVS-2002-06-13 OS: All
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: eric at ypass dot net
New email:
PHP Version: OS:

 

 [2002-06-13 15:29 UTC] eric at ypass dot net
line 1419 of openssl.c from current cvs:

    if (cert && !X509_check_private_key(cert, key)) {

should read:

    if (cert && !X509_check_private_key(cert, priv_key)) {

patch:

*** openssl.c   Fri May 17 06:42:39 2002
--- openssl.c.edk       Thu Jun 13 13:15:15 2002
***************
*** 1416,1422 ****
                zend_error(E_WARNING, "cannot get private key from parameter 3");
                goto cleanup;
        }
!       if (cert && !X509_check_private_key(cert, key)) {
                zend_error(E_WARNING, "private key does not correspond to signing cert");
                goto cleanup;
        }
--- 1416,1422 ----
                zend_error(E_WARNING, "cannot get private key from parameter 3");
                goto cleanup;
        }
!       if (cert && !X509_check_private_key(cert, priv_key))    {
                zend_error(E_WARNING, "private key does not correspond to signing cert");
                goto cleanup;
        }


thanks

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-13 15:41 UTC] sniper@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Apr 13 18:01:23 2021 UTC