lokinet/test
Jeff 21930cf667
LNS (#1342)
* initial relay side lns

* fix typo

* add reserved names and refactor test for dns

* lns name decryption

* all wired up (allegedly)

* refact to use service::EncryptedName for LNS responses to include nonce with ciphertext

* fully rwemove tag_lookup_job

* replace lns cache with DecayingHashTable

* check for lns name validity against the following rules:

* not localhost.loki, loki.loki, or snode.loki

* if it contains no dash then max 32 characters long, not including the .loki tld (and also assuming a leading subdomain has been stripped)

* These are from general DNS requirements, and also enforced in
registrations:

* Must be all [A-Za-z0-9-]. (A-Z will be lower-cased by the RPC call).

* cannot start or end with a -

* max 63 characters long if it does contain a dash

* cannot contain -- in the third and fourth characters unless it starts with xn--

* handle timeout in name lookup job by calling the right handler with std::nullopt
2020-09-17 15:18:08 -04:00
..
Catch2@81d52c4a5f Revert "bump submodules" 2020-07-02 11:13:30 -04:00
config Don't use std::optional::value() because f u macos 2020-05-20 19:18:28 -03:00
crypto LNS (#1342) 2020-09-17 15:18:08 -04:00
dht C++17 2020-05-01 17:43:27 -03:00
dns LNS (#1342) 2020-09-17 15:18:08 -04:00
exit change assert to throw an exception instead when service node has no peer stats enable. 2020-08-28 11:26:50 +00:00
hive only stop router hive from fixture when router hive is not None 2020-08-28 11:31:03 +00:00
iwp proper route poking (#1330) 2020-09-01 17:22:22 -04:00
net * rework exit codepath to allow multiple exits 2020-07-02 11:13:30 -04:00
nodedb use lokimq workers instead of llarp:🧵:ThreadPool 2020-07-02 11:07:34 -04:00
path path builder prints hops, rest print short name 2020-02-20 16:37:39 -05:00
peerstats fix serialize order of dict in peer stats and make the unit tests match this change 2020-08-24 20:19:48 -04:00
regress Remove ambguity WRT loading and passing of Config 2020-07-06 13:38:02 -06:00
router Zero-initialize test array 2020-02-06 14:33:53 -04:00
routing Rename message files 2019-06-19 23:30:07 +01:00
service LNS (#1342) 2020-09-17 15:18:08 -04:00
util Use lokimq's hex/base32z encoding/decoding 2020-07-02 11:13:31 -04:00
win32 happy new year 2020-01-05 20:40:34 -06:00
check_main.cpp make catch2 a submodule 2020-02-17 08:26:20 -05:00
CMakeLists.txt LNS (#1342) 2020-09-17 15:18:08 -04:00
llarp_test.cpp Move tests to use top-level LlarpTest 2019-05-28 20:45:09 +01:00
llarp_test.hpp Move tests to use top-level LlarpTest 2019-05-28 20:45:09 +01:00
main.cpp use llarp::LogSilencer to shut up loging in unit tests 2020-06-08 09:26:53 -04:00
test_llarp_encrypted_frame.cpp Move tests to use top-level LlarpTest 2019-05-28 20:45:09 +01:00
test_llarp_router_contact.cpp disable exits in RCs 2020-08-24 20:19:51 -04:00
test_util.cpp Add tests for crypto/types 2019-01-15 23:33:16 +00:00
test_util.hpp Implement KeyManager tests 2019-12-09 12:29:33 -07:00