Commit Graph
187 Commits
Author SHA1 Message Date
Adrien Béraud 461dfb29f3 dht: expire search with only candidates 2015-09-01 18:10:30 +02:00
Adrien Beraud 6e6882ca7a dht: cleanup 2015-09-01 18:10:00 +02:00
Adrien Beraud 0ea48ed1de dht: remove custom memmem 2015-09-01 17:42:07 +02:00
Adrien Béraud 2e38a307f9 log: unify format 2015-09-01 17:42:07 +02:00
Adrien Béraud 69c047e380 dhtrunner: enable back IPv6 2015-09-01 16:47:02 +02:00
Adrien Béraud 4096e7ff03 dht: bootstrap local id on first connection 2015-09-01 16:46:42 +02:00
Adrien Béraud 98908f7284 dht: add version to UA 2015-09-01 16:44:21 +02:00
Adrien Béraud f3eb11270d rng: static initialisation of hasRdrand() 2015-08-24 16:38:40 +02:00
Adrien Béraud ac08beb582 dht: search own id 2015-08-24 16:38:40 +02:00
Adrien Béraud 40f7399d48 value: encypted value is not signed (until decrypted) 2015-08-23 17:36:24 +02:00
Adrien Béraud fe3ded9d0f dht: my_v cleanup 2015-08-23 17:36:24 +02:00
Adrien Béraud 564467b5b3 dht: properly parse error messages 2015-08-23 17:29:15 +02:00
Adrien Béraud 7cd530612c disable back IPv6
temporarly disable while an issue is investigated to not perturbate the network
2015-08-21 01:40:13 -04:00
Adrien Béraud aae6484a58 dhtrunner: delay ops until dht is connected (except bootstrap) 2015-08-18 13:47:33 -04:00
Adrien Béraud 790c32048c ValueSerializable: refactoring 2015-08-18 10:57:46 -04:00
Adrien Béraud d5ff0e2187 dhtrunner: unpack value 2015-08-14 21:37:51 -04:00
Adrien Béraud 73c53cc0ec make nettle a depencency, link with it 2015-08-14 10:50:30 -04:00
Adrien Béraud fcbaa28439 enable back IPv6
It seems that msgpack fixed the IPv6 issue.
Enabling back.
2015-08-13 15:26:24 -04:00
Adrien Béraud cdcaebbc80 crypto: use AES-GCM + RSA for encryption rather than RSA-ECB 2015-08-13 11:28:29 -04:00
Adrien Béraud 70dfb4bbcf use msgpack for dht protocol and value serialization 2015-08-13 11:28:29 -04:00
Edric 623dd4f2a7 Correctly close socket on win32
Refs : https://msdn.microsoft.com/en-us/library/windows/desktop/ms740126%28v=vs.85%29.aspx
2015-08-07 12:45:56 -04:00
Adrien Béraud 873fbd3d8e dht: add public address reporting 2015-08-06 15:41:16 -04:00
Adrien Béraud 15f3dee293 introduce configuration structure 2015-08-05 21:55:20 -04:00
Adrien Béraud 59182aa0c4 securedht, dhtrunner: support bootstrap mode 2015-08-04 23:39:15 -04:00
Adrien Béraud 2130d38820 securedht: allow null key or certificate
If no key is provided, no value is decrypted.
If no certficate is provided, it is not published and
a random node Id is choosed.
2015-08-04 14:02:04 -04:00
Adrien Béraud 948475301e infohash: add getRandom() 2015-08-04 14:02:04 -04:00
Adrien Béraud c10494557c dht: fix done callback sometimes called more than once 2015-07-29 16:58:15 -04:00
Edric baa2a14596 Install rng header for external use of random_device 2015-07-29 14:43:50 -04:00
Adrien Béraud f13b28fed4 dht: add connectivityChanged() 2015-07-28 16:26:35 -04:00
Adrien Béraud 3cbae5526a dht: add bootstap mode
The bootstrap mode is used only for bootstrap nodes.

A bootstrap node will maintain a tree of the whole dht
up to 6 bits deep (8*2^6 = 4096 nodes).

This allows to provide better initial answers to new nodes.

Bootstrap nodes act otherwise normally.
2015-07-27 14:47:58 -04:00
Adrien Béraud 8287416164 dht: add getNodes, isExpired with no time argument 2015-07-27 14:33:47 -04:00
Adrien Béraud ced114eba4 dht: combine counting of get and announce/listen requests 2015-07-27 14:33:39 -04:00
Adrien Béraud 433f690bed dht: don't make new nodes candidates 2015-07-27 14:33:39 -04:00
Adrien Béraud 5323ebd6b1 dht: use a listen keep-alive of 30 seconds 2015-07-27 14:33:39 -04:00
Adrien Béraud a2eed7e7af dht: limit total node number per search 2015-07-24 01:02:35 -04:00
Adrien Béraud 178eeae94f dht: log cleanup 2015-07-24 01:02:35 -04:00
Adrien Béraud 2b16937c2d temporarly disable IPv6
IPv6 is for some reason not working properly.
Disable it while we are investingating
2015-07-23 11:07:29 -04:00
Adrien Béraud d95b11aefa dht:use appropriate node array size 2015-07-23 11:06:16 -04:00
Adrien Béraud a090baba08 doc update 2015-07-23 11:06:16 -04:00
Adrien Béraud ae178c4d25 fix some compiler warnings 2015-07-23 11:06:04 -04:00
Adrien Béraud d2ed99742e zero-initialise sockaddr structures 2015-07-23 11:05:50 -04:00
Adrien Béraud ac13795db0 crypto: add DecryptError 2015-07-14 12:47:12 -04:00
Adrien Béraud 3d2a74be49 python: add PyNode 2015-07-13 13:24:55 -04:00
Adrien Béraud e2004d69cb prevent sending listen or announce to unsynched nodes 2015-07-11 18:38:11 -04:00
Adrien Béraud 7a3a95bf3e dht: use time_point::min() as invalid time_point value 2015-07-11 18:38:11 -04:00
Adrien Béraud 5bec9f6764 log cleanup 2015-07-10 23:31:09 -04:00
Adrien Béraud d2c57b867d update copyright headers 2015-07-10 23:25:43 -04:00
Adrien Béraud db1b9c2f38 crypto: add Certificate getName, getIssuerName, getAltNames 2015-07-09 12:32:56 -04:00
Adrien Béraud 2470dab029 dht: add a simpler Done Callback 2015-07-06 11:27:45 -04:00
Adrien Béraud d0f4f57116 dht: fix typo, warnings 2015-07-04 23:56:16 -04:00