Jordi Boggiano
b1723644e0
Use extracted ca-bundle package
8 years ago
Jordi Boggiano
d8840df4ac
Minor tweak
8 years ago
Jordi Boggiano
1f0b01e70d
Merge remote-tracking branch 'watermanio/strict-types' into 1.0
8 years ago
Jordi Boggiano
3b0a1c6f70
Run cs fixer and update config to latest master
8 years ago
Jordi Boggiano
da9b43dcc8
Merge remote-tracking branch 'curry684/code-quality' into 1.0
8 years ago
Jordi Boggiano
e2056499cb
Avoid open_basedir warnings on is_dir() calls when probing for CABundle
8 years ago
Niels Keurentjes
eb77c0b7f5
phpDoc cleanup, removed unused imports, variables and parameters.
8 years ago
Niels Keurentjes
e6f21137ad
Undefined or default return points fixed.
8 years ago
Andy Waterman
d4207ff49f
Strict type checks of null and bool
8 years ago
Jordi Boggiano
fc57cc8d7e
Remove changes in StreamContextFactory, refs #5055
8 years ago
Jordi Boggiano
2c9326bacb
Merge remote-tracking branch 'wenkepaul/master'
8 years ago
David Zuelke
5dd4d69a6d
fail download on content-length mismatch
8 years ago
Niels Keurentjes
49524bc4ba
Centralize secure-http checking
8 years ago
Jordi Boggiano
37a1e12672
Mark failed downloads as failed instead of 100% complete, fixes #5111
8 years ago
Paul Wenke
9059d70ba0
Corrected username / access token parameters for $this->io->setAuthentication when read from git config. Grant type is now only set when requesting an access token. Removed bitbucket-domains and bitbucket-protocols from config. Fixed bitbucket typo in JsonConfigSource. Removed unecessary comments. Changed visibility of Composer/Util/Bitbucket properties to private. Added https to bitbucket url. Removed unused $note variable.
8 years ago
Jordi Boggiano
0db8bbfda3
Add update channels support to self-update and diagnose, fixes #4960
8 years ago
Niels Keurentjes
fafac386b7
Ensure stat cache is cleared for junctions when using outside modifications.
8 years ago
Paul.Wenke
b4d9d0fd0d
Added BitbucketTest class. Added is_array and is_object check to http content before calling http_build_query.
8 years ago
Paul.Wenke
9ddf8c4d55
Fixed OAuth credentials issue for subsequent clone requests.
8 years ago
Jordi Boggiano
4cc719cab3
Add support for SSL_CERT_DIR and openssl.capath, fixes #5017
8 years ago
Paul Wenke
d2c5479b2d
Updated documentation and fixed formatting in Bitbucket Util.
8 years ago
Paul Wenke
d5332a1b5c
Developed bitbucket-oauth functionality.
8 years ago
Jordi Boggiano
e94066967c
Add debugging info about proxy usage, refs #4332
8 years ago
Jordi Boggiano
7e1a23eef7
Add missing use statements
8 years ago
Jordi Boggiano
6f42b9c865
Disable git, svn, http protocols for VCS downloaders, fixes #4968
8 years ago
Jordi Boggiano
0ed5b541a9
Fix CS
8 years ago
Jordi Boggiano
f2e2dd8f86
Merge pull request #4972 from curry684/code-quality
...
Code quality
8 years ago
Jordi Boggiano
070ee50693
Actually check for the dir existence before retrying, refs #4009
8 years ago
Jordi Boggiano
c502601c4b
Retry on RecursiveDirectoryIterator failure to open dir, refs #4009
8 years ago
Niels Keurentjes
f794ee7870
Fixes for implicit variable declarations, return type mismatches and invalid method declarations.
8 years ago
Niels Keurentjes
478f923ec2
Improved junction detection on Windows NTFS, fixes #4955
8 years ago
Jordi Boggiano
cb59cf0c85
Allow exception to secure-http for packagist provider files and add docs, refs #4907
8 years ago
Jordi Boggiano
79b7f5f77a
Merge remote-tracking branch 'cinamo/issue-4777'
8 years ago
Rob Bast
a245c4618b
php-cs-fixer
8 years ago
Rob Bast
dc2f201152
add trailing / and updated diagnose command
8 years ago
Rob Bast
9e8aafa3b8
use base api endpoint to verify token is valid
8 years ago
Jordi Boggiano
d6d0435c54
Merge pull request #4845 from curry684/pull-4690
...
Implement junctioning on Windows for path repositories
9 years ago
cinamo
b6b416111e
Fixed http check
9 years ago
cinamo
4f5b4aff9c
Undid CS changes
9 years ago
cinamo
da44f46b9c
Code style fixes
9 years ago
cinamo
ef60478926
Added secure-http flag, defaults to true
9 years ago
Jordi Boggiano
09a6a19257
Avoid decoding gzip responses after a redirect, fixes #4897
9 years ago
Niels Keurentjes
54c079b559
Fixed Windows detection based on #4873 and suppressed some console output in removeJunction.
9 years ago
Niels Keurentjes
582e4796a3
Merge branch 'master' of https://github.com/composer/composer into pull-4690
9 years ago
Niels Keurentjes
0dab63e050
Unified all Windows tests throughout the code.
9 years ago
Niels Keurentjes
f2a2b18367
Added Platform utility and unit test for it.
9 years ago
Niels Keurentjes
b71c67239d
Made NTFS junction detection more reliable and added unit tests for the junction functions.
9 years ago
Niels Keurentjes
1b1462317c
Merge branch 'master' of https://github.com/composer/composer into pull-4690
9 years ago
Jordi Boggiano
49d7d65933
Add verbosity input support to IOInterface
9 years ago
Niels Keurentjes
358cb3f4fc
Fixed exception text and some warnings.
9 years ago
Niels Keurentjes
5489586436
Fully implemented junctioning on Windows for path repositories.
9 years ago
Niels Keurentjes
e515eb84e9
Add NTFS junction support to Util\Filesystem.
9 years ago
Jordi Boggiano
ae14e0f086
Add ssh2 protocol default ports, fixes #4835
9 years ago
Jordi Boggiano
618e7f98b2
Force base error reporting level to include everything
9 years ago
Jordi Boggiano
4e00635298
Fix error handling support, fixes #4833
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
59975e3aaa
Add missing keys class
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
e2e07a32c3
Fixes to vuln detection
9 years ago
Chris Smith
bc8b7b0f78
Remove left behind debug code
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
f9fadb187e
Fix undefined var $auth issue
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
Rob Bast
42f49b3b97
fix missing import
9 years ago
Jordi Boggiano
d7c61c50ad
Merge branch 'tls-config'
9 years ago