summaryrefslogtreecommitdiff
path: root/test/RpcMethodTest.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fix various typosluzpaz2024-01-141-2/+2
| | | | Found via `codespell -q 3 -S "./deps,./ChangeLog.old,./LICENSE.OpenSSL,./doc/manual-src/pt,./doc/sphinx_themes/sphinx_rtd_theme/locale" -L ans,anull,clen,dependant,filetest,fo,hel,nd,orign,padd,parm,servent,tennant,worl,windows`
* Enable IndentPPDirectivesTatsuhiro Tsujikawa2018-06-091-3/+3
|
* clang-format-5.0Tatsuhiro Tsujikawa2017-11-231-6/+7
|
* clang-format-4.0Tatsuhiro Tsujikawa2017-05-191-4/+5
|
* clang-format-3.9Tatsuhiro Tsujikawa2016-10-151-25/+32
|
* Add bittorrent key to aria2.tellStopped statusTatsuhiro Tsujikawa2016-04-171-0/+29
|
* system.listNotifications RPC methodSonny Piers2016-04-081-0/+20
|
* Add following to aria2.tellStatus response key as reverse link for followedByTatsuhiro Tsujikawa2016-03-051-0/+7
|
* make clang-format using clang-format-3.6Tatsuhiro Tsujikawa2015-12-271-197/+202
|
* Add system.listMethods RPC methodTatsuhiro Tsujikawa2015-12-261-0/+21
| | | | | | | | system.listMethods just returns the available RPC method names. It can be executed without secret token, because it just returns the method names, and does not alter anything. See GH-437
* Use user-defined literal for k, m, and g (powers of 1024)Tatsuhiro Tsujikawa2015-06-211-10/+6
|
* Use user-defined literals for time unitsTatsuhiro Tsujikawa2015-06-211-1/+1
|
* Replace timer facility with chrono libTatsuhiro Tsujikawa2015-06-091-1/+1
|
* Remove request pre-authorization againNils Maier2014-07-221-8/+0
|
* Authorize RPC multicalls only once.Nils Maier2014-05-201-0/+8
| | | | | Cache the auth status afterwards and just assume the token still matches (within the same request, of course).
* Validate token using PBKDF2-HMAC-SHA1.Nils Maier2014-04-191-1/+1
| | | | | | | | This change should make token validation more resilient to: - timing attacks (constant time array compare) - brute-force/dictionary attacks (PBKDF2) Closes #220
* Remove ENABLE_MESSAGE_DIGEST, since we got the internal md, alwaysNils Maier2014-04-171-4/+0
|
* Implement new RPC authorization using --rpc-secret optionTatsuhiro Tsujikawa2014-02-021-0/+43
|
* Convert most 0/NULL pointers to nullptrNils Maier2013-08-201-1/+1
| | | | Courtesy of llvm cpp11-migrate 3.3
* Use std::unique_ptr for ValueBase object hierarchyTatsuhiro Tsujikawa2013-07-111-272/+317
|
* DownloadEngine: Use std::unique_ptr for eventPoll_Tatsuhiro Tsujikawa2013-07-061-1/+1
|
* BtRegistry: Use std::unique_ptr for BtObjectTatsuhiro Tsujikawa2013-07-061-4/+8
|
* DownloadEngine: Use std::unique_ptr for RequestGroupManTatsuhiro Tsujikawa2013-07-061-28/+32
|
* Remove vbegin and vend in favor of std::begin and std::endTatsuhiro Tsujikawa2013-06-241-3/+2
|
* DownloadContext::attrs_ now holds std::unique_ptrTatsuhiro Tsujikawa2013-06-231-1/+1
| | | | DownloadContext::getAttribute() returns a raw pointer.
* Require -std=c++11 and use std::shared_ptr instead of SharedHandleTatsuhiro Tsujikawa2013-06-221-73/+73
|
* Make getOption RPC method return option for stopped downloadsTatsuhiro Tsujikawa2013-05-281-0/+37
|
* Use BtFileMode for TorrentAttribute::modeTatsuhiro Tsujikawa2013-05-151-1/+1
|
* Implement IndexedList::iteratorTatsuhiro Tsujikawa2013-03-031-1/+1
| | | | | It is dangerous to expose internal iterator to the outside, which is easily misused.
* Faster deletion of RequestGroup and DownloadResult listsTatsuhiro Tsujikawa2012-12-191-19/+19
|
* Use 64 bits random bytes as GIDTatsuhiro Tsujikawa2012-12-161-49/+88
| | | | | | | | | | This change replaces the current 64 bit sequential GID with 64 bits random bytes GID in an attempt to support persistent GID. Internally, the GID is stored as uint64_t. For human representation and RPC interface, GID is represented as 16 bytes hex string. For console readout, 16 bytes are too long, so it is abbreviated to first 6 bytes. When querying GID in RPC calls, user can speicfy the prefix of GID as long as the prefix is shared by more than 1 GID entries.
* Added --rpc-save-upload-metadata optionTatsuhiro Tsujikawa2012-10-161-3/+26
| | | | | | | | | | If true is given, which is default, save the uploaded torrent or metalink metadata in the directory specified by --dir option. The filename consists of SHA1-hash hex string of metadata plus extension. For torrent, the extension is '.torrent'. For metalink, it is '.meta4'. If false is given to this option, the downloads added by aria2.addTorrent or aria2.addMetalink will not be saved by --save-session option.
* Removed trailing spacesTatsuhiro Tsujikawa2012-10-011-11/+11
|
* Rewritten FeatureConfig into set of functionsTatsuhiro Tsujikawa2012-09-221-3/+1
|
* Ignore unacceptable options in RPC request instead of throwing error.Tatsuhiro Tsujikawa2012-05-171-2/+4
| | | | | This change allows RPC client to send same options for the different type of downloads.
* Added checkRequiredInteger() to check integer param is in valid range.Tatsuhiro Tsujikawa2012-02-261-0/+6
| | | | | Ensure that fileIndex in aria2.changeUri RPC method is greater than or equal to 1.
* Only accepts 32 bit integer values from int and i4 elements in XML-RPC.Tatsuhiro Tsujikawa2012-02-261-0/+30
| | | | | Fixed overflow in AbstractPaginationRpcMethod::getPaginationRange(). Fixes bug#3494165
* Use int instead of unsigned int where unsigned int is not needed.Tatsuhiro Tsujikawa2011-12-091-5/+5
|
* Changed interface of BtRegistry.Tatsuhiro Tsujikawa2011-11-011-3/+3
| | | | BtRegistry now uses SharedHandle<BtObject> instead of BtObject.
* Don't copy Option in RequestGroup ctor.Tatsuhiro Tsujikawa2011-10-251-4/+4
| | | | Copy on receive is not a practice in aria2 source code.
* Fixed unit testTatsuhiro Tsujikawa2011-10-251-1/+1
|
* Rewritten Option. Introduced Pref.Tatsuhiro Tsujikawa2011-10-211-14/+14
| | | | | Now preference key is Pref instead of just string. It has Option ID. Now option lookup and setting takes O(1) using Pref object.
* Added --piece-length option.Tatsuhiro Tsujikawa2011-09-271-1/+1
| | | | | | | This option sets a piece length for HTTP/FTP downloads. This is the boundary when aria2 splits a file. All splits occur at multiple of this length. This option will be ignored in BitTorrent downloads. It will be also ignored if Metalink file contains piece hashes.
* Removed asString, asList, ... and use downcast<T> instead.Tatsuhiro Tsujikawa2011-09-261-63/+63
|
* Allowed missing params in system.multicall RPC method.Tatsuhiro Tsujikawa2011-06-151-4/+1
|
* Fixed compile error and unit test error without SSL library.Tatsuhiro Tsujikawa2011-03-171-1/+5
|
* Replaced gid_t with a2_gid_t cause gid_t is commonly used as group ID.Tatsuhiro Tsujikawa2011-03-171-2/+2
|
* Use .meta4 instead of .metalink as suffix when saving metalink XMLTatsuhiro Tsujikawa2011-03-161-4/+4
| | | | uploaded by RPC.
* Renamed classes in abstract layer of RPC service from XmlRpc* to Rpc*.Tatsuhiro Tsujikawa2011-03-141-0/+1145
Now JSON-RPC is available by default regardless of XML library. XML-RPC becomes available when XML library is available.