Commit Graph

3600 Commits (2a8a63dd3d0ab98bca93f21ed9baeb1a8eec2185)

Author SHA1 Message Date
Tatsuhiro Tsujikawa 8b32b26828 wintls: Potential fix for undecrypted read 2017-10-07 19:43:17 +09:00
Tatsuhiro Tsujikawa 64fe98a1ea clang-format 2017-10-07 19:42:43 +09:00
Tatsuhiro Tsujikawa 0c62ae615d libaria2: Return last error code from DownloadHandle::getErrorCode 2017-08-30 21:25:46 +09:00
Nils Maier 1fe6cc7356 Windows: pass writefds also as exceptfds to select()
winsock notifies connect() failures on exceptfds instead of writefds.
Fixes GH-969
Fixes GH-975
2017-08-28 18:19:04 +02:00
Nils Maier 2cfe19205b libuv: use pkg-config 2017-07-31 15:52:19 +02:00
Nils Maier 086500cc21 FeatureConfig: align text 2017-07-31 15:50:32 +02:00
Kurt Kartaltepe a3bacc0ff1 Add --peer-agent option
Add --peer-agent for setting the version/user agent used in the extended
handshake protocol for bittorrent.
2017-07-11 10:18:51 -05:00
Tse Kit Yam 4e656cc904 Update copyright year to 2017 2017-07-08 23:59:46 +08:00
Nils Maier 54ccab8ccb AppleTLS: Silence cipher suite selection 2017-06-15 15:08:42 +02:00
Tatsuhiro Tsujikawa e3b6460d07 Merge branch 'bt-load-saved-metadata' 2017-05-22 22:37:34 +09:00
Tatsuhiro Tsujikawa 9deb4210b2 Add --bt-load-saved-metadata option
Before getting torrent metadata from DHT when downloading with magnet
link, first try to read file saved by --bt-save-metadata option. If it
is successful, then skip downloading metadata from DHT.  By default,
this feature is turned off.
2017-05-22 00:02:05 +09:00
Tatsuhiro Tsujikawa 3cfea3c724 Fix regression in bfc54d0b9a
Don't save control file if --auto-save-interval is 0.
2017-05-20 22:19:29 +09:00
Tatsuhiro Tsujikawa 8785342f85 Fix infinite loop bug when file is not found 2017-05-20 12:45:00 +09:00
Tatsuhiro Tsujikawa 9677586336 clang-format-4.0 2017-05-19 21:32:25 +09:00
Tatsuhiro Tsujikawa fe2226b988 Fix compile error with toolchain which lacks IPV6_TCLASS 2017-05-08 22:45:12 +09:00
Tatsuhiro Tsujikawa e441cf0575 Merge pull request #885 from aria2/notice-log-level-redirection-uri
Log directed URI in notice log level
2017-04-13 22:24:45 +09:00
Tatsuhiro Tsujikawa c7a13f934c Log directed URI in notice log level 2017-04-09 19:37:39 +09:00
Tse Kit Yam 1e8cf5151e Fix typo 2017-04-01 23:19:57 +08:00
klemens ec2ce4ffe5 spelling fixes 2017-03-20 22:44:41 +01:00
Fredrik Fornwall 68edbb358c Remove unused Android parts
These parts where unused after merging https://github.com/aria2/aria2/pull/736
2017-03-18 01:01:18 +01:00
Tatsuhiro Tsujikawa bfc54d0b9a Save control file early 2017-03-02 22:54:11 +09:00
Tatsuhiro Tsujikawa 9eff8100ef Refactor 2017-03-02 22:48:40 +09:00
Tatsuhiro Tsujikawa 6289aafaf8 Increase backlog to 1024 2017-03-02 22:23:29 +09:00
Tatsuhiro Tsujikawa 8fc0c85125 Propagate disk full error on pre-allocation to last error code 2017-02-23 21:34:58 +09:00
Tatsuhiro Tsujikawa 857d6a2a8e Fix compiler warning with Android NDK clang 2017-01-23 00:58:44 +09:00
Tatsuhiro Tsujikawa eecb5e055e clang-format 2017-01-16 21:33:04 +09:00
Tatsuhiro Tsujikawa 744a5a550d Better error message when local file status cannot be retrieved 2017-01-15 16:33:58 +09:00
Tatsuhiro Tsujikawa c1a0b33515 Add constexpr if possible 2017-01-09 17:37:40 +09:00
Tatsuhiro Tsujikawa e2dc0902bb Fix assertion failure in SimpleRandomizer::getRandomBytes
errno might not be initialized to 0, and we may get both rv == -1 and
errno != ENOSYS.  This leads to assertion failure.  Since
getrandom_linux always returns -1 on failure, checking errno is
useless in this function.
2017-01-06 22:22:14 +09:00
Tatsuhiro Tsujikawa b5d64230ba Cast to unsigned char before passing it as uint32_t 2016-12-31 14:28:11 +09:00
JimmyZ da730478af new option content-disposition-default-utf8 2016-12-31 14:11:12 +09:00
Tatsuhiro Tsujikawa 388ae843ca `make clang-format` 2016-12-15 22:37:19 +09:00
Tatsuhiro Tsujikawa ddc1f1bfda Fix bug that lower bound of optimize-concurrent-downloads becomes 1 2016-12-05 21:18:31 +09:00
Tatsuhiro Tsujikawa 4473b870f4 Merge pull request #795 from aria2/show-dht-nodes
Print DHT nodes with -S option
2016-12-04 10:32:30 +09:00
Tatsuhiro Tsujikawa 7a089ae04a Merge pull request #794 from aria2/fix-dht-node-resolv
Take into account address family when resolving DHT node address
2016-12-04 10:31:53 +09:00
Tatsuhiro Tsujikawa c679390392 Print DHT nodes with -S option 2016-12-03 16:27:29 +09:00
Tatsuhiro Tsujikawa 3d5c76800d Take into account address family when resolving DHT node address 2016-12-03 16:18:14 +09:00
Tatsuhiro Tsujikawa e4f3d633c1 Use stdin for *NIX as well
We thought that we can use /dev/stdin for *NIX, but some variants,
like Android, does not have one or root permission is required.  Just
like we do for Windows build, we just use stdin if /dev/stdin is used.
2016-11-26 22:42:20 +09:00
Tatsuhiro Tsujikawa d0a0645836 We already replaced "-" with DEV_STDIN in LocalFilePathOptionHandler 2016-11-26 22:16:18 +09:00
Tatsuhiro Tsujikawa 380e5aa451 Merge branch 'user-home-variable-expansion' 2016-11-26 16:28:59 +09:00
Tatsuhiro Tsujikawa 14e995d2bc Allow block device file to -i option 2016-11-26 16:26:33 +09:00
Tatsuhiro Tsujikawa 9df50804d4 Merge pull request #772 from aria2/refactor-wintls-write
WinTLS: Rewrite writeData
2016-11-23 22:57:58 +09:00
Tatsuhiro Tsujikawa 9214e72501 Expand ${HOME} to user's home directory in several options
The following options implement this substitution:

