179 Commits (2378c9e308c681be6c7a7f835367de809771354c)

Author SHA1 Message Date
Jordi Boggiano 49d7d65933 Add verbosity input support to IOInterface 9 years ago
Jordi Boggiano ae14e0f086 Add ssh2 protocol default ports, fixes #4835 9 years ago
Jordi Boggiano 1818b95149 CS fixes 9 years ago
Jordi Boggiano 5c944d45ac Merge pull request #4827 from curry684/issue-4203
Added more graceful warning suppression utility
9 years ago
Jordi Boggiano fff5074bbf Fix additionalOptions getting dropped when SAN and redirect handling are combined, refs #4782 9 years ago
Niels Keurentjes 76c1645a0e Merge remote-tracking branch 'upstream/master' into issue-4203 9 years ago
Niels Keurentjes 18cd4f966b Added silencer utility to more gracefully handle error suppression without hiding errors or worse. Fixes #4203, #4683 9 years ago
Jordi Boggiano bdb97e7527 Reuse new TlsHelper for CA validation, refs #4798 9 years ago
Jordi Boggiano 1ea810d40b Merge remote-tracking branch 'cs278/san-support' 9 years ago
Jordi Boggiano 78ffe0fd08 Avoid checking CA files several times 9 years ago
Jordi Boggiano 901e6f1d0e Fix output and handling of RFS::copy() and extract redirect code into its own method, refs #4783 9 years ago
Jordi Boggiano a574d5ef76 Merge remote-tracking branch 'cs278/follow-redirects' 9 years ago
Chris Smith b32aad8439 Do not set TLS options on local URLs 9 years ago
Chris Smith 74aa73e841 The origin may not be the remote host 9 years ago
Chris Smith 304c268c3b Tidy up and general improvement of sAN handling code
* Move OpenSSL functions into a new TlsHelper class
* Add error when sAN certificate cannot be verified due to
  CVE-2013-6420
* Throw exception if PHP >= 5.6 manages to use fallback code
* Add support for wildcards in CN/sAN
* Add tests for cert name validation
* Check for backported security fix for CVE-2013-6420 using
  testcase from PHP tests.
* Whitelist some disto PHP versions that have the CVE-2013-6420
  fix backported.
9 years ago
Chris Smith 7e2a015e9b Provide support for subjectAltName on PHP < 5.6 9 years ago
Rob Bast d6be2a693b switch to array-replace-recursive 9 years ago
Rob Bast 2393222826 more appropriate name 9 years ago
Rob Bast 474541e9aa apply comments
- add capath to json schema
- simplify factory
- hash_file and sha256 for CA checking
- remove exception as scenario should not occur
- remove executable bit from CA file
- make CA file also group/world writable (we overwrite invalid content anyway)
    to avoid permission errors as much as possible
9 years ago
Chris Smith 33f823146b Account for ports in URL 9 years ago
Chris Smith 34f1fcbdcb Drop downgrade warning 9 years ago
Rob Bast c232566e52 add a hash to make sure CA file gets recreated if the content changes 9 years ago
Rob Bast cef97904d0 dont rewrite temp CA file if it already exists
and make it readable by everyone the first time we create it
9 years ago
Rob Bast 4482a1dca0 also wrong array 9 years ago
Rob Bast f79255df29 make sure passed options are merged into defaults before checking 9 years ago
Rob Bast 94947ee772 merge isset() calls 9 years ago
Rob Bast b95b0c2ab6 wrong array 9 years ago
Rob Bast 008cce8d85 add back sanity checks 9 years ago
Rob Bast c1488f65bf a quick stab at adding capath 9 years ago
Chris Smith dd3216e93d Refactor to use new helper methods for headers 9 years ago
Chris Smith 8a8ec6fccc Too many redirects is not an error in PHP, return the latest response 9 years ago
Chris Smith 33471e389f Pass redirect count using options
Removing the risk it might be preserved between requests.
9 years ago
Chris Smith e830a611ec Handle other path redirects 9 years ago
Chris Smith ffab235edd Remove code preventing protocol downgrades 9 years ago
Chris Smith ce1eda25f3 Follow redirects inside RFS only when required by PHP version 9 years ago
Chris Smith 73662c725a Don't let PHP follow redirects it doesn't validate certificates 9 years ago
Jordi Boggiano 546730dcf3 Show CA files being used in debug mode, refs #4792 9 years ago
Jordi Boggiano a13b06725e Add support for if-modified-since on lazy repos and turning packagist into a lazy provider repo 9 years ago
Jordi Boggiano 33c123e8c2 Fix passing of options to remotefilesystem in composer repo 9 years ago
Rob Bast 22d8b5dff4 fix possible caBundle error 9 years ago
Jordi Boggiano 8375af268c Use fixed CN_match for github hosts, fixes #4782 9 years ago
Jordi Boggiano fb848d2e07 Code cleanups 9 years ago
Jordi Boggiano 72fae0bf70 Declare CN_match/SNI_server_name only for php <5.6 9 years ago
Jordi Boggiano 449f68deae Remove dangerous CN_match fallback 9 years ago
Jordi Boggiano fc4d94f160 Code clarity and updates from the getcomposer.org installer 9 years ago
Jordi Boggiano 5d015defb8 Merge remote-tracking branch 'origin/master' into tls-config 9 years ago
Jordi Boggiano fbab2bfa17 Move user agent definition to StreamContextFactory so it is available in all contexts 9 years ago
Jordi Boggiano f084b1e053 Remove duplicate handling of retry-auth-failure option, refs #3765 9 years ago
Jordi Boggiano 020c126c27 Fix CS 9 years ago
Jérôme Tamarelle 4255db9e31 Allows SSH urls for gitlab and detect the scheme
SSH urls uses HTTPS to request the API
9 years ago