Adrien Beraud
54fd6cf64f
securedht: avoid calling identity announced callback multiple times
2025-10-10 13:59:44 -04:00
ovari
a5e39768e4
Update securedht.cpp
2025-09-14 13:38:35 -04:00
Adrien Béraud
95fa29d2ec
securedht: add CertificateStoreQuery by PkId
2025-09-08 00:14:44 -04:00
Adrien Béraud
09da6db5e7
securedht: add putEncrypted with PkId 'to' argument
2025-06-09 00:52:05 -04:00
Adrien Béraud
dcf31b2c5f
securedht: allow to find certificates by PkId
2025-06-09 00:52:05 -04:00
Adrien Béraud
f2eb234fd9
securedht: put certificate at PkId
2025-06-09 00:52:05 -04:00
Adrien Béraud
c4e75ae66c
update copyright year
2025-05-22 19:07:32 -04:00
Adrien Béraud
a2dff6a123
dhtrunner: registerCertificate: take certificate by const ref
2025-05-20 21:55:04 -04:00
Adrien Béraud
23d07dae38
rng: drop custom random_device implementation for MinGW/Windows
...
MinGW now has std::random_device support on Windows:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85494
2023-12-10 15:18:59 -05:00
Adrien Béraud
fafd2f0233
update copyright year
2023-06-02 23:16:04 -04:00
Adrien Béraud
9f031303a2
securedht: destroy dht before other fields
2023-06-02 21:50:25 -04:00
Adrien Beraud
51525d144b
certificate: add public key cache
2023-03-15 20:44:29 -04:00
Adrien Béraud
33d73d5d55
securedht: compare public key content instead of pointer
2023-01-27 17:31:59 -05:00
Adrien Béraud
446da4b792
value: use move in where
2022-12-30 20:42:16 -05:00
Sébastien Blin
b3f9683018
securedht: avoid to update cache if not necessary
2022-06-08 13:07:06 -04:00
Adrien Béraud
6d1819acb9
securedht: fix warning
2022-06-07 15:58:16 -04:00
Adrien Béraud
5a6b9db60c
securedht: move crypto ops to Value
2022-04-25 13:43:57 -04:00
Adrien Béraud
c59f951e5a
update copyright
2022-03-10 19:51:25 -05:00
Adrien Béraud
ba9a445263
securedht: clenup
2021-06-07 14:45:58 -04:00
Adrien Béraud
b668d6ad68
dhtrunner: add putEncrypted with public key
2021-06-07 14:45:58 -04:00
Adrien Béraud
1ea7a2994e
value: use non-const PublicKey
2021-06-07 14:45:58 -04:00
Adrien Béraud
827fdacc4b
securedht: build with logger
2021-04-16 14:45:14 -04:00
Adrien Béraud
3efc27e9f3
securedht: avoid use-after-free
2021-04-16 14:42:45 -04:00
Adrien Béraud
f7104199e3
securedht: fix typo
2021-04-15 12:50:31 -04:00
Adrien Béraud
5c0fbf7e68
securedht: pass IdentityAnnouncedCb by value, don't store
2021-04-15 12:47:18 -04:00
Adrien Béraud
55c595330a
securedht: use onConnect callback
2021-04-15 12:36:57 -04:00
Sébastien Blin
f8605f45f7
securedht: add IdentityAnnouncedCb to detect when identity is announced
2021-04-14 18:55:22 -04:00
Adrien Béraud
ceb35c05c1
securedht: add option to disable cache
2020-02-08 20:27:44 -05:00
Adrien Béraud
55ccec5871
securedht: putEncrypted, putSigned fail if no key
2020-02-07 00:54:18 -05:00
Adrien Béraud
69e71dbeaa
SecureDht: cleanup
2020-01-17 15:58:22 -05:00
Adrien Béraud
616d6fe4b8
update copyright date
2020-01-03 15:14:32 -05:00
Adrien Béraud
c5c3695612
logger: use shared_ptr
2019-12-19 15:12:23 -05:00
Adrien Béraud
c10aa32596
cpp: include config.h when necessary
2019-12-12 14:51:59 -05:00
Adrien Béraud
e4516772ee
dht: log cleanup
2019-05-22 11:20:27 -04:00
Adrien Béraud
5e92777702
fix clang-tidy warnings
2019-03-17 19:22:28 -04:00
Adrien Béraud
4401e47002
cleanup, fix clang-tidy warnings
2019-03-17 17:43:52 -04:00
Adrien Béraud
f418b3651f
update copyright date
2019-03-16 12:37:23 -04:00
Adrien Béraud
55f6c847b8
build: use define flags for proxy
2019-02-19 18:43:14 -05:00
Adrien Béraud
989f32eb56
filter: cleanup and optimize
2019-02-19 01:59:59 -05:00
Adrien Béraud
9ce5b30931
securedht: use query to check for existing value
2018-12-22 11:42:45 -05:00
Adrien Béraud
f4cd7636ce
securedht: use signature cache in storePolicy, editPolicy
2018-11-26 01:57:57 -05:00
Adrien Béraud
b2542a57df
securedht: cache value signature check/decryption results
2018-11-22 15:43:55 -05:00
Adrien Béraud
00c1be9cdc
logger: use DBG for DEBUG to avoid name conflicts
2018-11-22 15:43:55 -05:00
Adrien Béraud
20ab71aba6
securedht: check public key
2018-04-05 14:23:15 -04:00
Adrien Béraud
2f4acd26d6
dhtinterface: add listen() callback to signal expired values
2018-03-16 13:34:41 -04:00
Adrien Béraud
0420ebcce3
dhtinterface: pass listen filters by value
2018-01-17 11:40:18 -05:00
AmarOk
d19ba2cb41
proxyserver: add lock_guard to avoid to manually unlock
2017-12-06 14:43:28 -06:00
Sébastien Blin
eb750f5b7f
proxy_client: execute callbacks in main thread
2017-11-27 17:51:33 -05:00
Sébastien Blin
5967c89c23
proxy: don't reinit dhtproxy multiple times and forward encrypted messages
...
+ Having a null dht_proxy_client can lead to using nullptr.
+ securedht should forward messages if we are using a proxy.
+ Protect callback segfault
2017-11-22 16:09:45 -05:00
Sébastien Blin
cb72c104fd
proxy: implement basic DhtProxyClient with the ability to get and put.
...
+ Add an abstract class to describe the Dht
+ Now, we can modify the Dht linked to a SecureDht. So we can choose
between the classic Dht and the Dht using a proxy.
+ Implement a basic client which can Get and Put values on the Dht using
the proxy.
Note: Update dhtnode to have the ability to use the DhtProxyClient.
Todo: Implement Listen, ping, connectivityChanged for the client.
2017-11-20 15:45:29 -05:00