]> git.mxchange.org Git - quix0rs-gnu-social.git/commit - lib/httpclient.php
Partial fix for ticket #2489 -- problems with SNI SSL virtual host certificate valida...
authorBrion Vibber <brion@status.net>
Fri, 6 Aug 2010 17:14:07 +0000 (10:14 -0700)
committerBrion Vibber <brion@status.net>
Fri, 6 Aug 2010 17:14:07 +0000 (10:14 -0700)
commitebd2fc2f7cb799cc190b2d4a77d8d0057a8854c0
tree97e3652364c8bc0b4bfd8ac05d90575e7bea7330
parent300ed65d301d21c33a5f0a196d6acfe762a34f29
Partial fix for ticket #2489 -- problems with SNI SSL virtual host certificate validation.

Two prongs here:
* We attempt to enable SNI on the SSL stream context with the appropriate hostname... This requires PHP 5.3.2 and OpenSSL that supports the TLS extensions. Unfortunately this doesn't seem to be working in my testing.
* If set $config['http']['curl'] = true, we'll use the CURL backend if available. In my testing on Ubuntu 10.04, this works. No guarantees on other systems.

I'm not enabling CURL mode by default just yet; want to make sure there's no other surprises.
lib/default.php
lib/httpclient.php