summaryrefslogtreecommitdiff
path: root/src/Makefile.am
Commit message (Collapse)AuthorAgeFilesLines
* add uTP support for outbound connectionsHanjie Wu2023-12-161-0/+18
|
* Remove linux getrandom and use C++ stdlib insteadTatsuhiro Tsujikawa2018-11-251-4/+0
|
* Remove unused Android partsFredrik Fornwall2017-03-181-4/+0
| | | | These parts where unused after merging https://github.com/aria2/aria2/pull/736
* configure: Use pkg-config to find libs whenever possibleMichał Górny2016-11-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Restore LTLIBINTL in src/Makefile.amJuan Francisco Cantero Hurtado2016-09-291-1/+2
|
* Add missing libssl_compat.h to SRCSTatsuhiro Tsujikawa2016-09-171-1/+2
|
* Remove custom ftruncate64 for AndroidFredrik Fornwall2016-09-031-14/+0
| | | | | | | | | The latest NDK versions support ftruncate64, so building a local copy of ftruncate64 is no longer needed. Also, the arm and x86 builds of ftruncate64 failed when targetting API level 21 or higher, as they include <linux/err.h> which are not present starting from API level 21.
* Link external libraries to libaria2 with --enable-libaria2Tatsuhiro Tsujikawa2016-07-171-2/+9
|
* Merge branch 'master' into random-webseedingTatsuhiro Tsujikawa2016-03-261-5/+49
|\
| * Don't add C++11 switch flags to CXXFLAGSTatsuhiro Tsujikawa2016-01-301-1/+1
| |
| * Add --enable-werror option to configure to enable warning flagsTatsuhiro Tsujikawa2016-01-221-1/+1
| |
| * Don't modify user variables (e.g., CFLAGS, LIBS, etc)Tatsuhiro Tsujikawa2016-01-221-4/+46
| |
| * Evict timed out pooled socket periodicallyTatsuhiro Tsujikawa2015-11-111-1/+2
| | | | | | | | | | | | | | | | | | | | Previously we only scanned pool socket to check they are timed out when we pooled another socket. This means that pooled socket is not closed long time (stays in CLOSE-WAIT state) if we don't pool any more socket. In this commit, we now check pooled socket periodically (30 seconds) to avoid the sockets hanging in CLOSE-WAIT state long time. See GH-477
| * Don't write control file if content is not changed from previous oneTatsuhiro Tsujikawa2015-11-101-1/+2
| | | | | | | | | | | | | | | | | | | | This is desirable so that we don't have to wake up disk if control file is not changed, and it is not have to be written again. We use the same method (SHA1 hash) to check the content is the same. The limitation is the hash is stored in memory, so we have to write the first time in each session. See GH-382
* | Merge branch 'master' into random-webseedingTatsuhiro Tsujikawa2015-10-031-10/+10
|\|
| * Merge branch 'mingw' of https://github.com/elieux/aria2 into elieux-mingwTatsuhiro Tsujikawa2015-07-191-2/+2
| |\
| | * Fix linking with libintl on MinGW-w64David Macek2015-04-031-2/+2
| | |
| * | Remove clock_gettime detection and its replacementsTatsuhiro Tsujikawa2015-06-091-8/+0
| | |
| * | sftp: basic download worksTatsuhiro Tsujikawa2015-05-121-1/+5
| | | | | | | | | | | | | | | | | | This commits implements basic downloading feature for sftp URI. This includes segmented downloads, and connection (sftp session) pooling. Download via HTTP proxy has not been implemented yet.
| * | Add basic ssh/sftp code to SocketCore and introduce SSHSessionTatsuhiro Tsujikawa2015-05-101-0/+4
| |/ | | | | | | | | | | | | | | | | | | We use libssh2 to implement sftp feature. SSHSession is closely designed to TLSSession, but it differs in several aspects. In this code, we only implements read part of sftp, since aria2 won't offer uploading feature. Adding SSH/sftp to SocketCore is a bit bloat. But by doing this we can reuse DownloadCommand, without mostly no modification. We can just create SSHDownloadCommand by inheriting it, just like existing ftp.
* / Add --stream-piece-selector=randomTatsuhiro Tsujikawa2015-02-141-0/+1
|/
* Revise getRandom facilitiesNils Maier2015-01-201-0/+4
| | | | | | | | | | | | | | Use one of the following to provide random bytes: - Windows CryptGenRandom - Linux getrandom (syscall interface to urandom, without nasty corner cases such as file descriptor exhaustion or re-linked /dev/urandom) - std::device_random (C++ random device, which usually will be urandom) This also equalizes util::getRandom and SimpleRandomizer (the former will now use the latter) instead of having essentially two different PRNG interfaces with potentially different quality. Closes GH-320
* Support Adler32 checksumTatsuhiro Tsujikawa2014-09-131-1/+2
| | | | | Adler32 checksum is available for --checksum option and hash element in Metalink files. Currently, we use Adler32 implementation in Zlib.
* Delay auth failures instead of PBKDF2Nils Maier2014-07-221-0/+1
| | | | Closes GH-256
* Drop WinMessageDigestImpl.Nils Maier2014-06-241-4/+0
| | | | | | | | | | The algorithms the `CryptProv` on Windows supports does not currently include SHA-224, so there is a "dark spot" in this implementation. Also on Win XP < SP3, most of the SHA-2 family is not actually supported. All other implementation provide support for MD5, SHA-1 and all of the SHA-2 family, hence drop the incomplete WinMessageDigest implementation in favor of any other supported implementation (at least the internal implementation is always available at compile-time).
* Fix big endianess support in InternalMessageDigest and PBKDF2Nils Maier2014-06-241-2/+2
| | | | | | | - Replace sha1/md5 implementation by ones from https://github.com/nmaier/crypto - Add endianess functionality fro https://github.com/nmaier/crypto Closes GH-239
* Fix use-after-free on exit with multi-file torrent download + DHTTatsuhiro Tsujikawa2014-06-081-1/+2
| | | | | | | | | | | DefaultPieceStorage may be referenced by one of DHT task (e.g., DHTPeerLookupTask), after RequestGroup was deleted, and even after RequestGroupMan was deleted. DefaultPieceStorage has a reference to MultiDiskAdaptor which calls RequestGroupMan object on destruction. So when DHT task is destroyed, DefaultPieceStorage is destroyed, which in turn destroys MultiDiskAdaptor. DHT task is destroyed after RequestGroupMan was destroyed, MultiDiskAdaptor will use now freed RequestGroupMan object, this is use-after-free.
* Sort and cleanup src/Makefile.amNils Maier2014-05-271-384/+406
|
* Add util::security (compare, HMAC, PBKDF2)Nils Maier2014-04-191-1/+2
| | | | See #220
* Remove ENABLE_MESSAGE_DIGEST, since we got the internal md, alwaysNils Maier2014-04-171-15/+12
|
* Fix broken EXTRA_DISTNils Maier2013-12-091-1/+0
|
* Use some colors in progress reports (where available)Nils Maier2013-11-211-0/+1
|
* Refactor DownloadHandlerFactoryTatsuhiro Tsujikawa2013-11-101-1/+1
|
* Fix missing sha1.h and md5.h in Makefile.amTatsuhiro Tsujikawa2013-10-201-1/+1
|
* Implement WinTLSNils Maier2013-09-301-0/+5
|
* Provide internal ARC4 implementationNils Maier2013-09-241-0/+4
| | | | | | Now you can build bittorrent support without without external libraries, meaning you can skip libnettle, libgmp, libgcrypt, GnuTLS and OpenSSL on OSX (for now).
* Internal implementation of DHKeyExchangeNils Maier2013-09-241-0/+4
| | | | | | | | | | Reusing a bignum (well, unsigned very-long) implementation I had lying around for years and just cleaned up a bit and brought to C++11 land. It might not be the most performant implementation, but it shoud be fast enough for our purposes and will go a long way of removing gcrypt, nettle, gmp, openssl dependencies when using AppleTLS and WinTLS (upcoming).
* Add internal md5 and sha1 message digestsNils Maier2013-09-201-0/+4
|
* One MessageDigestImpl.h to rule them all.Nils Maier2013-09-201-5/+5
|
* WinTLS: Implement messsage digest using the Cryptography ProviderNils Maier2013-09-201-0/+4
|
* Fix link error with Android NDK r9Tatsuhiro Tsujikawa2013-09-181-0/+4
| | | | | | | | Since Android ndk r9, __set_errno is deprecated. It is now defined as inline function in errno.h. The syscall assembly calls __set_errno, but since libc.so does not export it, the link fails. To workaround this, replace all occurrences of __set_errno with a2_set_errno and define it as normal C function.
* Implement a simple resource lock (threading)Nils Maier2013-08-181-1/+2
| | | | | In this initial implementation Locks are no-ops on platforms other than Windows.
* Switch CA_BUNDLE to AC_DEFINENils Maier2013-08-161-1/+1
|
* Wrap Command object in std::unique_ptrTatsuhiro Tsujikawa2013-06-231-1/+0
|
* Remove Triplet, use std::tuple insteadTatsuhiro Tsujikawa2013-06-221-1/+0
|
* Require -std=c++11 and use std::shared_ptr instead of SharedHandleTatsuhiro Tsujikawa2013-06-221-1/+0
|
* Introduce IOFile abstract class to refactor BufferedFile and GZipFileTatsuhiro Tsujikawa2013-05-231-0/+1
| | | | | | IOFile provides the same interface of old BufferedFile. It provides extension points as pure virtual functions. Those functions are implemented by 2 concrete subclasses: BufferedFile and GZipFile.
* Fix compile error without bittorrent supportTatsuhiro Tsujikawa2013-05-231-2/+2
|
* Add download event callback API and its exampleTatsuhiro Tsujikawa2013-05-111-1/+2
|
* Install libaria2.pc only when libaria2 is enabledTatsuhiro Tsujikawa2013-05-101-1/+1
|