Commit graph

1946 commits

Author SHA1 Message Date
Adam Ierymenko
5275a34b0b
more refactoring 2020-02-21 07:11:16 -08:00
Adam Ierymenko
c3b5c45fea
Fix InetAddress sizing by delving into crazy C++ weeds, fix Peer compile issues. 2020-02-20 13:55:09 -08:00
Adam Ierymenko
565a686be7
include cleanup 2020-02-20 13:25:56 -08:00
Adam Ierymenko
12cfb6501d
Cleanup in ECC384 including const-correctness, etc. 2020-02-20 13:11:51 -08:00
Adam Ierymenko
de1b54821e
Starting to (re)write unit tests. 2020-02-20 12:54:46 -08:00
Adam Ierymenko
320c8429c2
Yet more perf, security hardening, and compile fix tweaks. 2020-02-20 09:33:11 -08:00
Adam Ierymenko
a4e24c8390
Build fixes 2020-02-19 11:32:16 -08:00
Adam Ierymenko
0589964f99
Yet more cleanup, and add meters to paths. 2020-02-19 11:06:05 -08:00
Adam Ierymenko
1affb6814c
A little more cleanup and build fixes. 2020-02-19 10:32:02 -08:00
Adam Ierymenko
b70ab0d354
Include file cleanup, docs, and build fixes. 2020-02-19 10:18:52 -08:00
Adam Ierymenko
4a9266feef
Comment out not-yet-refactored code in Network 2020-02-19 09:42:11 -08:00
Adam Ierymenko
1e0a930d23
Create a container for identity hashes, replace some "volatile" hacky junk with std::atomic, clean up some security checks, rename raw data in Buf to unsafeData to permit search for unsafe. 2020-02-19 09:28:18 -08:00
Adam Ierymenko
46d3780e89
AES stuff, port sending network credentials to new packet format. 2020-02-18 17:17:10 -08:00
Adam Ierymenko
311c98e24e
Various other small things. 2020-02-18 14:20:49 -08:00
Adam Ierymenko
9ad8dd3700
Add Peer method for getting preferred cipher, various cleanup in VL1 2020-02-18 12:38:48 -08:00
Adam Ierymenko
0dc476518b
Documentation changes, and move HMAC auth on HELLO to before object decoding since this is good cryptographic practice. 2020-02-18 10:31:31 -08:00
Adam Ierymenko
8c8a3c58ec
Various little things... 2020-02-18 06:33:31 -08:00
Adam Ierymenko
a0ac4a744e
Change the type 1 identity a bit to make locallyValidate() super fast, eliminating a scaling issue with v0. 2020-02-17 15:09:26 -08:00
Adam Ierymenko
3448e6fc76
Yet MORE refactoring, including moving expected-reply-to out of Node and into its own class for cleanliness. 2020-02-14 14:12:42 -08:00
Adam Ierymenko
e5c7366e71
Yet more minor refactoring and redesign Meter to be more thread-safe. 2020-02-14 11:34:47 -08:00
Adam Ierymenko
e236d6f743
More minor refactoring 2020-02-14 10:19:45 -08:00
Adam Ierymenko
5db0d9438c
More built-in AES and GMAC primitive work. 2020-02-14 09:05:48 -08:00
Adam Ierymenko
08e06f9b8f
More refactoring and a bunch of AES goodness. 2020-02-13 14:44:18 -08:00
Adam Ierymenko
018fe04163
More nit-picky refactoring. 2020-02-12 14:14:31 -08:00
Adam Ierymenko
f21ecb3762
Yet more major and very nit-picky refactoring for performance, etc. Also use std::atomic<> now with a TODO to implement a shim if we ever do need to build this on a pre-c++11 compiler. 2020-02-12 14:04:25 -08:00
Adam Ierymenko
60de5ed3dd
It almost compiles again 2020-02-07 13:54:17 -08:00
Adam Ierymenko
df4b1e9b12
Yet more work on VL1/VL2 2020-02-07 00:02:29 -08:00
Adam Ierymenko
a9003d16f2
Put Switch in attic too 2020-02-06 18:07:17 -08:00
Adam Ierymenko
84619a7788
A bunch more refactoring including splitting Switch into VL1 and VL2 2020-02-06 18:06:50 -08:00
Adam Ierymenko
7d11522768
Just about everything refactored for new Protocol/Buf code except Switch. 2020-02-03 16:18:33 -08:00
Adam Ierymenko
df346a6df6
Work in progress... clean up memcpy and create an annotation for that, lots more porting to new Buf/Protocol code, etc. 2020-02-03 13:00:13 -08:00
Adam Ierymenko
cdc6c42375
Take Dictionary behind the barn... 2020-01-25 18:02:11 -08:00
Adam Ierymenko
d5b9a54c55
Continuing work on new buffer type... 2020-01-25 01:17:56 -08:00
Adam Ierymenko
59da359b06
More porting to new Buf system. 2020-01-24 23:36:08 -08:00
Adam Ierymenko
91ce4c4ea6
Refactoring protocol marshal/unmarshal code... 2020-01-24 21:16:07 -08:00
Adam Ierymenko
e9656ecf11
More wiring up of addroot/removeroot etc. 2020-01-24 13:27:01 -08:00
Adam Ierymenko
5c6bf9d0a4
Wiring up addroot/removeroot 2020-01-23 18:05:34 -08:00
Adam Ierymenko
0de194dab3
It builds again 2020-01-23 14:41:59 -08:00
Adam Ierymenko
33bb61c63d
Loads of refactoring, integration of new version of Trace. 2020-01-23 13:05:33 -08:00
Adam Ierymenko
d7b31fe014
Warning removal and build fixes. 2020-01-21 12:55:51 -08:00
Adam Ierymenko
782b75a64e
Linux build fixes 2020-01-20 21:27:51 -08:00
Adam Ierymenko
73b23f1b16
Go code cleanup and fixes, other cleanup. 2020-01-20 16:03:19 -08:00
Adam Ierymenko
5a29f9ba2d
cleanup 2020-01-20 11:18:38 -08:00
Adam Ierymenko
03190c5a55
Bunch of build fixes, some docs 2020-01-20 10:40:31 -08:00
Adam Ierymenko
dab968ed96
Put LZ4 in its own file. 2020-01-20 09:38:05 -08:00
Adam Ierymenko
eef70e198b
Version 2.x notice updates and other boring stuff. 2020-01-20 08:46:20 -08:00
Adam Ierymenko
53b7c8f725
Make Peer bootstrap field an Endpoint even though we only support InetAddress right now, and a bunch more stuff. 2020-01-20 08:08:38 -08:00
Adam Ierymenko
3ff9ffd5d4
A bunch of wiring up of stuff... 2020-01-17 14:01:22 -08:00
Adam Ierymenko
b2f0b35608
Move self-test so it can be called from CLI and always builds, implement Endpoint and Locator deserialization in Go as well as C++. 2020-01-14 14:37:49 -08:00
Adam Ierymenko
cba7a5d4d7
Self test is back, wiring up roots again. 2020-01-13 16:35:49 -08:00