Jeff Becker
99c814e6b0
fix dns rebinding vuln in jsonrpc
2020-03-04 13:59:33 -05:00
Jason Rhinelander
ac1486d0be
Replace absl::optional with optional-lite
...
Step 1 of removing abseil from lokinet.
For the most part this is a drop-in replacement, but there are also a
few changes here to the JSONRPC layer that were needed to work around
current gcc 10 dev snapshot:
- JSONRPC returns a json now instead of an optional<json>. It doesn't
make any sense to have a json rpc call that just closes the connection
with returning anything. Invoked functions can return a null (default
constructed) result now if they don't have anything to return (such a
null value won't be added as "result").
2020-02-19 18:21:25 -04:00
Michael
edd0ec398f
Move thread stuff to subdirectory
2019-09-03 20:52:28 +01:00
Jeff Becker
64c7ed42fc
make format
2019-05-22 12:20:50 -04:00
Jeff Becker
9c96aecf3f
move llarp::Logic to std::shared_ptr
...
add sequence numbers to HSD messages
begin work on network isolation code
add more docs
2019-05-22 12:20:03 -04:00
Michael
dd8a93a400
Apply rule of zero to code base
2019-05-19 23:11:07 +01:00
Michael
9ee525a006
Fix shadowing warnings
2019-04-26 00:21:19 +01:00
Michael
4143472a17
Add cmake module to target a library as 'system', and fix a few warnings
2019-04-25 00:27:31 +01:00
Jeff Becker
e178a70929
use shared_ptr for event loop
2019-04-08 08:01:52 -04:00
Jeff Becker
990049f423
make rpc do basic auth and shit like that
2019-03-13 16:01:10 -04:00
Michael
31441b46dc
Convert from rapidjson to use nlohmann::json
2019-03-02 02:32:50 +00:00
Michael
a0125ffe86
Move abyss/json to llarp/util/json
2019-02-15 23:43:26 +00:00
Jeff Becker
39fdebbf48
* make docker use ninja
...
* fix debian build
2019-02-14 08:42:38 -05:00
Jeff Becker
de575ab088
disable pretty print json
2019-02-11 12:35:49 -05:00
Jeff Becker
e1fceb3636
fix it (again)
2019-02-08 17:44:21 -05:00
Jeff Becker
e1522faeaa
add introspection rpc endpoint
2019-02-08 14:43:25 -05:00
Michael
b1ffdba7ba
Build with libabyss
2019-01-11 01:59:44 +00:00
Michael
e5eda0fb8f
Move lokinet unspecific components to a util/ library
2019-01-10 20:07:24 +00:00
Jeff Becker
21d1998a38
add graceful stop for path builders and friends
2018-12-24 11:10:56 -05:00
Michael
85dde7b6b0
Move remaining include/llarp headers to llarp/
2018-12-12 02:53:02 +00:00
Michael
30e9dca2e5
Convert llarp_logic to be a C++ class
2018-12-10 14:15:11 +00:00
Michael
e4c5f4f77a
Update from typedef
to using
in .hpp files
2018-11-23 00:07:45 +00:00
Jeff Becker
67eadff143
node whitelist option via jsonrpc
2018-11-21 12:46:33 -05:00
Michael
d750ec0605
Rename logic.h
2018-11-20 00:52:19 +00:00
Michael
0b2ebc83e0
De-C-ify several .h headers
2018-11-19 22:45:37 +00:00
Michael Thorpe
a2d5d80779
Enable warnings as errors
...
test criteria:
- Built from clean on macOS
2018-11-06 22:48:17 +00:00
Jeff Becker
080c0da4a0
remvoe const requirement and update unit tests for jsonrpc server
2018-11-02 14:02:45 -04:00
Jeff Becker
f285a0ac3e
update tests
2018-11-02 13:08:01 -04:00
despair
8952873b84
include string_view
2018-11-02 02:39:43 -05:00
Jeff Becker
2d279e83fd
initial tcp connect for epoll
2018-11-01 08:47:14 -04:00
despair
38f2a6b2c9
be slightly less annoying
...
check build rules
2018-10-30 00:16:34 -05:00
Jeff Becker
dbd2c41909
use event loop for time
2018-10-29 12:48:36 -04:00
Jeff Becker
b3e7fee982
try making compatable with older versions of rapidjson
...
add toy munin plugin
2018-10-26 09:02:15 -04:00
Jeff Becker
04d55b94c5
fix up jsonrpc stuff
2018-10-25 13:19:53 -04:00
Jeff Becker
ab7a4cd805
make jsonrpc demo work
2018-10-25 13:03:25 -04:00
Jeff Becker
957a5ed833
initial epoll event loop implementation for tcp
2018-10-24 14:02:42 -04:00
Jeff Becker
c262f8b5e3
bundle relevent libsodium parts
2018-10-23 07:29:37 -04:00
Jeff Becker
612057003a
de changes
2018-10-19 07:41:36 -04:00