#33760 [Asn]: cURL needs to implement CRYPTO_callback functions to prevent locking
| From: | mike@php.net | Date: | Mon, 24 Oct 2005 08:27:27 +0000 |
| Subject: | #33760 [Asn]: cURL needs to implement CRYPTO_callback functions to prevent locking | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-86964@lists.php.net to get a copy of this message | ||
ID: 33760
Updated by: mike@php.net
Reported By: eja40 at cam dot ac dot uk
Status: Assigned
Bug Type: cURL related
Operating System: *
PHP Version: 5CVS, 4CVS, 6CVS
Assigned To: mike
New Comment:
Ah, I forgot to mention that the GnuTLS implementation is quite
academic, i.e. untested.
Previous Comments:
------------------------------------------------------------------------
[2005-10-24 10:10:33] mike@php.net
Patch against PHP_5_1:
http://dev.iworks.at/PATCHES/curl_ssl_tsl.diff.txt
------------------------------------------------------------------------
[2005-10-24 00:09:10] edink@php.net
Mike, since you got this thing to work with pecl/http could you have a
look at implementing the callbacks in the curl extension?
------------------------------------------------------------------------
[2005-07-28 00:46:46] daniel-curl at haxx dot se
This is clearly documented in the libcurl tutorial and has been
required by libcurl for years.
Available online here:
http://curl.haxx.se/libcurl/c/libcurl-tutorial.html#Multi-threading
Certainly we are open for other/new solutions, but that doesn't fix
this problem for you for older libcurl installations.
------------------------------------------------------------------------
[2005-07-20 15:18:08] eja40 at cam dot ac dot uk
To help flesh out this problem and the solution - the example OpenSSL
locking code is given by cURL here:
http://curl.haxx.se/lxr/source/docs/examples/opensslthreadlock.c
------------------------------------------------------------------------
[2005-07-20 15:12:58] eja40 at cam dot ac dot uk
Sorry I don't know how to patch it myself.
However cURL insist that this must be implemented at the highest thread
level - it cannot be implemented in libcurl (I don't understand why).
Therefore it must be implemented in the PHP code.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/33760
--
Edit this bug report at http://bugs.php.net/?id=33760&edit=1