* --ca-certificate
* --certificate
* --dht-file-path
* --dht-file-path6
* --dir
* --input-file
* --load-cookies
* --log
* --metalink-file
* --netrc-path
* --on-bt-download-complete
* --on-download-complete
* --on-download-error
* --on-download-start
* --on-download-stop
* --on-download_pause
* --out
* --private-key
* --rpc-certificate
* --rpc-private-key
* --save-cookies
* --save-session
* --server-stat-if
* --server-stat-of
* --torrent-file
2016-11-23 22:45:17 +09:00
Michał Górny 02985711df configure: Use pkg-config to find libs whenever possible
Use pkg-config to find cppunit, libxml2 and expat. All those libraries
provide pkg-config files, and in all of those cases the pkg-config macro
is superior to the custom macros used currently.

The advantages of pkg-config files include:

- Explicit static linking support via --static. Currently, e.g.
'xml2-config --libs' prints all libraries needed for static linking when
doing dynamic linking unnecessary, resulting in unnecessary direct deps.

- Better cross-build support. You don't have to build the additional
*-config tools for target.

- Better multilib support. Per-ABI pkgconfig directories are commonly
supported while packages usually fail to look for per-CHOST *-config
variants.

- Better override support. The current macros allow little to no
result overrides, the pkg-config macros let you pass FOO_CFLAGS
and FOO_LIBS manually.

- Cleaner version checks. The code used in libxml.m4 is really creepy.
2016-11-12 22:13:48 +01:00
Tatsuhiro Tsujikawa d974c935cd WinTLS: Rewrite writeData
We re-wrote WinTLSSession::writeData.  The major points are:

* Buffer is now preallocated once handshake is finished.  Previously,
  they are allocated each time when we send one TLS record.

* Schannel uses header, body and trailer for each secBuffer.  Now we
  send them off at once using WSASend which is windows counterpart of
  sendv.  Previously, we do memmove if some of them are truncated.

* We don't try to send application data in
  WinTLSSession::closeConnection, since semantically we need same
  application data used to create TLS record before.  Using 0 length
  data to finish sending buffered data looks like a hack.
2016-11-12 22:20:41 +09:00
Tatsuhiro Tsujikawa d289dc1108 WinTLS: Fix busy loop on write error 2016-11-09 23:08:25 +09:00
Tatsuhiro Tsujikawa 2df30b1447 Support 1xx non-final response 2016-11-03 16:29:04 +09:00
Tatsuhiro Tsujikawa 90452ae11b Don't download piece which is filtered out (e.g., --select-file)
This commit fixes the bug that piece which is not requested by
--select-file is downloaded in multi-file WebSeeding.
2016-10-26 22:40:00 +09:00
Tatsuhiro Tsujikawa aa4ea8889c clang-format-3.9 2016-10-15 19:02:54 +09:00
Juan Francisco Cantero Hurtado 206d6fc062 Restore LTLIBINTL in src/Makefile.am 2016-09-29 01:02:06 +02:00