Bug #17751: wrong variable used in php_openssl_csr_sign

From: Date: Thu, 13 Jun 2002 19:29:27 +0000
Subject: Bug #17751: wrong variable used in php_openssl_csr_sign
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10376@lists.php.net to get a copy of this message
From: eric@ypass.net Operating system: All PHP version: 4.0CVS-2002-06-13 PHP Bug Type: OpenSSL related Bug description: wrong variable used in php_openssl_csr_sign 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 bug report at http://bugs.php.net/?id=17751&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17751&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17751&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17751&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17751&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17751&r=support Expected behavior: http://bugs.php.net/fix.php?id=17751&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17751&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17751&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17751&r=globals

« previous php.bugs (#10376) next »