cberaud
41406833a8
add crypto::random_device
2015-05-15 19:57:04 +05:30
Guillaume Roguez
98233954c4
dht: drop incoming msg with unknown protocol
...
We filter out incoming packet if my_v field is not known.
This prevents to be flooded by others bittorrent-like clients.
Signed-off-by: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com >
2015-05-14 13:44:11 -04:00
cberaud
06a32eedd1
Certificate: add option to not export the whole chain
2015-04-30 22:02:27 -04:00
Adrien Béraud
c5c61b838e
dht: fix compilation for LLVM 3.5
2015-04-27 15:14:46 -04:00
Adrien Béraud
f6c85c7bf5
crypto: remove unwanted overrride
2015-04-27 14:54:38 -04:00
Adrien Béraud
f61c2a234c
dhtrunner: expose some securedht methods
2015-04-21 16:04:01 -04:00
Adrien Béraud
4438df238e
securedht: add registerCertificate(cert)
2015-04-21 16:03:33 -04:00
Adrien Béraud
6e3d5da055
types: ContactInvite is now TrustRequest
2015-04-21 10:29:57 -04:00
Adrien Béraud
8f269ca405
crypto: import certificate chain from list of blobs
2015-04-20 17:57:58 -04:00
Adrien Béraud
c6e7731c67
crypto: add doc
2015-04-20 15:54:26 -04:00
Adrien Béraud
9ee2a0763b
crypto: serialize certificate chains
2015-04-20 15:50:38 -04:00
Adrien Béraud
ee40fa2bc7
values: use unpackValue in unpackVector
2015-04-16 13:45:49 -04:00
Adrien Béraud
c99f4ea653
types: read recipient for IceCandidates
2015-04-16 13:17:30 -04:00
Adrien Béraud
61e6f39568
types: make ImMessage optionally encrypted
2015-04-16 11:36:10 -04:00
Adrien Béraud
29ca90927b
types: fix EncryptedValue filter
2015-04-16 11:35:25 -04:00
Adrien Béraud
9861175675
types: new ValueSerializable API, separate default types
2015-04-15 15:51:02 -04:00
Adrien Béraud
d42f404f26
dht: improve update time consistency
2015-04-07 11:07:48 -04:00
Adrien Béraud
8512c01149
dht: update doc
2015-04-06 02:08:08 -04:00
Adrien Béraud
39b8ca3fce
searches: prefer to remove expired nodes
2015-04-06 00:04:10 -04:00
Adrien Béraud
777a5035d2
searches: introduce expired internal state
2015-04-04 16:50:15 -04:00
Adrien Béraud
5920b2bac3
infohash: make string constructor explicit
2015-04-02 17:03:13 -04:00
Adrien Béraud
be6317e62a
fix build for Win32
2015-04-01 14:49:45 -04:00
Adrien Béraud
1ae29f201d
dht: timeout searches with no synced nodes
2015-03-30 11:47:48 -04:00
Adrien Béraud
30d5ad5f33
dhtrunner: add bootstrap from host and service strings
2015-03-29 13:09:36 -04:00
Adrien Béraud
66dcc893f0
dhtrunner: move include to cpp
2015-03-29 13:09:36 -04:00
Adrien Béraud
95dfaea256
value: add constructors for C-style raw data
2015-03-26 11:26:03 -04:00
Adrien Béraud
9b1647e81c
value: add constructor with move sementics for data
2015-03-26 11:26:03 -04:00
Adrien Béraud
e638f014ab
dht: nodecache factoring
2015-03-23 15:29:01 -04:00
Adrien Béraud
13385faaf4
add tryInsertSearch
2015-03-23 14:06:53 -04:00
Adrien Béraud
441cad2e86
bootstrap: carry sockaddr length
2015-03-18 15:09:44 -04:00
Adrien Béraud
955b68a439
dht: reduce listen period from 10 to 3 minutes
2015-03-17 13:29:49 -04:00
Adrien Béraud
8426314628
dht: share node state through routing table and searches
2015-03-16 17:50:26 -04:00
Adrien Béraud
f1fae52916
listeners: only send new/updated values
2015-03-06 12:16:07 -05:00
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