Commit graph

6218 commits

Author SHA1 Message Date
Adam Ierymenko
a37f8aa54b
Merge pull request #9 from zerotier/actions
testing
2022-06-29 15:32:19 -04:00
Adam Ierymenko
3dc6ac64e8
Add parsing of remotely reported endpoints, bump some package versions. 2022-06-29 15:18:40 -04:00
Erik Hollensbe
bc7ec472e6
testing
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-06-29 12:10:55 -07:00
Adam Ierymenko
a20c150f13
Now mostly fully parses OK(HELLO) and also HELLO 2022-06-29 11:12:04 -04:00
Adam Ierymenko
f571ce7aa3
Merge branch 'master' of github.com:zerotier/tetanus 2022-06-27 13:20:31 -04:00
Adam Ierymenko
55f5a3a1cf
reorg 2022-06-27 13:20:25 -04:00
Adam Ierymenko
13d695c342
Merge pull request #8 from zerotier/tests
Tests
2022-06-27 13:20:12 -04:00
Erik Hollensbe
9373116ad7
move identity generation benchmark to a criterion benchmark
`cargo install criterion` for some additional tools to work with this
benchmark, or use `cargo bench` to run it.

Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-06-27 05:33:52 -07:00
Erik Hollensbe
6b0e44b2d7
to/from test for endpoint string conversions
some adjustments were made to the URL scheme as it was encoding to a raw
base64 value that was unparseable.

Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-06-27 04:57:06 -07:00
Erik Hollensbe
76c1e62014
add testutil module
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-06-26 12:42:48 -07:00
Erik Hollensbe
8ddd287787
more endpoint tests
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-06-26 12:31:26 -07:00
Erik Hollensbe
c8ecd85f6e
buffer tests
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-06-25 20:13:27 -07:00
Erik Hollensbe
cdade06361
cleanup compile and tests
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-06-25 20:13:27 -07:00
Erik Hollensbe
040e130666
some endpoint tests.
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-06-25 20:13:23 -07:00
Adam Ierymenko
860d13cedd
Handle the case in which this node is itself a root. 2022-06-24 14:54:46 -04:00
Adam Ierymenko
0e52da77f9
Fix identity work function and an issue with Salsa. 2022-06-24 12:04:52 -04:00
Adam Ierymenko
897aa113c9
Merge pull request #7 from zerotier/tests
Tests
2022-06-24 10:52:31 -04:00
Adam Ierymenko
d029c34b91
Some reorg. 2022-06-24 10:52:00 -04:00
Adam Ierymenko
1da011b75e
Add CareOf, which will be used with new roots in the near future. Also tweak some stuff like key sizes. There is no need for 512-bit keys when nothing uses the last 128 bits. 2022-06-24 08:08:41 -04:00
Erik Hollensbe
dff382911d
vl1::dictionary tests
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-06-23 14:47:30 -07:00
Adam Ierymenko
1df6843e94
Identity hashes really just need to be SHA384, good enough for top secret. 2022-06-23 17:41:34 -04:00
Adam Ierymenko
9cbbcb4495
Implement canonical object equality in a canonical way. 2022-06-23 17:31:19 -04:00
Adam Ierymenko
32145fbe8d
docs 2022-06-23 16:52:08 -04:00
Adam Ierymenko
7fa60b10a3
IT TALKS! (HELLO, OK) 2022-06-23 16:40:47 -04:00
Erik Hollensbe
63a1ff4542
Tests for vl1::address
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-06-23 12:49:08 -07:00
Adam Ierymenko
37ccc44117
Make unique IDs for local sockets globally unique. 2022-06-23 12:36:17 -04:00
Adam Ierymenko
e3906b3269
Split help out of main.rs 2022-06-23 12:00:19 -04:00
Adam Ierymenko
132a603596
Fix typo and naming, exports. 2022-06-23 11:46:08 -04:00
Adam Ierymenko
14b6dbb5d6
Merge pull request #6 from zerotier/erikh-fixes
Fixes
2022-06-23 11:40:09 -04:00
Adam Ierymenko
65df5a2387
Fix deadlock, which turned out to be not setting O_NONBLOCK haha. 2022-06-23 11:38:53 -04:00
Erik Hollensbe
9e60404847
clean up warnings in network hypervisor
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-06-22 17:24:02 -07:00
Erik Hollensbe
10eb2edd82
cleanup compile errors on linux
so a few things changed here:

- InetType was used to encapsulate the differences between u8 and u16
  situations in linux and other unix-alikes
- Casts were adjusted for the above scenario
- Some warnings and cfg directives were cleaned up a little
- AF_INET and AF_INET6 were removed from inetaddress impl because due to
  scoping rules they're available at the module level anyway.

Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-06-22 17:12:54 -07:00
Adam Ierymenko
a61bcaf0f7
VL1 now says HELLO!!! 2022-06-22 16:29:51 -04:00
Adam Ierymenko
36a105ecbf
It now binds and sends packets. They are not correct but they are sent. 2022-06-20 15:11:01 -04:00
Adam Ierymenko
51817ed557
Fix binding and port over BSD/macOS version of check for IPv6 temporary addresses. 2022-06-17 15:07:41 -04:00
Adam Ierymenko
fd00642ec1
It ran. It did something. Yay. 2022-06-16 17:53:52 -04:00
Adam Ierymenko
564df37c1d
More cleanup of incorporation of async. 2022-06-16 13:53:43 -04:00
Adam Ierymenko
6ad30ba1f5
Infect the core with async. Was resisting it a bit but it makes things easier and will probably perform better than using hacks to avoid it. Optional for UDP but we will end up wanting this when we have TCP, HTTP, WebRTC, etc. transports. 2022-06-15 16:46:09 -04:00
Adam Ierymenko
6940b97a92
Fix openssl version of AES-GMAC-SIV, a few other things. 2022-06-14 17:31:29 -04:00
Adam Ierymenko
90e4199b90
Attic this too, though might use it in the future. It's cool but kill your darlings. 2022-06-14 12:02:10 -04:00
Adam Ierymenko
87f5398f59
Ignore all Cargo.lock except the one in the binary. 2022-06-14 12:00:21 -04:00
Adam Ierymenko
ace16bdf05
cleanup 2022-06-14 12:00:07 -04:00
Adam Ierymenko
37263cae96
attic this experiment for now, may have a far simpler version that is also more compliant with corp security guidelines 2022-06-14 11:58:15 -04:00
Adam Ierymenko
2b221dade8
Cleanup, basic readme. 2022-06-14 11:56:59 -04:00
Adam Ierymenko
bab9807725
Remove gcrypt which is dead. 2022-06-13 17:35:13 -04:00
Adam Ierymenko
01e1135b2f
Add AES-GMAC-SIV test vectors and fix an issue. 2022-06-13 17:21:51 -04:00
Adam Ierymenko
9a9b573aa1
docs 2022-06-13 11:52:24 -04:00
Adam Ierymenko
c3ce40b5ba
Wire through RootSet init, a bunch more work, almost ready to test! 2022-06-08 19:05:54 -04:00
Adam Ierymenko
ded7c25786
Another absolute ton of work including getting the service almost to the point that it is ready to say HELLO. Also added an event and tracing infrastructure in the core. Some of the common Rust tracing/logging libraries are not used directly in the core for speed and future portability reasons but they will likely be used in the service. 2022-05-25 18:28:07 -04:00
Adam Ierymenko
1ad5d623f5
Update license and copyright for a project not yet actually released. Final release license TBD. 2022-05-21 13:04:07 -04:00