Simon Désaulniers
26a7aec7cc
dht: fix searchstep not scheduled after announcing
2017-04-03 17:39:15 -04:00
Adrien Beraud
b73a50bace
pht: prevent unneeded use of shared_ptr
...
Prefer a const reference instead of shared_ptr if the shared_ptr
is not used and argument type is not changed in the method.
This allows to prevent useless shared_ptr allocations.
In getRealPrefix, use OpState to track state instead of using many
different shared_ptr.
2017-04-03 19:10:49 +02:00
Adrien Beraud
70ccbe4e40
value: remove FieldSelectorDescription
...
FieldSelectorDescription is just Value::Field and
adds nothing on top of it.
Remove it in favor of Value::Field.
2017-04-03 19:10:01 +02:00
Adrien Beraud
6bb00ab732
Merge pull request #175 from sim590/argon2-submodule
...
argon2: use as submodule (reverted from commit c424eb9160 ) (reverted from commit 3c45e1996d )
2017-03-30 21:24:49 +02:00
Adrien Béraud
2e279852cd
Merge pull request #178 from sim590/benchmark-ifname-error
...
benchmark: fix invalid ifname error
2017-03-30 17:06:03 +02:00
Adrien Béraud
09b4e71dc5
Merge pull request #182 from atraczyk/master
...
fixes the contrib paths for the Visual Studio build
2017-03-30 00:48:02 +02:00
atraczyk
b40713596c
ignore MSVC\contrib\build and add argon2 path to project
2017-03-29 18:25:10 -04:00
atraczyk
c5485a795a
Merge branch 'master' of github.com:atraczyk/opendht
2017-03-29 17:57:19 -04:00
atraczyk
b7c5d4a550
clean up solution
2017-03-29 17:55:18 -04:00
Adrien Beraud
0aa1c9e42d
argon2: try to fix build on MSVC
2017-03-29 18:27:19 +02:00
Adrien Beraud
5823e98c76
rng: add missing header
2017-03-29 03:07:09 +02:00
Adrien Beraud
3c45e1996d
Merge pull request #175 from sim590/argon2-submodule
...
argon2: use as submodule (reverted from commit c424eb9160 )
2017-03-29 02:51:06 +02:00
Adrien Beraud
e2ce496779
crypto: add Certificate::getCopy()
2017-03-29 00:22:19 +02:00
Adrien Beraud
4540be7460
python: add more crypto bindings
2017-03-28 17:33:04 +02:00
Adrien Beraud
7c85b74de6
sockaddr: convert port to network/host byte order
2017-03-28 16:38:28 +02:00
Adrien Beraud
fccd569059
python: allow to get bound address for any family
2017-03-28 16:32:55 +02:00
Adrien Beraud
768bfa5d44
python: add SockAddr support
2017-03-28 16:25:17 +02:00
Adrien Beraud
ff6e38571d
dhtrunner: add method to bootstrap with a single SockAddr
2017-03-28 15:44:09 +02:00
Simon Désaulniers
0a5a609322
benchmark: fix invalid ifname error
...
Two instructions were mutually misordered.
2017-03-27 23:35:55 -04:00
Adrien Béraud
c424eb9160
Merge pull request #175 from sim590/argon2-submodule
...
argon2: use as submodule
2017-03-27 15:46:55 +02:00
Adrien Beraud
501ba77ec7
docker: add missing dep
2017-03-24 13:42:18 +01:00
Adrien Beraud
dc23ee0c7a
docker: update dependencies
2017-03-24 03:51:43 +01:00
Adrien Beraud
e98f06e84a
python: fix scanner
2017-03-24 03:51:15 +01:00
Simon Désaulniers
19c36284dc
argon2: use as submodule
2017-03-22 17:18:23 -04:00
Adrien Béraud
358d8bd7b3
Merge pull request #176 from sim590/tools-help
...
tools: add help -h flag for dhtscanner, dhtchat
2017-03-16 03:20:22 +01:00
Simon Désaulniers
c17508862c
tools: add help -h flag for dhtscanner, dhtchat
2017-03-15 22:11:25 -04:00
Adrien Beraud
2277a4959c
crypto: pack/unpack certificate after generation
...
make sure the certificate can be fully used after generation
2017-03-15 19:08:06 +01:00
Adrien Beraud
d5427df9eb
build: allow to use argon2 system library
...
allow to use system argon2 library, use system library by default:
* add --with(out)-argon2 configure options
* add -DOPENDHT_ARGON2=(On/Off) cmake option
also bump argon2 to latest git
2017-03-13 14:58:25 +01:00
Adrien Beraud
36206a80fc
rng: add missing include
2017-03-08 17:50:26 +01:00
Adrien Beraud
ab7d175322
network engine: make buffer length depend on HASH_LEN
2017-03-07 23:14:25 +01:00
Adrien Beraud
802528266a
crypto: add secure_vector and SecureBlob
2017-03-07 23:00:10 +01:00
Adrien Beraud
95d98f4659
rng: add getSeededRandomEngine
...
Add a routine to seed a pseudo-engine to
use the full range of possible internal states
by using seed_seq.
2017-03-07 17:08:46 +01:00
Adrien Beraud
4176302a03
crypto: add PublicKey::toString()
2017-03-07 17:08:46 +01:00
Adrien Béraud
b3119cce13
Update README.md
2017-03-07 16:14:58 +01:00
atraczyk
9987485f63
clean up solution
2017-02-17 18:15:54 -05:00
Adrien Béraud
b08b2f14f2
sockaddr: add missing header and typedef
2017-02-17 12:09:33 -05:00
Adrien Béraud
1e7ba56aeb
Merge pull request #174 from sim590/announce-status-fix
...
dht: standardize announce status check
2017-02-16 23:01:10 +01:00
Simon Désaulniers
faf23195a4
dht: standardize announce status check
...
Fixes a bug where some callbacks wouldn't be called when a dummy request was
inserted to cancel some operation while not using the
net::Request::State::COMPLETED flag as per 19c47ec .
2017-02-16 16:29:21 -05:00
Adrien Béraud
0d66b9435f
dht: print IPv6 search log
2017-02-16 11:49:38 -05:00
Adrien Béraud
49353e2d5c
dht: replace expired node only when bucket is full
2017-02-10 00:38:51 -05:00
Adrien Béraud
c4d5621f67
network: treat loopback address as sender address
...
When learning about nodes in an answer,
we used to drop nodes with loopback address.
Address is now replaced by the packet sender
address and the port is preserved.
2017-02-10 00:10:11 -05:00
Adrien Béraud
aa2227bdfc
SockAddr: add utility methods
2017-02-09 23:49:06 -05:00
Adrien Béraud
34908d573f
network engine: use make_shared
2017-02-08 14:14:06 -05:00
Adrien Béraud
469774037e
Merge pull request #169 from savoirfairelinux/crypto_checks
...
crypto: make Certificate::isCA() more restrictive
2017-02-07 23:27:15 +01:00
Adrien Béraud
93c5ad7cbc
crypto: make Certificate::isCA() more restrictive
2017-02-07 16:51:16 -05:00
Adrien Béraud
03d52e4284
Merge pull request #170 from sim590/dht-random-id
...
dht: randomize id in Dht layer
2017-02-07 22:08:57 +01:00
Simon Désaulniers
9d83ee169b
dht: randomize id in Dht layer
2017-02-07 15:58:04 -05:00
Adrien Béraud
43b181ebbf
python: add bindings for network, maintain_storage
2017-01-25 11:57:42 -05:00
Adrien Béraud
ac65ca5177
add shortcut Sp for std::shared_ptr
2017-01-24 23:38:31 -05:00
Adrien Béraud
42671be21e
Merge pull request #168 from sim590/announce-op-fixes
...
Announce op fixes
2017-01-20 11:19:33 -05:00