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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
31 + 41 = ?
Subscribe to this entry?

 
 [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: Fri Apr 16 15:01:24 2021 UTC