Commit Graph

12989 Commits

Author SHA1 Message Date
Maciej Wolny 69c33d0e18 Fix signedness related warnings 2016-10-20 20:27:55 +02:00
Maciej Wolny c6ad5bd36c Go back to using memcmp in libtransmission/net.c 2016-10-20 17:35:46 +02:00
Mike Gelfand 0390684bc4 Merge pull request #42 from wbx-github/master
uClibc-ng since 1.0.18 has sys/quota.h synced with GNU libc
2016-10-19 21:01:06 +03:00
Waldemar Brodkorb bae138ca22 uClibc-ng since 1.0.18 has sys/quota.h synced with GNU libc 2016-10-19 19:33:35 +02:00
Mike Gelfand eda26f7590 Make sure `tr_sha1` calls pass lengths as int
This fixes inability to authenticate with password-protected session, and
a few more issues it seems.
2016-10-18 00:05:03 +03:00
Maciej Wolny 3a1730495d Use strncmp instead of memcmp to avoid out-of-bounds reads 2016-10-05 16:19:31 +02:00
Mike Gelfand f9c0ce63b8 Remove useless path button text updates, this is handled elsewhere 2016-10-03 23:41:50 +03:00
Mike Gelfand f6a19f868a TRAC-6098: Rework trailing slash stripping (once more)
Using QFileInfo to strip trailing slash(es) is bad when input contains non-
native paths (i.e. Windows paths on non-Windows system and vice versa) as it
may mistakenly treat the path as relative and change it in unespected way.
2016-10-03 22:22:25 +03:00
Mike Gelfand 7d22c1efc0 Merge branch 'trac5348-misidentification-of-local-session' 2016-10-03 21:54:52 +03:00
Mike Gelfand 4b4797a220 Revert debugging code... 2016-10-03 21:54:21 +03:00
Mike Gelfand 687662d1f1 Merge branch 'trac5348-misidentification-of-local-session' 2016-10-03 21:33:58 +03:00
Mike Gelfand 981ef30ab4 Use session ID (if available) to check if session is local or not (Qt client) 2016-10-03 21:26:28 +03:00
Mike Gelfand 1ce80c1c20 Add GTK+ client's fr_CA, jbo, and zh_HK linguas to CMake configuration 2016-09-27 23:09:15 +03:00
Jordan Lee 65f498d48e in gtk+ client's LINGUAS file, add fr_CA, jbo, and zh_HK 2016-09-27 14:29:20 -05:00
Jordan Lee 35a3937576 update gtk+ client's translations from launchpad 2016-09-27 14:28:27 -05:00
Mike Gelfand fa5df2f1dd Merge branch 'trac5348-misidentification-of-local-session' 2016-09-27 21:36:38 +03:00
Mike Gelfand 17fb783c50 Add session-id.{c,h} to autoconf and Xcode builds 2016-09-27 21:36:01 +03:00
Mike Gelfand efba03695a Merge branch 'trac5348-misidentification-of-local-session' 2016-09-27 21:26:51 +03:00
Mike Gelfand 661e2b513d Return session ID as part of "session-get" response 2016-09-27 21:18:36 +03:00
Mike Gelfand ff73e65069 Handle "fields" argument in "session-get" RPC request
If "fields" array is present in arguments, only return session fields
specified. Otherwise return all the fields as before.
2016-09-27 21:18:32 +03:00
Mike Gelfand b82f6009dd Maintain lock file(s) corresponding to session ID 2016-09-27 20:53:10 +03:00
Mike Gelfand ca53e88add Merge pull request #34 from RobFog/donationURL
Update all instances of the donation link. Fixes #26.
2016-09-25 19:14:40 +03:00
Robert Vehse 6792a9ed98 Revert unintended whitespace changes. 2016-09-25 18:06:30 +02:00
Mike Gelfand 56a1934da1 Add libevent submodule (should hopefully fix Mac build) 2016-09-25 00:22:44 +03:00
Robert Vehse 13bae8179e Update all instances of the donation link. Fixes #26. 2016-09-23 04:36:41 +02:00
Mike Gelfand 26b0a041cc Factor out session ID into a standalone entity 2016-09-21 22:29:56 +03:00
Mike Gelfand 4c00df9463 Abort handshake if establishing DH shared secret fails
Fixes #27
2016-09-18 14:01:00 +03:00
Mike Gelfand eb8f5004e0 Merge pull request #24 from sebastianas/openssl_1.1
transmission: build against openssl 1.1.0
2016-09-07 01:10:16 +03:00
Mike Gelfand 8c8386a7f3 Fix coding style and building with !TR_LIGHTWEIGHT 2016-09-07 01:09:04 +03:00
Sebastian Andrzej Siewior f91cf5ad8c transmission: build against openssl 1.1.0
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
2016-09-06 00:11:17 +02:00
JohnClay 959517da0d Update README.md 2016-09-03 18:59:50 -04:00
Mike Gelfand 2248d3670f Get rid of $Id$ SVN keywords in source files 2016-09-02 23:10:15 +03:00
Mike Gelfand b2c5a9ce63 Don't search for SVN revision when calculating version 2016-09-02 22:45:03 +03:00
Mike Gelfand 95e12a3a0a Package README.md instead of README 2016-09-02 22:34:29 +03:00
Mike Gelfand 1b81bb7682 Replace SVN and SCM with VCS everywhere 2016-09-02 22:21:00 +03:00
Mike Gelfand 7e25410e5c Merge pull request #21 from transmission/fix-readme
Fix readme formatting
2016-09-02 01:37:29 +03:00
Mike Gelfand 24cdb31a0d Fix readme formatting to use proper markdown 2016-09-02 01:07:32 +03:00
Mike Gelfand 12ad456f50 Rename README to README.md 2016-09-02 01:04:13 +03:00
Jan Weiß 18ea26319d Set default for indentation to space for entire Xcode project.
This allows correct indentation handling out-of-the-box.
2016-05-15 18:44:31 +02:00
Jan Weiß 4a9a48853b Paths converted from NSString objects to C strings should be acquired using “-fileSystemRepresentation”.
The file system APIs on OS X have specific requirements concerning the Unicode normalization form.
2016-05-15 18:42:37 +02:00
Mike Gelfand e60e75fadc Reduce torrents model memory requirements (Qt client)
Keep torrents sorted by ID. This allows to remove ID to row/torrent mappings
(using binary search instead) and thus also reduce complexity a bit.
2016-04-24 07:56:41 +00:00
Mike Gelfand 682b11aac4 Bump minimum Qt version to 4.8
Earlier versions may continue to work, but we don't guarantee they will.
2016-04-24 07:41:06 +00:00
Mike Gelfand 076fd29098 #6071: Fix typo in comment 2016-04-23 16:21:39 +00:00
Mike Gelfand 0862099d0b #5921: Use libsystemd instead of libsystemd-daemon (original patches by Sandro Tosi and Mike Gilbert)
In systemd v209, released over two years ago, the various libsystemd-*
libraries (libsystemd-journal.so, libsystemd-login.so, libsystem-daemon.so,
libsystemd-id128.so) were merged into a single libsystemd.so library to
reduce code duplication and avoid cyclic dependencies.
2016-04-23 16:13:25 +00:00
Mike Gelfand 2b917de65b Refactor RPC requests code for proper queueing (patch by intelfx @ GH-10)
This refactoring is driven by the need to be able to do true queued RPC calls
(where each successive call uses the result of the previous).

