1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-29 02:56:11 +00:00
Commit graph

157 commits

Author SHA1 Message Date
Charles Kerr
cdd779bb2a (trunk libT) fix long-standing wart of a few public API calls returning strdup'ed char*, rather than a const char* like all the others 2009-04-16 19:14:37 +00:00
Erick Turnquist
2719372bc6 (trunk) #1497 Options to listen on specific network sockets 2009-04-15 21:05:58 +00:00
Charles Kerr
f00c152315 (trunk libT) better filtering of maliciously-crafted URLs when serving web interface files 2009-04-10 15:09:31 +00:00
Charles Kerr
6bcce280dc (trunk) back out the avahi patch 2009-04-05 17:34:34 +00:00
Charles Kerr
3ef8240b80 (trunk) If avahi's zeroconf implementation is available, use it to advertise our web ui 2009-04-05 15:49:03 +00:00
Charles Kerr
f4557fab8e (trunk) use tr_bencDict{Find,Add}Bool() where appropriate 2009-03-29 23:05:32 +00:00
Charles Kerr
0a6ab3014c (trunk libT) #1944: Web Client 301 redirect violates w3c.org specification 2009-03-24 17:11:53 +00:00
Erick Turnquist
44ea61bced (trunk libT) #1276 - hash rpc password with sha1 2009-03-24 01:39:06 +00:00
Mitchell Livingston
50c9385ceb #1276 encrypt the password to access web client interface using SHA-2 2009-03-17 21:50:20 +00:00
Charles Kerr
06080f35b3 (trunk libT) fix oops 2009-02-18 22:37:27 +00:00
Charles Kerr
f9e400a22d (trunk libT) a little more work on #1829 2009-02-18 21:27:44 +00:00
Charles Kerr
27cb7caf55 (trunk libT) In RPC, add general support for nonblocking methods, and specific support for adding a torrent via its URL and fetching it via curl without blocking. 2009-01-18 15:24:26 +00:00
Charles Kerr
db58b89f6e (trunk libT) Clean up RPC server initialization (wereHamster) 2009-01-13 16:35:06 +00:00
Charles Kerr
fe816d8135 (trunk) update the GPL code's copyright dates 2009-01-10 23:09:07 +00:00
Charles Kerr
6bec82d0a6 (trunk libT) have tr_bencSaveAsJSON() use an evbuffer 2008-12-30 22:07:39 +00:00
Charles Kerr
20e1222078 (trunk libT) patch from wereHamster to recycle the zlib deflate stream s.t. we don't have to keep reallocating it 2008-12-30 20:40:48 +00:00
Charles Kerr
ad69a937ef (trunk libT) have a pool of reusable evbuffers 2008-12-30 20:32:00 +00:00
Charles Kerr
460f862dbc (trunk libT) add yet another ACL diagnostic message 2008-12-23 21:34:07 +00:00
Charles Kerr
32ebb868e7 (trunk libT) one more ACL warning 2008-12-21 19:35:38 +00:00
Charles Kerr
d39354c306 (trunk libT) add html and console hints about whitelist status & configuration 2008-12-21 19:23:41 +00:00
Charles Kerr
56663b860b (trunk libT) add more startup debug messages in the RPC server 2008-12-16 16:13:21 +00:00
Charles Kerr
9594112d27 updated email address 2008-12-16 00:20:44 +00:00
Charles Kerr
788b397ecc (trunk libT) more semantic cleanup: tr_handle->tr_session, int->tr_bool, int->tr_port 2008-12-14 11:21:11 +00:00
Charles Kerr
f1419a95c0 (trunk libT) semantic cleanup: int -> tr_bool 2008-12-13 23:39:12 +00:00
Charles Kerr
6b0d98a695 (trunk) #1559: Simplify tr_sessionInitFull 2008-12-13 23:17:36 +00:00
Charles Kerr
a14621c363 (libT) janitorial: use the tr_port type whenever we have a `port' as a function argument or as a field in a struct. 2008-12-01 20:51:01 +00:00
Charles Kerr
d12af295c1 use tr_bool instead of C bitfields. (http://blogs.msdn.com/oldnewthing/archive/2008/11/26/9143050.aspx) 2008-11-28 22:11:41 +00:00
Charles Kerr
ed95969380 (libT) #1480: RPC Server Deflated response 2008-11-19 16:12:00 +00:00
Charles Kerr
a4472fc529 #1443: check for zlib fails when providing a specific path 2008-11-09 15:43:31 +00:00
Charles Kerr
80f7b7cfef (daemon) when serving deflated output, strip off the first 2 and last 4 bytes from deflate()'s output, for reasons described at http://carsten.codimi.de/gzip.yaws/ 2008-11-01 22:09:16 +00:00
Charles Kerr
06939cafa6 (libT) low-hanging fruit discovered from softwareelves' shark profile. 2008-10-26 15:39:04 +00:00
Charles Kerr
7f9d71e6ff silence a couple of minor warnings from sparse/cgcc 2008-10-21 03:57:56 +00:00
Charles Kerr
ef5bc3f150 (libT) more win32 work copied from spry's code:
(1) add #define for {read,write,strncasecmp} -> {_read,_write,_strnicmp}
(2) fix a couple more variadic macros that didn't get fixed in the last commit
(3) use evutil_strtoll() instead of strtoll()
2008-10-14 01:00:15 +00:00
Charles Kerr
88ce8a5c44 more changes inspired by spry's `winport' code: for portability, use the standard __VA_ARGS__ macro for variadic macros instead of the CPP extensions. 2008-10-13 22:45:05 +00:00
Charles Kerr
cc8bed02c6 (rpc) fix small bug introduced in the last commit. 2008-10-08 16:31:17 +00:00
Charles Kerr
cceb70b182 (rpc) extra safeguards in r6867 2008-10-08 13:39:44 +00:00
Charles Kerr
52a2527963 (rpc) better fix for #1330 2008-10-08 13:33:19 +00:00
Charles Kerr
8ced51a9e4 (rpc) if libt can't find the Clutch files, give a helpful 404 message for end-users and binary packagers about how to use CLUTCH_HOME and PACKAGE_DATA_DIR. 2008-10-07 01:25:29 +00:00
Charles Kerr
7fd0ff7fb2 (rpc) slightly better errno handling 2008-10-06 16:33:33 +00:00
Charles Kerr
ebee18380e slightly more efficient serving of static files & rpc responses 2008-10-06 13:36:06 +00:00
Charles Kerr
cc1302c9c8 (rpc) #1319: possible fix for the deflate bug 2008-10-03 23:20:44 +00:00
Charles Kerr
77d3e0613d (rpc) #1319 as pointed out by spry, deflate()'s output can sometimes be larger than the native form. In these cases, use the smaller of the two sources. 2008-10-03 20:46:58 +00:00
Charles Kerr
4f5a6de98d (rpc) more robust `deflate' wrangling, possibly fixing ticket #1319 2008-10-03 17:38:14 +00:00
Charles Kerr
f3d75b3b57 (rpc) fix rpc server memory leak that snuck in over the past few days' switch from shttpd to evhttp 2008-10-02 16:50:05 +00:00
Charles Kerr
d7a5cf0828 (rpc) fix minor path resolution glitch when serving up clutch files 2008-10-02 16:24:44 +00:00
Charles Kerr
6cba9305ae add a separate flag for enabling/disabling the rpc address whitelist 2008-10-01 22:59:29 +00:00
Charles Kerr
bddf34d7a8 #1309: Web/RPC interface ACL ignored 2008-10-01 20:23:57 +00:00
Charles Kerr
585a9783ad add support for compressing the content served by the rpc server -- rpc responses and clutch html/css/js files 2008-10-01 15:53:56 +00:00
Charles Kerr
859af09f37 (libT) maybe fix the evhttp issues that softwareelves reported 2008-10-01 04:26:38 +00:00
Charles Kerr
f6a770f1db pass 0.0.0.0 in as the rpc server address 2008-09-30 18:31:04 +00:00
Charles Kerr
1c20c64062 send NULL as the address to evhttp_bind_socket() 2008-09-30 16:18:44 +00:00
Charles Kerr
c55a20b074 (libT) d'oh, left out an important line last night while testing the rpc server w/softwareelves 2008-09-30 16:04:41 +00:00
Charles Kerr
86b6e00321 (libT) make sure to init the rpc server with the correct event base. 2008-09-29 04:26:52 +00:00
Charles Kerr
713b99d64b add some debugging messages for the RPC server 2008-09-29 03:02:27 +00:00
Charles Kerr
b8cff462a7 (libT) uncrustify 2008-09-26 15:40:24 +00:00
Charles Kerr
8903960174 a little more cleanup of the rpc server stuff. 2008-09-26 04:41:13 +00:00
Charles Kerr
4907ad1d54 (libT) more rpc-server cleanup 2008-09-26 00:58:06 +00:00
Charles Kerr
4c34b2bc89 rpc-server cleanups. add true wildmat control. break the Mac build a little harder. 2008-09-25 18:48:09 +00:00
Charles Kerr
bd5a2ae6b8 (libT) experimental code to serve clutch/rpc via evhttpd 2008-09-25 05:03:39 +00:00
Charles Kerr
cc89872dd4 run libT, cli, daemon, gtk through the source-code formatter "uncrustify" as promised/threatened 2008-09-23 19:11:04 +00:00
Mukund Sivaraman
5ea5613c0f (win32) Rename rpc.[ch] to rpcimpl.[ch] 2008-09-05 14:31:58 +00:00
Charles Kerr
712df8f761 #1209: shttpd crash when setting port to one already in use 2008-09-03 19:59:09 +00:00
Charles Kerr
dcaf1f16ef (shttpd) replace VERSION with SHTTPD_VERSION.
(shttpd) make shttpd_edit_passwords() a public function for now to fix the build.
2008-08-25 20:32:26 +00:00
Charles Kerr
6cf752b33d #1222: web access authentication text 2008-08-22 23:04:16 +00:00
Charles Kerr
58881d45be more metainfo/bencode cleanup 2008-08-21 16:12:17 +00:00
Mukund Sivaraman
87513aa8f8 Add UTF-8 charset to Content-Type HTTP headers 2008-08-17 21:16:22 +00:00
Charles Kerr
24362e1b94 (libT) fix a couple of compiler warnings from gcc -Wmissing-prototypes -Wdeclaration-after-statement 2008-08-15 20:28:43 +00:00
Charles Kerr
7b8b26bcbb fix shttpd issue reported by Gimp_ 2008-08-15 19:45:46 +00:00
Charles Kerr
b068dc07a6 #1129 alternate fix: / should redirect to, not replace, /transmission/web 2008-08-06 00:24:05 +00:00
Charles Kerr
427e714060 1129: You must add "/transmission/web/" to your IP to view web interface 2008-08-05 16:41:09 +00:00
Charles Kerr
9650fcc0e2 (rpc) serve the clutch static files faster 2008-07-17 14:45:31 +00:00
Charles Kerr
6ffe3bcec5 (rpc) possible fix for the new breakage caused by the shttpd upgrade in r6349 2008-07-17 04:27:03 +00:00
Charles Kerr
2281c39c1f (third-party) upgrade shttpd from 1.39 to the latest, 1.41 2008-07-16 23:55:49 +00:00
Charles Kerr
d26c3af13d (rpc) fix minor memory leak in the RPC server 2008-07-16 19:36:46 +00:00
Charles Kerr
1a1f195216 (rpc) better handling of multiple concurrent RPC connections 2008-07-16 17:47:20 +00:00
Charles Kerr
cb82d4ad1c (rpc) fix possible password authentication error reported by kman 2008-07-15 20:39:50 +00:00
Charles Kerr
c692dff9d5 (gtk) #1088: when the gtk+ client is serving Clutch, torrents added via Clutch aren't shown in gtk+ client 2008-07-15 19:25:46 +00:00
Charles Kerr
2f239319b0 add a portability wrapper ``tr_snprintf()'' around snprintf() 2008-07-15 17:16:57 +00:00
Charles Kerr
4813647346 #1084: Make web' and clutch' synonymous in the backend 2008-07-14 16:00:20 +00:00
Charles Kerr
d5335b710b Update NEWS file to say the Clutch rewrite's been folded into Transmission. 2008-07-11 17:09:53 +00:00
Charles Kerr
b37a2cfa23 (1) add clutch to the tarball.
(2) on autoconf-based installs, install the clutch files in $(datadir)/transmission/web
(3) new function tr_getClutchDir().  Default implementation follows the XDG spec.
2008-07-11 04:07:14 +00:00
Charles Kerr
51535b4bf9 (rpc) uploading files via an http form w/file inputs works now. 2008-07-01 02:33:31 +00:00
Charles Kerr
aae66cc073 (rpc) get torrent uploads partially working. 2008-06-30 21:11:53 +00:00
Charles Kerr
26261e3bde (rpc) fix crash when quickly toggling rpc on/off reported by John_Clay 2008-06-25 11:34:35 +00:00
Charles Kerr
b1cc67ce2b when getting 5xx errors from a tracker, keep increasing the intervals between retries, instead of hammering the tracker at constant intervals. thanks to mape for this suggestion. 2008-06-24 21:39:07 +00:00
Charles Kerr
509dbaae3d senseless RPC changes 2008-06-18 22:01:15 +00:00
Charles Kerr
d2459fa2af fix ACL parsing error introduced by the shttpd auth code change. 2008-06-11 15:17:59 +00:00
Charles Kerr
13424ed977 (libT) add NULL pointer checks to tr_torrentStart(), tr_torrentStop() 2008-06-10 19:25:18 +00:00
Charles Kerr
cd314c1af8 (libT) poll the RPC request queue more frequently if there have been recent requests. 2008-06-10 17:13:56 +00:00
Charles Kerr
adbbf82302 (libT) make tr_torrentAmountFinished() look at the same pieces as tr_torrentAvailability() for consistency's sake as requested by BentMyWookie 2008-06-09 23:58:31 +00:00
Charles Kerr
0fced3a431 #1007: check_auth space delimiter bug 2008-06-09 23:28:14 +00:00
Mitchell Livingston
1c00343a02 fix minor memory leak when setting the rpc acl 2008-06-08 04:23:56 +00:00
Charles Kerr
c0e5efbc03 fix some stub code 2008-06-05 17:32:36 +00:00
Charles Kerr
ab17f553c4 get RPC password protections working in libT and the gtk+ client. mac, daemon, and cli need to be synced. 2008-06-05 16:23:03 +00:00
Charles Kerr
4d29a29003 (rpc server) fix ACL error reported by pea_ 2008-06-05 04:02:46 +00:00
Charles Kerr
32f71e1725 (libT RPC server): poll more frequently for new commands after we've received the first one. 2008-06-05 02:07:17 +00:00
Charles Kerr
34d5433769 (gtk) more work on the RPC preferences tab: the ACL editor works now & is wired up... 2008-06-04 19:46:37 +00:00
Charles Kerr
c724a73fb4 RPC ACL: (1) add a new call for testing ACLs (2) add wildcard notation support (3) add regression tests for the ACL tester and wildcard handler 2008-06-04 17:14:58 +00:00
Charles Kerr
1dd2abc711 fix the error message leak reported by BentMyWookie in the new ACL code 2008-06-04 06:36:50 +00:00
Charles Kerr
6ec33f5e23 (libT) handle a NULL third argument to tr_sessionSetRPCACL() 2008-06-04 04:49:45 +00:00