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
abbc77744e
dhtrunner: allow to configure rng used by the dht
2023-12-10 15:07:39 -05:00
Adrien Béraud
7a61fa371f
dht: allow to provide rng to constructor
2023-12-10 15:06:51 -05:00
Adrien Béraud
ce7f592b1c
search: return if added node is actually removed
2023-12-08 11:02:21 -05:00
Adrien Béraud
0592b9ff51
crypto: add aesBuildEncrypted
2023-12-03 22:03:22 -05:00
Adrien Béraud
24e7b00e4e
crypto: add aesGetKey, aesGetSalt, aesGetEncrypted
...
Allows to retrieve the encryption key and salt from
an encrypted blob, leading the way for biometry support.
2023-11-28 10:49:41 -05:00
Moreno Giussani
ac9d7942ce
Add loadIdentity
2023-11-07 09:29:46 -05:00
Adrien Béraud
13194b66d3
proxy client: retry permanent put after reconnect
2023-11-02 15:58:11 -04:00
Adrien Béraud
601758f5fd
proxy server: use isMember for timeout
2023-09-27 13:56:43 -04:00
Kateryna Kostiuk
61f43c6b05
iOS: use high priority for resubscribe notifications
2023-09-18 15:27:41 -04:00
Adrien Béraud
fb9e6eee48
Revert "build: do not define ASN1_time_parse when using openssl"
...
This reverts commit 3a8adb4e17 .
2023-08-30 17:59:07 -04:00
Adrien Béraud
2ed40aeefe
proxy client: use [[maybe_unused]]
2023-08-30 17:58:45 -04:00
Adrien Béraud
bb61b8468b
proxy client: implement OnPublicAddressChanged
2023-08-30 17:58:45 -04:00
Adrien Béraud
55688a25aa
http: don't encode whole url
...
url encoding should be used for url components
by users of the library,
otherwise characters like '/' get escaped.
2023-08-30 17:58:45 -04:00
Adrien Béraud
ae56d4e9be
dht: implement OnPublicAddressChanged
2023-08-30 17:58:45 -04:00
Adrien Béraud
982896a718
dht interface: add OnPublicAddressChanged
2023-08-30 17:58:45 -04:00
Adrien Béraud
2ae092e266
storage: remove unused variable
2023-08-30 17:58:45 -04:00
Adrien Béraud
27ce8b00ed
add syncLevel to send announce/listen early
2023-08-30 16:31:47 -04:00
Kateryna Kostiuk
3a8adb4e17
build: do not define ASN1_time_parse when using openssl
2023-08-27 16:54:16 -04:00
Adrien Béraud
899d18968e
thread pool: add missing header
2023-08-20 23:44:49 -04:00
Adrien Béraud
285105c8d1
thread pool: simplify cleanup logic
2023-08-20 23:02:41 -04:00
Adrien Béraud
9e0ad9d926
thread pool: wait for tasks to complete on stop
2023-08-19 18:48:53 -04:00
Adrien Béraud
0fdded0606
thread pool: allow pool to reduce in size after some time
2023-08-19 18:48:53 -04:00
Adrien Béraud
ed6c5381d8
http: remove incorrect static usage
2023-07-29 00:02:48 -04:00
Léo Banno-Cloutier
2f2ed9bca7
url_encode: escape url query
...
For routes such as /api/auth/directory/search, when searching for names such as
"Léo", jams would not respond to the request
since the URL contained invalid characters defined in RFC3986. `url_encode`
turns such characters into their equivalent escaped characters.
2023-07-25 10:28:22 -04:00
Amna
3e888d8e2d
network engine: remove link-local condition from isMartian()
2023-07-05 19:38:24 -04:00
Adrien Béraud
f461eaa191
log: cleanup, avoid using default constructor
2023-06-28 11:27:03 -04:00
Adrien Béraud
411d8dbe62
network_engine: add missing headers
2023-06-28 11:27:03 -04:00
Adrien Béraud
aff1ed4575
network engine: make UA private, constexpr
2023-06-27 20:07:03 -04:00
Adrien Béraud
8c94dc8f89
dht: update User-Agent (UA) to "o2"
...
The update reflects the slow evolution of the protocol.
Also, saves two bytes in every packet.
2023-06-26 18:25:31 -04:00
Adrien Béraud
a7f459eab9
log: fix build on Windows
2023-06-26 16:10:11 -04:00
Adrien Béraud
7383e3ea29
node cache: increase cleanup period
2023-06-19 18:36:58 -04: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 Béraud
9a2e69ea9c
log: simplify logger
2023-06-02 21:50:25 -04:00
Sébastien Blin
54eff3b0aa
proxyServer: no need for a pushServer_ for type==UnifiedPush
2023-06-02 13:18:58 -04:00
Adrien Béraud
2654970499
logger: remove OPENDHT_LOG, rename to logger.h
2023-05-18 12:31:42 -04:00
Adrien Béraud
6919df592f
sockaddr: add fmt formatter
2023-05-18 12:31:42 -04:00
Adrien Béraud
e176e4baa6
logs: use fmt
2023-05-17 23:43:55 -04:00
Adrien Béraud
4041b69800
DhtRunner, dht_interface: remove setLoggers
2023-05-17 23:43:55 -04:00
Adrien Béraud
da6579132c
log: move Color, printLog as private
2023-05-17 23:43:55 -04:00
Sébastien Blin
dc6aca83c6
Makefile: add node_export
2023-04-05 09:41:22 -04:00
Adrien Beraud
41eabc7261
thread pool: handle exceptions starting threads
2023-03-25 18:22:58 -04:00
Adrien Beraud
424fe61a49
dht: send large amounts of values in multiple messages
2023-03-25 17:49:16 -04:00
Adrien Béraud
58bc772256
NodeExport: use SockAddr, move to separate header
2023-03-23 16:50:19 -04:00
Adrien Béraud
9e60a681f3
use ostringstream instead of stringstream where possible
2023-03-23 16:50:19 -04:00
Adrien Beraud
51525d144b
certificate: add public key cache
2023-03-15 20:44:29 -04:00
Adrien Béraud
133d77d985
thread pool: increase max io pool size to 512
2023-03-14 13:11:29 -04:00
Adrien Béraud
813c3b43d2
move filter
2023-02-28 12:58:13 -05:00
Adrien Béraud
4ce9292b28
proxy server: allow to ping push
2023-02-23 15:43:16 -05:00