Jeff Becker
827ca0bda7
make catch2 a submodule
2020-02-17 08:26:20 -05:00
Stephen Shelton
7842889fef
Add NodeDB tests around FindClosestTo()
2020-02-14 17:45:22 -04:00
Stephen Shelton
9dfcfbc3ac
Bencode/decode relayOrder in lexigraphical order, make it uint64_t
2020-02-14 17:43:13 -04:00
Stephen Shelton
906803e387
Refactor DHT introset lookups to use redundant lookup strategy
2020-02-14 17:43:13 -04:00
Jeff Becker
e35d17764a
* add path::Path::UniqueEndpointSet_t
...
* start using check2 for new unit tests
* unit test for path::Path::UniqueEndpointSet_t
2020-02-14 17:41:31 -04:00
Jason Rhinelander
8aacc2d317
Update deprecated gtest macros
...
gtest ~renamed INSTANTIATE_TEST_CASE_P to INSTANTIATE_TEST_SUITE_P and
added a "backwards compatibility" shim, but the shim fails at compile
time if you pass in an empty fourth argument.
2020-02-13 15:15:36 -04:00
Jeff
186dba45cb
Merge pull request #956 from notlesh/km-testing
...
Implement KeyManager tests
2020-02-13 14:04:42 -05:00
Jason Rhinelander
0497fb9ccb
Another big-endian fix
2020-02-07 03:46:46 -04:00
Jason Rhinelander
5f642e4f01
Zero-initialize test array
2020-02-06 14:33:53 -04:00
Jeff
8230b1152e
Merge pull request #1072 from majestrate/2020-01-25-router-version
...
add router version
2020-02-04 17:40:46 -05:00
Jeff Becker
1318846a08
test/service/test_llarp_service_identity.cpp:
...
* remove failing irrelevent test
* add expect_call in EnsureKeys to match expected bevahior
2020-02-04 06:44:48 -05:00
Stephen Shelton
8921125924
Fix buffer overflow when version encodes too many integers
2020-01-31 14:48:00 -07:00
Jason Rhinelander
46f3459b79
Fixed EncryptedIntroSet signing to use PrivateKey
...
We can generate both root and derived signatures from a PrivateKey, but
only root from a SecretKey, so just change it to use a PrivateKey.
2020-01-31 16:47:25 -04:00
Jason Rhinelander
cd8f26deff
Use hash instead of random for signing hash data
...
This makes PrivateKey store both the key followed by the hash. For
PrivateKeys based on SecretKeys this just means the second half of the
SHA-512 of the seed, and makes a PrivateKey constructed from a SecretKey
give an identical signature to signing directly with sodium.
For derived keys we use a ShortHash of the root key's signing hash
concatenated with the publicly known hash value, so that our derived key
signing hash will be different from the root signing hash and also
different for different derivation parameters.
This also changed one of the asserts in crypto_noop, but upon closer
inspection the copying of the secret key into the signature seems really
wrong, so just changed them to fill with 0s.
2020-01-31 16:47:25 -04:00
Jeff Becker
9153f726c5
const correctness
2020-01-31 16:47:25 -04:00
Stephen Shelton
cfabe72587
Fix RouterVersion::IsEmpty() and RouterVersion::Clear()
2020-01-31 13:31:00 -07:00
Stephen Shelton
f0571a9f2c
Fix IsCompatableWith() logic WRT emptyRouterVersion, add unit tests
2020-01-31 13:23:48 -07:00
Thomas Winget
a487982c49
initial implementation of blinded sign -- not working yet
2020-01-31 12:05:20 -04:00
Jason Rhinelander
860c5efd47
Derived key fixes
...
The reason things weren't working here is because libsodium does
something completely unintuitive and called the seed the "secret key"
when it isn't, it's the seed.
This adds a new PrivateKey class (alongside the existing SecretKey and
PubKey) that holds just a private key value but no seed -- which we need
to do because there is no way we can get a seed after calculating a
derived keypair.
With these changes, we now generate exactly the same keys and subkeys as
Tor (and a new test case uses values generated in Tor to verify this).
This is incomplete -- the subkey signing code is still not implemented;
it has to be adapted to create a signature from a PrivateKey rather than
a SecretKey which will probably requiring working around/reimplementing
some of what libsodium does for creating a signature since it expects
"secret keys" i.e. the seed.
2020-01-30 12:34:05 -04:00
Jeff Becker
0f13591802
does not work
2020-01-28 16:55:36 -05:00
Jeff Becker
99eb7726ff
initial dht key blinding
2020-01-27 16:30:41 -05:00
Jeff Becker
9efd796145
initial wack at 0.7.0 dht fixes
2020-01-27 11:54:51 -05:00
Jeff Becker
2c0dc12f39
refactor single char variables in DHT (mostly)
2020-01-23 12:10:58 -05:00
Jeff Becker
3b66cf6e75
dht fixes, disable iterative lookups on clients, revert "fixes" from 0.6.3, pass in recursion depth from introset lookup
2020-01-22 17:08:05 -05:00
Stephen Shelton
9a65f19bb0
Add test to ensure config loading impacts runtime log level
2020-01-21 12:33:04 -07:00
Stephen Shelton
43998f97c8
Add unit tests for LogLevelToName and LogLevelToString
2020-01-21 12:15:04 -07:00
Jeff Becker
28752f85b7
improve test cases
2020-01-21 13:35:52 -05:00
Jeff Becker
8d11519eb2
unit tests for logging levels
2020-01-21 13:21:11 -05:00
Rick V
636957f3f9
happy new year
2020-01-05 20:40:34 -06:00
Jeff Becker
562f3f07ab
add unit test for decaying hash set
2019-12-30 15:52:10 -05:00
Jason Rhinelander
1b710455a7
Disallow AlignedBuffer < 8 bytes; add oddball buffer sizes
2019-12-19 16:17:02 -04:00
Jeff Becker
16c7e7dd33
fix unit tests
2019-12-19 10:25:52 -05:00
Thomas Winget
f4c9e09d44
remove obsolete timer-related code
2019-12-18 19:05:33 -05:00
Rick V
ccd936feb1
the internal windows toolchain _already_ provides a default manifest
2019-12-16 11:32:50 -06:00
Rick V
fd6602bf05
fix versiontag
2019-12-16 11:32:42 -06:00
Rick V
e144d9e762
fix test suite
2019-12-16 11:28:47 -06:00
Rick V
6d49ffd60b
include all platform dependencies transitively
2019-12-16 11:28:46 -06:00
Rick V
e15c57c114
get ready for v0.6
...
bump version
don't ship the shared object
2019-12-16 11:28:21 -06:00
Jeff Becker
9fa2b5c92a
remove undeeded test case
2019-12-15 07:05:17 -05:00
Jeff Becker
fcf0ae2b9e
prune unused files.
2019-12-15 07:02:17 -05:00
Stephen Shelton
332f33b049
Remove FS_LIB conditionals
2019-12-12 12:58:46 -07:00
Stephen Shelton
e3c752f4ab
Another attempt to make travis-ci's xenial happy
2019-12-12 10:09:57 -07:00
Stephen Shelton
0dbbf30de5
Fix for travis-ci xenial build
2019-12-12 10:09:57 -07:00
Stephen Shelton
c303d438aa
Prefer ASSERT_EQ over ASSERT_TRUE when appropriate
2019-12-11 08:51:07 -07:00
Jeff Becker
8455d5d1cf
more cleanup
2019-12-10 11:49:32 -07:00
Jeff Becker
8f891c57b6
fix unit tests
2019-12-10 08:33:59 -05:00
Stephen Shelton
c99ab0c9b7
Fix build
2019-12-09 14:35:38 -07:00
Stephen Shelton
ef075a53dd
Implement KeyManager tests
2019-12-09 12:29:33 -07:00
Jeff Becker
593f1e657a
make format and make tests compile
2019-12-09 10:18:05 -05:00
Stephen Shelton
2c6226f54a
Backup SNApp keys when migrating to new ed25519 crypto
2019-12-06 11:21:14 -07:00
Stephen Shelton
11410a2748
Avoid trivial getters/setters in KeyManager
2019-12-06 10:31:19 -07:00
Stephen Shelton
eb5184ee09
Reinstate link test / update to use KeyManager
2019-12-04 13:13:41 -07:00
Stephen Shelton
93b8832026
Merge branch 'dev' into private-keys-backup-support
2019-12-03 11:20:45 -07:00
Stephen Shelton
521ef9b5bb
Handle link transport key in KeyManager
2019-12-03 10:58:53 -07:00
Jeff Becker
098915bb8e
add check for identity key validity
2019-11-26 20:40:55 -05:00
Stephen Shelton
e8e2e21fa2
Reorganize priv key file loading a bit and hook KeyManager into Router
2019-11-26 12:42:41 -07:00
Jeff Becker
ac686a9329
remove valgrind access errors
2019-11-22 16:23:20 -05:00
Jeff Becker
56dce90de9
add trace log level for tracking logic thread jobs
2019-11-22 16:23:19 -05:00
Stephen Shelton
1666498405
Replace bencode_write_version_entry with a more general-purpose function for writing bencoded dictionary entries
2019-11-22 10:39:35 -07:00
Jeff Becker
b34caa3e26
make unit tests pass for iwp
2019-11-14 11:48:02 -05:00
Jeff Becker
f16c9f9b5d
iot seems that logic thread didn't work the way i remember it should
...
make logic work the way it should
2019-11-14 10:06:53 -05:00
Jeff Becker
c9f26c4911
call Router::PumpLL after every batch of packets from a link session
2019-11-04 13:49:08 -05:00
Jeff Becker
2cb15e7e0b
enable see2 when used
2019-10-30 12:45:51 -04:00
Jeff Becker
f38240f945
devendor libsodium by default except for android
2019-10-29 12:01:58 -04:00
Jeff Becker
01c4a9c287
revert a few things
2019-10-28 10:16:00 -04:00
jeff
1cdd9ba13a
add unit test for identity_keygen
2019-10-23 08:43:37 -04:00
jeff
c3451fc77a
remove log level change
2019-10-01 11:06:56 -04:00
jeff
32ed821763
Merge remote-tracking branch 'upstream/dev' into multithreaded-cryptography
2019-10-01 10:51:28 -04:00
Rick V
00d34709eb
bump to 0.5.2
2019-09-23 21:22:29 -05:00
Rick V
bf2ecaa74a
bump to 0.5.1
2019-09-23 21:22:28 -05:00
jeff
1853b28590
remove libutp and all such code related to utp
2019-09-19 11:36:05 -04:00
jeff
ac2a2aed1d
gut libutp and finish making things compile and pass tests
2019-09-12 14:19:25 -04:00
Jeff Becker
4bf6882c8a
more async cryptography
2019-09-05 13:39:09 -04:00
Jeff
325b697e90
Merge pull request #787 from despair86/master
...
make build internally consistent, bump windows version to 0.5.0
2019-09-04 08:59:51 -04:00
Michael
edd0ec398f
Move thread stuff to subdirectory
2019-09-03 20:52:28 +01:00
Michael
0950571313
Move metrics to subdirectory
2019-09-03 20:52:28 +01:00
Michael
4d8fe2a8a8
Move meta programming to subdirectory
2019-09-03 20:52:28 +01:00
Rick V
6205e96c36
move non-string version info to common header
2019-09-03 08:02:34 -05:00
Rick V
51279075d8
iconv 🅱roke
2019-09-03 08:02:34 -05:00
Rick V
df430650ef
undo utf8 conversion
2019-09-03 08:02:33 -05:00
Rick V
fb70d7afc9
bump version for release
2019-09-03 08:02:32 -05:00
Jeff
146d977945
make osx unit tests compile on old gcc
2019-09-02 13:34:45 -04:00
Jeff
b42605d1ba
Merge pull request #783 from majestrate/iwp-redux
...
Add "new" (old) link protocol: IWP
2019-08-27 09:33:37 -04:00
Jeff Becker
b5402dc6c3
Merge remote-tracking branch 'origin/master' into iwp-redux
2019-08-27 08:15:41 -04:00
Rick V
b3a975ff8e
sun fix
...
fix testing on sun
2019-08-27 06:53:08 -05:00
Michael
70937ab503
Fix docker-compose isolated network
2019-08-27 01:57:37 +01:00
Jeff Becker
647f874d0f
ignore test on win32
2019-08-23 16:49:12 -04:00
Jeff Becker
f8bf907f24
disable log spew
2019-08-23 08:27:57 -04:00
Jeff Becker
426ee41c46
initial iwp
2019-08-22 16:53:27 -04:00
Jeff Becker
aea4542edd
more
2019-08-22 07:18:05 -04:00
Jeff Becker
c1f33bb1ac
initial mempipe implementation
2019-08-07 12:33:29 -04:00
Jeff
10d7e7cb77
Merge branch 'master' into master
2019-08-05 07:59:30 -04:00
Michael
f9e9227e19
Fix gcc trunk warnings
2019-08-02 10:29:08 +01:00
Rick V
5b0b6e4ae2
fix header case
...
do not use Microsoft <filesystem>
add build stamp to version resource if we're doing local CI
2019-08-01 21:39:47 -05:00
Jeff Becker
822f529be8
add link layer delivery feedback
2019-07-26 12:19:31 -04:00
Thomas Winget
baf8019fe5
Refactor Router code into more classes
...
This commit refactors functionality from the Router class into separate,
dedicated classes.
There are a few behavior changes that came as a result of discussion on
what the correct behavior should be.
In addition, many things Router was previously doing can now be provided
callback functions to alert the calling point when the asynchronous
action completes, successfully or otherwise.
2019-07-25 14:11:02 -04:00
Jeff
f154c9a0d0
Merge pull request #721 from majestrate/fix-dht-2019-07-19
...
handle dht case
2019-07-22 16:27:25 -04:00
Michael
52b9158a5a
fix test.rc
2019-07-21 16:57:12 +01:00
Michael
e32470ae5a
Skip 3 tests on windows
2019-07-21 16:57:12 +01:00
Michael
5da5c77104
Delete ev loop tests
2019-07-21 16:57:12 +01:00
Michael
ca4af6af89
fix test.rc
2019-07-21 16:57:12 +01:00
Michael
6ede15888e
Change manifest ids
2019-07-21 16:57:12 +01:00
Michael
91c1ba87cc
Change ConfigParser too
2019-07-21 16:57:11 +01:00
Michael
8fd4ceb55b
Don't use LoadFromString
2019-07-21 16:57:11 +01:00
Jeff Becker
1ee90f8852
do lookup for RC to neighboor even if we have them in our DHT buckets so we get an updated RC in reply
2019-07-19 13:21:20 -04:00
Michael
5cef2865bd
Fix Ubuntu builds
2019-07-15 22:46:57 +01:00
Jeff Becker
fcc3c05124
Merge remote-tracking branch 'origin/master' into ipv6-tun
2019-07-10 10:07:19 -04:00
michael-loki
0cd9b4c380
Merge pull request #687 from michael-loki/config_env
...
Allow environment variable override of config
2019-07-09 21:42:31 +01:00
Jeff Becker
8ac9ef6f18
Merge remote-tracking branch 'origin/master' into ipv6-tun
2019-07-09 09:48:15 -04:00
Jeff Becker
b9bcc2b775
make threadpool consice
2019-07-09 09:47:24 -04:00
Michael
b01e5accbb
Add function to set threadname, and use from threadpool impl
2019-07-09 01:06:22 +01:00
Michael
3ce90b678e
Allow override of the rest of the config
2019-07-09 00:29:43 +01:00
Michael
fbb83704a0
Allow override of some config via env variables
2019-07-09 00:29:43 +01:00
Jeff Becker
58005c5f81
Merge remote-tracking branch 'origin/master' into ipv6-tun
2019-07-08 10:17:21 -04:00
Michael
f310160065
Fixup and add tests
2019-07-06 14:46:25 +01:00
Michael
a2326efa37
Revert "Merge pull request #679 from tewinget/revert-config-refactor"
...
This reverts commit 2996a7f29c
, reversing
changes made to 10df3bd4b3
.
2019-07-06 14:46:25 +01:00
Thomas Winget
d044d60101
Reverts #678 #677 and #669 with hashes:
...
10df3bd
766ece8
979f095
See those commits for further details
2019-07-02 11:02:20 -04:00
Michael
8c2d67f8f1
Fix tests
2019-07-02 10:06:29 +01:00
Michael
bd78471dae
Move ini parser as well
2019-07-02 01:58:38 +01:00
Jeff Becker
5c61df08b5
Merge remote-tracking branch 'origin/master' into ipv6-tun
2019-06-20 10:35:51 -04:00
Michael
08609f9e5a
Rename message files
2019-06-19 23:30:07 +01:00
Michael
83bd9227a7
Move exit messages
2019-06-19 21:35:26 +01:00
Michael
d6751e3eeb
Move subset of messages to right directory
2019-06-19 21:35:26 +01:00
Jeff Becker
cd05fa6150
Merge remote-tracking branch 'origin/master' into ipv6-tun
2019-06-18 08:46:35 -04:00
Rick V
5092a1fa85
restore llarp_make_ev_loop() as we only use libuv now; separate function is now ded code
2019-06-17 23:29:46 -05:00
Jeff Becker
dcefcd7879
Merge remote-tracking branch 'origin/master' into ipv6-tun
2019-06-17 08:38:08 -04:00
Jeff
3833cc32cf
Merge pull request #648 from michael-loki/move_publishers
...
Move local publishers to their own files
2019-06-17 08:36:06 -04:00
Michael
26e16d5389
Fix event loop tests post-libuv
2019-06-16 22:44:11 +01:00
Michael
c0525f2ea3
Move local publishers to their own files
2019-06-15 15:48:48 +01:00
Jeff Becker
227f561ffc
Merge remote-tracking branch 'origin/master' into ipv6-tun
2019-06-14 08:11:16 -04:00
Michael
95646d2d87
Publish metric tags
2019-06-13 23:09:58 +01:00
Michael
7d4126407c
Introduce tags for metrics
2019-06-13 22:58:17 +01:00
Jeff Becker
c60099002b
reverse dns for ipv6
2019-06-12 09:48:14 -04:00
Jeff Becker
eb10638497
Merge branch 'master' into ipv6-tun
2019-06-12 09:21:37 -04:00
Jeff Becker
584cc61f8f
Merge remote-tracking branch 'origin/master'
2019-06-12 09:11:22 -04:00
Michael
d244674339
Unfuck integer metrics
2019-06-11 21:46:51 +01:00
Michael
0a5ac10880
Unfuck metrics
2019-06-11 21:46:51 +01:00
Michael
a1ef2ca342
Tidy up metric code
2019-06-11 21:38:31 +01:00
Jeff Becker
2403ab8f86
ipv6
2019-06-11 12:44:05 -04:00
Jeff Becker
32d73199e6
another fix for freebsd
2019-06-10 12:42:29 -04:00
Jeff Becker
223f2702d3
Merge branch 'fix-big-ooooofff'
2019-06-06 06:53:54 -04:00
Jeff Becker
4c7f8e8351
more libuv jizz
2019-06-03 08:02:54 -04:00
Michael
3822fe2341
Create util::MemFn and memFn to make binding callbacks easier
2019-06-02 22:19:10 +01:00
Jeff Becker
9deafa4cb8
use libuv
2019-06-02 17:17:05 -04:00
Michael
19802229ac
Update cmake to point to vendor dir
2019-05-29 23:18:47 +01:00
Michael
f263ee1bcd
Move gtest to vendor dir
2019-05-29 21:39:44 +01:00
Michael
cd86dcf1bd
Update LinkLayer tests to use no-op crypto
2019-05-29 09:46:34 +01:00
Michael
a62655d501
Move tests to use top-level LlarpTest
2019-05-28 20:45:09 +01:00
Michael
491fee206b
Port code to use CryptoManager over passing Crypto pointers
2019-05-28 20:45:08 +01: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