Bug #17751 Updated: wrong variable used in php_openssl_csr_sign
| From: | sniper@php.net | Date: | Thu, 13 Jun 2002 19:41:38 +0000 |
| Subject: | Bug #17751 Updated: wrong variable used in php_openssl_csr_sign | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-10377@lists.php.net to get a copy of this message | ||
ID: 17751
Updated by: sniper@php.net
Reported By: eric@ypass.net
-Status: Open
+Status: Closed
Bug Type: OpenSSL related
Operating System: All
PHP Version: 4.0CVS-2002-06-13
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2002-06-13 15:29:27] eric@ypass.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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17751&edit=1