Commit Graph
51 Commits
Author SHA1 Message Date
Adrien Béraud 6e01255bc0 crypto: add Certificate::toString 2015-02-26 10:36:14 -05:00
Adrien Béraud 13902b0f19 run filter after decryption & security verifications 2015-02-24 11:53:36 -05:00
Adrien Béraud 51a4c176aa DhtMessage : introduce Service and ServiceFilter 2015-02-23 13:54:49 -05:00
Adrien Béraud a5f82063c0 add missing const 2015-02-22 21:08:39 -05:00
Adrien Béraud d740af1f33 reduce request timeout to 3 seconds 2015-02-22 21:04:46 -05:00
Adrien Béraud cb2d14e905 add DhtMessage type for node-to-node communication 2015-02-22 21:04:46 -05:00
Adrien Béraud 24bace1563 replace unique_lock by lock_guard where possible 2015-02-21 21:46:01 -05:00
Adrien Béraud 29f5d8c68e Use CryptoException for crypto errors 2015-02-16 14:29:32 -05:00
Adrien Béraud 72fe4c376f Fix GnuTLS early deinit 2015-02-16 14:28:26 -05:00
Adrien Béraud 2c8a9c25ed crypto: add Certificate::getId(), Certificate::getUID() 2015-02-12 14:50:50 -05:00
Adrien Béraud f6d81a5797 generate 4096 bits RSA keypairs by default 2015-01-25 03:09:57 -05:00
Adrien Béraud 504935cacd add missing header 2015-01-24 00:13:44 -05:00
Adrien Béraud 129fded029 allow access to privatekey GnuTLS pointers 2015-01-23 17:10:18 -05:00
Adrien Béraud 6003770d6a zero initialize sockaddr fields 2015-01-19 10:30:14 -05:00
Adrien Béraud 3c30718c59 RequestStatus for get/sync 2015-01-12 23:33:48 -05:00
Adrien Béraud 6ee327a3a4 fix compilation issues with xcode 2015-01-07 17:50:58 -05:00
Adrien Béraud f6b3c263b2 fix clang compilation and warnings 2015-01-07 14:29:53 -05:00
Adrien Béraud 31bd66b4c1 avoid gcc warning 2014-12-30 15:31:11 -05:00
Adrien Béraud 7f1de35490 log correct listening/announcement status 2014-12-30 15:30:32 -05:00
Adrien Béraud 33542e932a use std::chrono for time tracking 2014-12-24 01:13:43 -05:00
Adrien Béraud 24ed251517 Use constexpr for integer constants 2014-12-17 11:46:16 -05:00
Adrien Béraud 73d9b692ee allow to cancel listen through dhtrunner 2014-12-15 16:34:45 -05:00
Adrien Béraud 726e651572 listeners: also listen for local storage changes 2014-12-15 14:35:59 -05:00
Adrien Béraud 2f2177e957 runner: use a queue to process operations 2014-12-11 16:46:29 -05:00
Adrien Béraud 07d51ae155 reduce search timeout 2014-12-11 01:25:37 -05:00
Adrien Béraud 6e12193f7f fix put callback 2014-12-09 19:00:53 -05:00
Adrien Béraud c780c3d14a dhtrunner: add cancelPut 2014-12-07 18:19:19 -05:00
Adrien Béraud d436afccb5 infohash: fill with 0 when provided data is not long enough 2014-12-07 18:18:32 -05:00
Adrien Béraud 1daff73b34 node: make a proper CLI 2014-12-07 16:25:17 -05:00
Adrien Béraud 6c9f93df53 securedht: make parent class Dht public 2014-12-07 16:24:02 -05:00
Adrien Béraud 21039927af reduce request timeout times to 6 seconds 2014-12-06 23:37:38 -05:00
Adrien Béraud e0794b9a87 manage multiple simultaneous local gets 2014-12-06 19:52:46 -05:00
Adrien Béraud 79ef324cd3 avoid duplicating hard-coded constants 2014-12-06 14:22:54 -05:00
Adrien Béraud 277a9312e2 listeners: init with local values 2014-12-05 16:06:18 -05:00
Adrien Béraud 09cfd86a09 crypto: allow to set generated RSA key size 2014-12-05 11:28:16 -05:00
Adrien Béraud 9afbb8445f fix edition of signed data 2014-12-05 00:17:51 -05:00
Adrien Béraud 6458a9c589 crypto: allow to encrypt more than RSA block size
TODO: implement AES ecryption
2014-12-05 00:12:57 -05:00
Adrien Béraud 3636b4883d fix get timeout 2014-12-05 00:10:58 -05:00
Adrien Béraud a2bf87e1ea add ID value filter 2014-12-05 00:04:07 -05:00
Adrien Béraud 95c3b0baab add node ID with some error messages 2014-12-03 15:38:14 -05:00
Adrien Béraud 567ce11edb fix Windows MinGW build 2014-11-26 17:26:54 -05:00
Adrien Béraud 284dea6755 listener fixes 2014-11-26 12:21:58 -05:00
Adrien Béraud 77371297fe first listener implementation 2014-11-25 17:23:35 -05:00
Adrien Béraud 93fa3ada57 fix Android build 2014-11-24 15:11:08 -05:00
Adrien Béraud adaf1e77d3 fix warning 2014-11-21 00:10:39 -05:00
Adrien Béraud 7112e2e376 rename to opendht 2014-11-20 23:52:47 -05:00
Adrien Béraud 5c81eac843 crypto: add missing header 2014-11-20 23:52:47 -05:00
Philippe Groarke 3a67624b99 Fix OS X build. 2014-11-20 16:54:51 -05:00
Adrien Béraud e60146f665 fix more warnings 2014-11-20 16:31:22 -05:00
Adrien Béraud 264962a9dd crypto: make cert accessible for now 2014-11-20 15:59:16 -05:00