Currently, such queueing of requests is done by assigning them special "magic"
tag numbers, which are then intercepted in one big switch() statement and acted
upon. This (aside from making code greatly unclear) effectively makes each such
queue a singleton, because state passing is restricted to global variables.

We refactor RpcClient to assign an unique tag to each remote call, and then
abstract all the call<->response matching with Qt's future/promise mechanism.

Finally, we introduce a "RPC request queue" class (RpcQueue) which is built on
top of QFutureWatcher and C++11's <functional> library. This class maintains
a queue of functions, where each function receives an RPC response, does
necessary processing, performs another call and finally returns its future.
2016-04-19 20:41:59 +00:00
Mike Gelfand 66285a525b Web UI: main() refactoring (patch by skybon @ GH-9)
Less jQuery, more Web API. Moved main() away from common.
2016-04-12 19:03:01 +00:00
Mike Gelfand e04add39ad Fork 3rd-party libraries on GitHub 2016-04-09 08:52:41 +00:00
Mike Gelfand 1cb17447dc Try getting SVN revision from Jenkins environment when using CMake (copy logic from update-version-h.sh) 2016-04-03 05:53:32 +00:00
Mike Gelfand caaca040bd Only include .msi-related CMake stuff when it makes sense 2016-04-02 20:01:59 +00:00
Mike Gelfand db1553b113 Add files necessary for .msi packages creation on Windows 2016-04-02 18:01:01 +00:00