Adrien Béraud
d541b17fe1
sockaddr: cleanup
2021-04-13 21:35:31 -04:00
Adrien Béraud
623b1c4585
dhtrunner: add async version of getPublicAddress
2021-04-13 21:35:31 -04:00
Adrien Béraud
7774331a20
dhtrunner: allow to provide address to bind in configuration
2021-04-13 21:35:31 -04:00
Adrien Béraud
d0156b4637
crypto: add OcspRequest
2021-03-24 23:29:18 -04:00
Adrien Béraud
f6cca88593
ocsp response: verifyDirect now returns revocation status
2021-03-24 23:11:59 -04:00
Adrien Béraud
122d814a33
TrustRequest: add default empty parameter for conversationId
2021-03-18 17:08:54 -04:00
Adrien Béraud
896b6de60c
dht: remove default constructor
2021-03-18 10:35:35 -04:00
Adrien Béraud
d025f9d1b5
crypto: add methods to sign/decrypt raw data
2021-03-18 10:35:35 -04:00
Sébastien Blin
0b029bc0bf
types: add conversationId to TrustRequest
2021-03-18 09:13:43 -04:00
Adrien Béraud
18a1a1c47f
callbacks: move function argument to lambda
2021-03-09 17:43:35 -05:00
Sébastien Blin
6702956521
infohash: add xor operator
2021-03-09 17:27:04 -05:00
Adrien Béraud
638d1c91f1
toHex: use proper std::string constructor
2020-12-08 14:34:33 -05:00
Adrien Béraud
ab90a170af
http: checkOcsp is void
2020-11-24 16:16:11 -05:00
Adrien Béraud
f780499241
ocsp response: add string constructor
2020-11-24 16:11:02 -05:00
Adrien Béraud
72725dc5c1
http: make OCSP check optional
2020-11-24 15:34:19 -05:00
Adrien Béraud
17e1cfbbbe
crypto: export OCSP request as string
2020-11-20 11:38:11 -05:00
Adrien Béraud
537a1650f2
infohash: add toHex(const std::string&)
2020-11-19 17:07:06 -05:00
Adrien Béraud
0c11c25c66
infohash: make toHex inline
2020-11-17 11:34:40 -05:00
Adrien Béraud
e970cac4d7
infohash: expose toHex
2020-11-16 14:58:35 -05:00
Adrien Béraud
c84fac6823
http: add Request::await
2020-10-28 12:23:53 -04:00
Adrien Béraud
e2b39dd3a0
http/request: make terminate public
2020-06-30 10:42:49 -04:00
Sébastien Blin
b41f5b04f5
proxyclient: only restart listeners when connected
...
restartListeners() must be called only when the proxy is connected. Else, the
client will receive a lot of http errors
2020-06-29 15:18:58 -04:00
Adrien Béraud
cfa21df8b3
http: cleanup, always verify host in TLS mode
2020-06-29 12:12:22 -04:00
Adrien Béraud
f72bfc9df2
http: use hostname for certificate authentication
2020-06-19 15:21:34 -04:00
Adrien Béraud
c221cfdafe
http/Request: add get json constructor
2020-06-15 17:47:32 -04:00
Seva
acbf7cfcf0
crypto: cleanup ocsp api & tests
2020-06-15 17:47:32 -04:00
Seva
8250116946
crypto: embed ocsp response into class
2020-06-15 17:47:32 -04:00
Seva
45e9458373
crypto: add get ocsp response in readable format
2020-06-15 17:47:32 -04:00
Seva
2623b86274
crypto/cert: add generate ocsp request & verify response
2020-06-15 17:47:32 -04:00
Seva
e26256b819
crypto: add get ocsp response certificate status
2020-06-15 17:47:32 -04:00
Seva
a7a3d23f50
crypto: add get serial number of cert.
2020-06-15 17:47:32 -04:00
Adrien Béraud
323a2b5093
dht: move socket to SearchNode
2020-06-15 17:46:43 -04:00
Adrien Béraud
563811ebf8
dht: add error handler for sendRefreshValue
2020-06-15 17:46:43 -04:00
Sébastien Blin
3e24ea1212
rng.h: fix build
2020-05-25 18:50:35 -04:00
Adrien Béraud
87f48f0a28
getSeededRandomEngine: retry in case of exception
2020-05-25 15:18:51 -04:00
Sébastien Blin
9292c1116c
proxy: count permanent put values by hash in stats
2020-05-24 01:25:31 -04:00
Adrien Béraud
15eb221cd1
dht: save id, port when saving state
2020-05-22 12:15:10 -04:00
Adrien Béraud
7d3781acc8
dht: use pseudo-rng for ID generation
2020-05-22 12:14:47 -04:00
Adrien Béraud
19ccc3a327
proxy server: restart timers on resubscribe
2020-05-19 19:50:20 -04:00
Adrien Béraud
4587c0925f
utils: always check length in findMapValue
2020-05-19 19:50:20 -04:00
Adrien Béraud
a27815b4a9
proxy server: persist ops on disk
2020-05-19 19:50:20 -04:00
Adrien Béraud
5daaf372b4
proxyserver: generate id before put
2020-05-11 12:31:07 -04:00
Sébastien Blin
28b5893239
listener: fully migrate to requests
...
This patch migrates tellListenerRefreshed and tellListenerExpired
to the new behavior
2020-05-05 10:38:03 -04:00
Adrien Béraud
7f832ba9d5
NodeInfo: add bound ports
2020-04-29 16:00:02 -04:00
Sébastien Blin
dd3de412fb
dht: move updateValues logic into network_engine
2020-04-28 13:55:29 -04:00
Sébastien Blin
4ad5e6c9ba
misc: clean
2020-04-28 13:55:29 -04:00
Sébastien Blin
7bf9f861a5
dht: send update values for listeners
2020-04-28 13:55:29 -04:00
Sébastien Blin
e1c6fec581
dht: starts to add update and version support
2020-04-28 13:55:29 -04:00
Sébastien Blin
31da5b91fa
[WIP]net: add updateValues to replace Listen operations
...
Actually, packets are not retransmitted for listen operations. This
leads to some problems when they are already several values present
at one hash. Ideally, packets should be transmitted inside a request
to avoid packet loss and get all datas.
This patch breaks the compatibility with previous versions
2020-04-28 13:55:29 -04:00
Adrien Béraud
01bcb1a750
network engine: completely remove TransId
2020-04-24 18:46:46 -04:00