|
|
|
[
Permlink
| « Hide
]
Shahar Evron - 02/Mar/07 07:29 AM
apparently, stream_context_set_params() can be used on sockets created by fsockopen as well - so there is not much rewriting to be done here. This can be done using a new configuration option and a call to stream_context_set_params() on the socket after opening the connection.
I have attached a patch that changes the Socket adapter to use stream_context_create() instead of fsockopen(), and adds 'sslcert' and 'sslpassphrase' options to allow client SSL certificates to be used. Although the conversion from fsockopen() to stream_socket_client() may not have been needed, it only required changes in a few lines of code and as far as I can tell does not have any drawbacks.
Hi Alex,
Thanks for the patch, it looks great! You're welcome. Yes, I signed the CLA back in November 2006.
Updating Fix Version to follow issue tracker conventions.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||