[PHP-BUG] Req #65575 [NEW]: Add CURLOPT_CRLFILE
From: kf at sumptuouscapital dot com Operating system: PHP version: master-Git-2013-08-28 (Git) Package: cURL related Bug Type: Feature/Change Request Bug description:Add CURLOPT_CRLFILE Description: In order for cURL to use a provided CRL file when verifying peers CURLOPT_CRLFILE has to be set in the form of a char * (available since 7.19) This can then be used in the form like curl_setopt($chhkps, CURLOPT_CRLFILE, '/path/to/ca/crl.pem'); curl_setopt($chhkps, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($chhkps, CURLOPT_SSL_VERIFYPEER, true); Expected result: CRL file being validated. As is the behaviour with the provided patch Actual result: -- Constant CURLOPT_CRLFILE not defined -- Edit bug report at https://bugs.php.net/bug.php?id=65575&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65575&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65575&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65575&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=65575&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=65575&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=65575&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=65575&r=needscript Try newer version: https://bugs.php.net/fix.php?id=65575&r=oldversion Not developer issue:https://bugs.php.net/fix.php?id=65575&r=support Expected behavior: https://bugs.php.net/fix.php?id=65575&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=65575&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=65575&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=65575&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65575&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=65575&r=dst IIS Stability: https://bugs.php.net/fix.php?id=65575&r=isapi Install GNU Sed:https://bugs.php.net/fix.php?id=65575&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=65575&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=65575&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=65575&r=mysqlcfg
Req #65575 [Opn->Csd]: Add CURLOPT_CRLFILE
Edit report at https://bugs.php.net/bug.php?id=65575&edit=1 ID: 65575 User updated by: kf at sumptuouscapital dot com Reported by: kf at sumptuouscapital dot com Summary:Add CURLOPT_CRLFILE -Status: Open +Status: Closed Type: Feature/Change Request Package:cURL related PHP Version:master-Git-2013-08-28 (Git) Block user comment: N Private report: N New Comment: This seems to be fixed in master and in php 5.5.4 Previous Comments: [2013-08-28 20:32:34] kf at sumptuouscapital dot com Description: In order for cURL to use a provided CRL file when verifying peers CURLOPT_CRLFILE has to be set in the form of a char * (available since 7.19) This can then be used in the form like curl_setopt($chhkps, CURLOPT_CRLFILE, '/path/to/ca/crl.pem'); curl_setopt($chhkps, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($chhkps, CURLOPT_SSL_VERIFYPEER, true); Expected result: CRL file being validated. As is the behaviour with the provided patch Actual result: -- Constant CURLOPT_CRLFILE not defined -- Edit this bug report at https://bugs.php.net/bug.php?id=65575&edit=1
[PHP-BUG] Req #63488 [NEW]: CURLOPT_RESOLVE not defined
From: kf at sumptuouscapital dot com Operating system: GNU/Linux PHP version: 5.4.8 Package: HTTP related Bug Type: Feature/Change Request Bug description:CURLOPT_RESOLVE not defined Description: Since curl 7.21.3 curl_easy_setopt has an option CURLOPT_RESOLVE [0]. Using this option from within PHP results in the following NOTICE and WARNING. Usage of this functionality is necessary for proper Sever Name Indication for verifying CA Certs in certain scenarios. The actual functionality presented by this option seems to work despite the notice and warning. The notice is: PHP Notice: Use of undefined constant CURLOPT_RESOLVE - assumed 'CURLOPT_RESOLVE' in /var/www/localhost/htdocs/status-srv/sks_get_peer_data.php on line 351 This Notice can be removed by explicitly setting a string rather than using it as a constant, however, the following Warning is still presented in both scenarios: Warning: curl_setopt() expects parameter 2 to be long, string given in /var/www/localhost/htdocs/status-srv/sks_get_peer_data.php on line 351 [0] http://curl.haxx.se/libcurl/c/curl_easy_setopt.html Test script: --- https://www.google.com:80/";); curl_setopt($ch, CURLOPT_RESOLVE, "google.com:80:173.194.32.5"); curl_exec($ch); ?> Expected result: No warning Actual result: -- works, but with notice and warning output. -- Edit bug report at https://bugs.php.net/bug.php?id=63488&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63488&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63488&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63488&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63488&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=63488&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63488&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63488&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63488&r=oldversion Not developer issue:https://bugs.php.net/fix.php?id=63488&r=support Expected behavior: https://bugs.php.net/fix.php?id=63488&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63488&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63488&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63488&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63488&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63488&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63488&r=isapi Install GNU Sed:https://bugs.php.net/fix.php?id=63488&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63488&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63488&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63488&r=mysqlcfg
Req->Bug #63488 [Opn]: CURLOPT_RESOLVE not defined
Edit report at https://bugs.php.net/bug.php?id=63488&edit=1 ID: 63488 User updated by: kf at sumptuouscapital dot com Reported by: kf at sumptuouscapital dot com Summary:CURLOPT_RESOLVE not defined Status: Open -Type: Feature/Change Request +Type: Bug Package:HTTP related Operating System: GNU/Linux PHP Version:5.4.8 Block user comment: N Private report: N New Comment: Please disregard the part about the functionality working as expected, it does not use the provided information, just worked out in earlier testing due to circumstance. Due to this I'm flagging it as a bug rather than a RFE Previous Comments: [2012-11-11 18:01:45] kf at sumptuouscapital dot com Description: Since curl 7.21.3 curl_easy_setopt has an option CURLOPT_RESOLVE [0]. Using this option from within PHP results in the following NOTICE and WARNING. Usage of this functionality is necessary for proper Sever Name Indication for verifying CA Certs in certain scenarios. The actual functionality presented by this option seems to work despite the notice and warning. The notice is: PHP Notice: Use of undefined constant CURLOPT_RESOLVE - assumed 'CURLOPT_RESOLVE' in /var/www/localhost/htdocs/status-srv/sks_get_peer_data.php on line 351 This Notice can be removed by explicitly setting a string rather than using it as a constant, however, the following Warning is still presented in both scenarios: Warning: curl_setopt() expects parameter 2 to be long, string given in /var/www/localhost/htdocs/status-srv/sks_get_peer_data.php on line 351 [0] http://curl.haxx.se/libcurl/c/curl_easy_setopt.html Test script: --- https://www.google.com:80/";); curl_setopt($ch, CURLOPT_RESOLVE, "google.com:80:173.194.32.5"); curl_exec($ch); ?> Expected result: No warning Actual result: -- works, but with notice and warning output. -- Edit this bug report at https://bugs.php.net/bug.php?id=63488&edit=1