Compare commits

..
Author SHA1 Message Date
Adam Ierymenko 7d951783ca A bunch of little warning removal and format fix things. 2020-12-04 15:52:30 -05:00
Adam Ierymenko ec76f6e1d2 Mirror over a few more AES fixes. 2020-12-03 22:29:38 -05:00
Adam Ierymenko c943d0e807 InetAddress fix ported from 1.6 2020-12-03 22:28:40 -05:00
Adam Ierymenko a1ceccaf6e Port back over some improvements from 1.6 2020-11-18 21:56:16 -05:00
Adam Ierymenko 326a871fac Mirror over Mac fixes. 2020-11-02 19:57:57 -05:00
Adam Ierymenko e462750bdd Remove unnecessary includes that are not needed. 2020-10-30 16:14:44 -04:00
Adam Ierymenko 7c599fe83e Typo / thinko 2020-10-27 10:41:46 -04:00
Adam Ierymenko d7e4404c17 A little more clarity to locator display. 2020-10-26 22:41:49 -04:00
Adam Ierymenko 441f4986ac Locator CLI plumbing. 2020-10-26 22:33:01 -04:00
Adam Ierymenko d70cfe6850 typo 2020-10-26 20:32:27 -04:00
Adam Ierymenko 4ed77e0c0f Upgrade Go modules. 2020-10-26 19:41:55 -04:00
Adam Ierymenko f8e3251efe Locator CGo API fixes. 2020-10-26 19:35:10 -04:00
Adam Ierymenko 1bb43476e8 Build fix, add Go unit tests for CGo Locator interface. 2020-10-26 18:44:45 -04:00
Adam Ierymenko 387d293793 Use Base32 everywhere for blobs to be consistent with core. 2020-10-23 18:10:25 -04:00
Adam Ierymenko bd96e53bcc Remove redundant includes. 2020-10-22 16:18:18 -04:00
Adam Ierymenko bab9a7f508 Fix and modernize API peer list function. 2020-10-22 15:53:35 -04:00
Adam Ierymenko 31eb950750 Missing flag. 2020-10-20 18:53:11 -04:00
Adam Ierymenko 31ef205828 ARM build fixes. 2020-10-16 18:29:16 -04:00
Adam Ierymenko a7350bc312 Bust out ARM crypto extensions AES into a separate file too. 2020-10-16 17:41:03 -04:00
Adam Ierymenko 0e396526e4 Some small Go stuff, and break out AES-NI into its own .cpp file for easier management. 2020-10-16 15:04:22 -04:00
Adam Ierymenko 8e5f8140a2 One more thing to move to CAPI.cpp. 2020-10-14 19:02:32 -04:00
Adam Ierymenko 8f746f5099 Move C API into its own source file, and fix some build flags to mirror fix in 1.6.0 to run on old Atom processors. 2020-10-14 18:10:59 -04:00
Adam Ierymenko bc8aa6c359 Mirror over some AES function attribute changes. 2020-10-13 16:10:53 -04:00
Adam Ierymenko 00714f5f2e cleanup 2020-10-08 19:03:46 -04:00
Adam Ierymenko d20470d30f cleanup 2020-09-18 19:54:27 -04:00
Adam Ierymenko c2d14599c5 Make protocol versions same as 1.x series. 2020-08-25 08:06:59 -07:00
Adam Ierymenko 896656115f Build fix for Go 1.15 2020-08-17 14:53:34 -07:00
Adam Ierymenko 72114e4cf8 Remove HTTP stuff from core API. This will be handled entirely in the service. 2020-08-13 17:46:58 -07:00
Adam Ierymenko 2abf2c5695 More certificate stuff... 2020-08-12 21:28:06 -07:00
Adam Ierymenko fe01352412 Cert CLI stuff, module bump. 2020-08-12 16:40:17 -07:00
Adam Ierymenko 782f15f8c9 Small software GMAC optimization. 2020-08-11 20:50:36 +00:00
Adam Ierymenko e0492a7e69 More Go CLI work, and some cleanup. 2020-08-11 13:24:27 -07:00
Adam Ierymenko cb147a3e8a Documentation in CLI, indicate what commands require a running node. 2020-08-10 16:04:05 -07:00
Adam Ierymenko f97e9e1f5d Warning removal, Go work... 2020-08-10 12:35:26 -07:00
Adam Ierymenko f1b6cb2ace GMAC is faster in software now. 2020-08-07 17:33:27 +00:00
Adam Ierymenko 27939a5233 AES performance on rpi4 is now at least acceptable. 2020-08-06 23:09:34 +00:00
Adam Ierymenko 7d5ba6f739 AES on pi4 2020-08-06 14:34:34 -07:00
Adam Ierymenko 37360d5e2e More test timing fixes. 2020-08-06 09:53:33 -07:00
Adam Ierymenko ae13983b10 Fix benchmarks to not take forever on slower chips. 2020-08-06 09:48:07 -07:00
Adam Ierymenko 78670aea58 AES software optimizations to make rpi4 faster. 2020-08-06 09:34:37 -07:00
Adam Ierymenko d0cc3ac333 Small AES optimizations on ARM64. 2020-08-03 23:14:02 +00:00
Adam Ierymenko 4273d89373 Linux/GCC fixes. 2020-07-31 16:18:06 -07:00
Adam Ierymenko 9ef780e05c Build fix-- these are not needed. 2020-07-31 15:48:18 -07:00
Adam Ierymenko 9da0b43d2d Fix some JSON names, regularize use of IP/port info in service code. 2020-07-31 15:32:09 -07:00
Adam Ierymenko 7c929099b3 Change date bump for v2.0 2020-07-31 14:26:55 -07:00
Adam Ierymenko ea2f95ed70 Optimizations, make Locator deserialize the same regardless of serialized field order. 2020-07-31 14:05:54 -07:00
Adam Ierymenko fc39894541 Small fix to reduce memory use a little bit more. 2020-07-31 13:53:11 -07:00
Adam Ierymenko 1fc4dce835 A bunch of cleanup, make Location serialization format saner, reduce core memory use. 2020-07-31 13:27:27 -07:00
Adam Ierymenko 0c56d7c769 Don't kick in AVX2/AVX512 VTEC unless the packet is larger than 256 bytes. 2020-07-30 10:02:37 -07:00
Adam Ierymenko 1f2a107d1d Some formatting. 2020-07-29 22:10:54 -07:00
Adam Ierymenko 4474303b01 Indent fix. 2020-07-29 21:59:53 -07:00
Adam Ierymenko 3b773da8bc Add separate accelerated() function for AES::GMAC. 2020-07-29 21:52:07 -07:00
Adam Ierymenko 7efaab2af1 Add 4X parallel ARM AES so VTEC will kick in, yo. Seems to help on Graviton, not much on small chips but thats okay. 2020-07-30 04:17:01 +00:00
Adam Ierymenko 064cb6dad7 AES-GMAC for ARM crypto extensions (pmull) 2020-07-30 03:45:40 +00:00
Adam Ierymenko d5afba2610 ARM auto-detection (unfinished) 2020-07-29 21:17:17 +00:00
Adam Ierymenko b4d0307d9e Some AES NEON reorg. 2020-07-29 13:37:32 -07:00
Adam Ierymenko 71b72a1ef2 AES (but not yet GMAC) for ARM64 native AES intrinsics, performs really well! 2020-07-29 20:10:27 +00:00
Adam Ierymenko b0e8bac310 Add CMake options to automatically add AArch64 flags for crypto enable, etc. 2020-07-29 09:13:55 -07:00
Adam Ierymenko 9a501a76d1 Starting on AES ARM intrinsics work. 2020-07-28 20:44:19 -07:00
Adam Ierymenko becc4aa8ea More certificate plumbing. 2020-07-28 14:38:41 -07:00
Adam Ierymenko 95d7970f34 Compiler flags, docs. 2020-07-28 09:41:43 -07:00
Adam Ierymenko 81530e5990 Certificate plumbing in Go. 2020-07-27 16:45:43 -07:00
Adam Ierymenko 825b19aedc Code readability improvement. 2020-07-23 15:13:42 -07:00
Adam Ierymenko 0f04b5afc7 Add CRL fields to Go shadow of Certificate. 2020-07-23 15:05:12 -07:00
Adam Ierymenko 189dea7c96 Certificate work, and add an Endpoint attributes field to Locator for future use. 2020-07-22 20:38:57 -07:00
Adam Ierymenko 85ef9535d5 So that's where those NULLs came from... 2020-07-17 21:12:28 -07:00
Adam Ierymenko 71a2206c5d Move a few things. 2020-07-17 10:57:01 -07:00
Adam Ierymenko 641d1a52c8 Warning removal. 2020-07-17 10:49:53 -07:00
Adam Ierymenko 407f737212 A bunch of Topology simplification, integrate some cert and root changes. 2020-07-16 20:04:05 -07:00
Adam Ierymenko 0d58865061 Fix certificte self-test. 2020-07-16 12:30:09 -07:00
Adam Ierymenko cfb0bc4f8e Better CRL implementation, AES fix. 2020-07-16 12:01:24 -07:00
Adam Ierymenko dfe230be8b CRL support 2020-07-16 10:51:54 -07:00
Adam Ierymenko 75ecfffd52 More tweaks. 2020-07-15 16:51:39 -07:00
Adam Ierymenko 883cbd182d Some optimization work on crypto code. 2020-07-15 14:33:02 -07:00
Adam Ierymenko 866a20e85b More small stuff. 2020-07-14 16:34:46 -07:00
Adam Ierymenko a19bc1e826 Cleanup, remove legacy accessors, formatting. 2020-07-14 16:23:53 -07:00
Adam Ierymenko a117c92a1e Module update for Go code. 2020-07-13 15:53:49 -07:00
Adam Ierymenko 65ef40b091 Some Go reorg. 2020-07-13 15:44:54 -07:00
Adam Ierymenko 15f5125c8c Hide some low-level stuff from public certificate API in Go. 2020-07-13 14:54:53 -07:00
Adam Ierymenko e5f2314055 Fix another not-fun bug. Also exterminate a memory leak and do a few optimizations. 2020-07-10 16:38:32 -07:00
Adam Ierymenko f018fefeb4 Even less bugs! 2020-07-09 20:08:08 -07:00
Adam Ierymenko 04d8c3dd79 Now with less bugs! 2020-07-09 14:57:44 -07:00
Adam Ierymenko 7994e3aa78 Merge branch 'edge' of http://git.int.zerotier.com/zerotier/ZeroTierOne into edge 2020-07-09 10:12:31 -07:00
Adam Ierymenko 1eacbdf374 Some cleanup, and fix a really obscure bug in Certificate. 2020-07-09 10:12:24 -07:00
Grant Limberg 492e78e2cf back to not building all archs by default 2020-07-08 10:27:41 -07:00
Adam Ierymenko 8b1c691a5e Merge branch 'edge' of http://git.int.zerotier.com/zerotier/ZeroTierOne into edge 2020-07-07 10:12:49 -07:00
Adam Ierymenko b02fc1f28b CGo hell, fix a thinko in CMakeFile. 2020-07-07 10:12:38 -07:00
Grant Limberg ecf1fe9aa5 had these transposed 2020-07-07 08:57:53 -07:00
Adam Ierymenko 7e341ed397 More certificate plumbing. 2020-07-06 19:28:43 -07:00
Adam Ierymenko e5e6f82a8e Windows build fix. 2020-07-06 15:28:25 -07:00
Adam Ierymenko eca929faef Merge branch 'edge' of http://git.int.zerotier.com/zerotier/ZeroTierOne into edge 2020-07-06 15:16:05 -07:00
Adam Ierymenko b027a83789 Minor stuff... 2020-07-06 15:15:21 -07:00
Grant Limberg 1ad0fbdb76 Revert "fix compilation of zt_service_tests on Windows"
This reverts commit 8f1e6a2fde.
2020-07-06 15:04:46 -07:00
Grant Limberg 8f1e6a2fde fix compilation of zt_service_tests on Windows 2020-07-06 12:45:06 -07:00
Adam Ierymenko 451e6be180 Evil not very fun CGO glue for Certificate works! Also added a self-test project for Go code. Not using "go test" because of CMake build and CGO linking requirements that make it a pain in the derriere. 2020-07-03 16:05:43 -07:00
Adam Ierymenko 7b869684c6 More cert Go plumbing. 2020-07-03 14:42:29 -07:00
Adam Ierymenko 0d764f5a3d CGO glue for certificates, and Go formatting and other boring stuff. 2020-07-03 13:08:40 -07:00
Adam Ierymenko 899f0c9749 Certificate API 2020-07-02 22:22:31 -07:00
Adam Ierymenko 727aa8e71f Warning removal. 2020-07-02 15:03:12 -07:00
Adam Ierymenko 404b7a5493 Even more clever... and would crash if something weird happened, which is desirable. 2020-07-02 13:58:31 -07:00
Adam Ierymenko befc50ac3a Merge branch 'edge' of http://git.int.zerotier.com/zerotier/ZeroTierOne into edge 2020-07-02 13:57:32 -07:00
Adam Ierymenko 94c35d395e A bit more optimization/cleanup. 2020-07-02 13:57:19 -07:00
Grant Limberg 7883e5d8ad Fix cast order of operations 2020-07-02 13:28:58 -07:00
Adam Ierymenko 97cd184211 cleanup 2020-07-02 13:09:59 -07:00
Adam Ierymenko c17ac16728 Windows fix. 2020-07-02 11:53:47 -07:00
Adam Ierymenko b696ab12b8 Merge branch 'edge' of http://git.int.zerotier.com/zerotier/ZeroTierOne into edge 2020-07-02 11:52:34 -07:00
Adam Ierymenko e7ccd74a9e Disable functions missing in MinGW 2020-07-02 11:52:20 -07:00
Grant Limberg 676a3444cd fix s390x static section of jenkinsfile 2020-07-02 11:19:35 -07:00
Adam Ierymenko bd0299f392 Some cleanup and optimization. 2020-07-02 10:33:34 -07:00
Adam Ierymenko e213317532 -lm is needed on some platforms, harmless on others 2020-07-01 12:38:22 -07:00
Adam Ierymenko 206524b9e6 BSD fixes. 2020-07-01 12:30:41 -07:00
Adam Ierymenko 7a458e0138 BSD fixes. 2020-07-01 12:28:44 -07:00
Adam Ierymenko 9db9211ed3 Fix method name problem. 2020-07-01 11:14:01 -07:00
Adam Ierymenko 2ee550bbfd Some optimization. 2020-06-30 23:44:24 -07:00
Adam Ierymenko 9029570452 Test certificate copy/construct. 2020-06-30 23:20:50 -07:00
Adam Ierymenko 6af39da61a Some formatting and optimization. 2020-06-30 22:23:57 -07:00
Adam Ierymenko ad692b07c3 Add CPUID output to self-test. 2020-06-30 20:51:14 -07:00
Adam Ierymenko 3f4809457f A bunch of compile fixes, and an edge case fix in Dictionary. 2020-06-30 20:31:41 -07:00
Adam Ierymenko 53b85a2bbb Merge branch 'edge' of http://git.int.zerotier.com/zerotier/ZeroTierOne into edge 2020-06-30 11:20:50 -07:00
Adam Ierymenko 92d2bbc63c Some symbol renaming, performance improvements, a bug fix for compiling on some platforms, and some Topology work. 2020-06-30 11:20:44 -07:00
Grant Limberg 536be73006 s390x all static 2020-06-30 11:06:33 -07:00
Grant Limberg 115187204f remove debug output 2020-06-30 10:04:19 -07:00
Grant Limberg b482064a55 reenable some temporarily disabled stuff 2020-06-30 09:59:18 -07:00
Grant Limberg 722a50f7be armel image build shortcut 2020-06-29 17:15:18 -07:00
Grant Limberg 623213ea0b fix wheezy symlink 2020-06-29 17:13:56 -07:00
Grant Limberg 0589c4ab6a fix stretch symlink 2020-06-29 17:12:52 -07:00
Grant Limberg 46c4a11a7a fix jessie symlink 2020-06-29 17:11:55 -07:00
Grant Limberg 16d27dfddb fix buster ld symlink 2020-06-29 17:09:15 -07:00
Grant Limberg aee344fe47 kill a couple docker images 2020-06-29 15:18:01 -07:00
Grant Limberg 696c77f5c8 no static builds for armel
no support in Alpine, can't build it
2020-06-29 14:50:52 -07:00
Grant Limberg 8921914098 force use of vendored modules 2020-06-29 14:24:06 -07:00
Grant Limberg f33574dfbc needed on Jessie, too 2020-06-29 13:29:33 -07:00
Grant Limberg e2bc081740 hack to run go on armel containers 2020-06-29 13:17:20 -07:00
Grant Limberg a6d7f7cac2 -latomic for armel 2020-06-29 12:19:25 -07:00
Grant Limberg c714112e00 fix building cmake on arm32 2020-06-29 09:23:48 -07:00
Adam Ierymenko bae91724a1 Certificate passes all tests. 2020-06-27 14:52:55 -07:00
Adam Ierymenko daef6a24d1 Now with less bugs, and less limits that could pose an issue later. 2020-06-27 13:52:12 -07:00
Adam Ierymenko 661ebfee94 Merge branch 'edge' of http://git.int.zerotier.com/zerotier/ZeroTierOne into edge 2020-06-26 13:09:35 -07:00
Adam Ierymenko 73d0e2e7e0 Interim commit of some cert and cert testing work, also other cleanup in Utils. 2020-06-26 13:09:24 -07:00
Grant Limberg 917cc58560 Only build problems left are the compiler errors adam has tickets for 2020-06-25 18:01:27 -07:00
Grant Limberg 1eea80194b apparently not in backports as advertised 2020-06-25 15:40:10 -07:00
Grant Limberg d569217ff5 echo, not cat 2020-06-25 15:38:21 -07:00
Grant Limberg d823725eb6 update alpine base image 2020-06-25 15:23:09 -07:00
Grant Limberg f08d20560b stretch has mips golang 1.11 in backports
don't know if it'll work though
2020-06-25 15:15:16 -07:00
Grant Limberg c0385466e2 no golang packages for buster or stretch on mips64
no mips on stretch at all
2020-06-25 15:07:12 -07:00
Grant Limberg c22b002226 Looks like we have to turn off bullseye 32-bit ARM too 2020-06-25 14:55:01 -07:00
Grant Limberg 9aac1fc47f default BUILD_ALL flag to true for now
since that's what I"m testing now
2020-06-25 14:52:08 -07:00
Grant Limberg 39d4fadf90 add mips64le to debian native build lists 2020-06-25 11:56:32 -07:00
Grant Limberg 4968afb89a no 32-bit arm on sid for the time being 2020-06-25 11:41:09 -07:00
Grant Limberg 8b45018f28 remove ldflag on windows 2020-06-25 09:39:06 -07:00
Grant Limberg 007b3bd10b openssl dev for sid 2020-06-25 08:49:23 -07:00
Adam Ierymenko 5e1b7f2ba6 Certificate stuff, but not plumbled through to CLI yet to actually make them. 2020-06-25 07:40:21 -07:00
Adam Ierymenko 40820ddea9 Merge branch 'edge' of http://git.int.zerotier.com/zerotier/ZeroTierOne into edge 2020-06-24 17:08:19 -07:00
Adam Ierymenko 4fbc29158d A few more things to manually merge in CMakeLists.txt 2020-06-24 17:08:11 -07:00
Adam Ierymenko 6e1115ea03 More cert work, support certs in data store, and manually merge CMakefile. 2020-06-24 17:05:34 -07:00
Grant Limberg d5d1f4a313 forgot the -y on apt-get 2020-06-24 14:59:38 -07:00
Grant Limberg 1e65aad95b args 2020-06-24 14:53:02 -07:00
Grant Limberg 495ac17346 debian mips64 image fixes 2020-06-24 14:51:59 -07:00
Grant Limberg 2f82db97ed blah 2020-06-24 14:46:30 -07:00
Grant Limberg 35f3d16084 bullseye base version 2020-06-24 14:23:30 -07:00
Grant Limberg 29dfe240e4 mips64le updates 2020-06-24 14:21:47 -07:00
Adam Ierymenko aa9ca845e8 Merge edge, still need to resolve CMakeLists.txt 2020-06-24 10:50:16 -07:00
Adam Ierymenko 05a3831acb Certificates, and rename credentials to credential since they are not truly certificates (according to the common definition). 2020-06-24 10:46:59 -07:00
Grant Limberg 9a7d26cd9e fix package name 2020-06-24 10:07:08 -07:00
Grant Limberg ab36607a48 docker & build parallelization 2020-06-24 09:57:38 -07:00
Grant Limberg 02a810b8d6 same issue on sid, apparently 2020-06-23 17:18:54 -07:00
Grant Limberg 2d1ca5f346 cmake version from debian-bullseye doesn't like ARM
so let's build the latest from src
2020-06-23 17:12:52 -07:00
Grant Limberg 65aca7d84a let's not force the build server to swap out when building releases 2020-06-23 16:48:50 -07:00
Grant Limberg d3a9ce95bc more flag fixes 2020-06-23 16:41:55 -07:00
Grant Limberg ee53f056ce fix flags 2020-06-23 16:29:35 -07:00
Grant Limberg f3defdf3a6 one more 2020-06-23 14:42:18 -07:00
Grant Limberg 6d88a13407 fix variable 2020-06-23 14:28:32 -07:00
Grant Limberg 9722bdef75 fix variable name 2020-06-23 13:33:59 -07:00
Grant Limberg f87e41abee jenkinsfile armhf/armel stuff 2020-06-23 12:56:29 -07:00
Grant Limberg d7c6f8ae3f armel/armhf differentiation in builds 2020-06-23 11:49:43 -07:00
Grant Limberg 4d80f7c41d more go static build flags 2020-06-23 09:53:46 -07:00
Grant Limberg de00486b80 no armhf for ubuntu focal 2020-06-23 09:41:45 -07:00
Grant Limberg c2664033bc try to force 32-bit package for centos7 i386 2020-06-23 09:04:45 -07:00
Grant Limberg f96a9f63ea . 2020-06-23 08:53:13 -07:00
Grant Limberg 78b18f2bdb remove centos6 from jenkinsfile 2020-06-23 08:40:24 -07:00
Grant Limberg 8bb0753f62 get cmake from yum for centos8 2020-06-22 16:23:34 -07:00
Grant Limberg 0c5d1a793c fix docker images for static targets 2020-06-22 15:58:49 -07:00
Grant Limberg 34692489cb RIP Centos 6 2020-06-22 15:18:30 -07:00
Grant Limberg 52b619b38f temporarily disable builds of Debian Stretch, FreeBSD, Ubuntu Bionic AMD64, and Ubuntu Xenial 2020-06-22 14:34:23 -07:00
Grant Limberg 9009a864ab re-enable static build packaging with updates 2020-06-22 14:03:27 -07:00
Grant Limberg 09a8b66d3b enable -DPACKAGE_STATIC=1 builds
Only configures the project for packaging of the statically built binary placed in build/
2020-06-22 13:50:35 -07:00
Grant Limberg 7c6f5e2c37 make install works on Linux 2020-06-22 11:00:48 -07:00
Grant Limberg 930bd91598 finish up rpm generation 2020-06-22 09:49:25 -07:00
Grant Limberg 050615f2d2 fix centos7 x64 2020-06-19 16:50:42 -07:00
Grant Limberg 05cc4ea36a dont use __has_include 2020-06-19 16:36:04 -07:00
Grant Limberg 4cafc1b776 extraneous ` in rpm building 2020-06-19 16:32:43 -07:00
Grant Limberg fb559434b6 jenkins builds rpms 2020-06-19 16:24:32 -07:00
Grant Limberg 02493d473f basic RPM package
still needs systemd/init scripts
2020-06-19 16:21:47 -07:00
Grant Limberg 1abcb5adf5 parallelize make 2020-06-19 15:42:33 -07:00
Grant Limberg 1b8703db95 add cmake package args 2020-06-19 15:40:48 -07:00
Grant Limberg 517a171a6c dont split debian description over multiple lines 2020-06-19 15:35:42 -07:00
Grant Limberg b126bf727a non-static build debian packages 2020-06-19 15:33:08 -07:00
Adam Ierymenko cfc2a43f51 A whole bunch of minor refactoring, and rename a bunch of classes to be more canonical. A credential really is not a certficiate, so just call IdentificationCertificate Certificate and call the network auth stuff credentials. 2020-06-18 17:02:36 -07:00
Grant Limberg 0477e16860 freebsd doesn't like the root makefile 2020-06-18 16:31:15 -07:00
Grant Limberg cc13bf1049 fix jenkinsfile 2020-06-18 15:35:35 -07:00
Grant Limberg a66b4a6f5e add freebsd build target 2020-06-18 15:26:29 -07:00
Grant Limberg f989758159 parallelize windows build 2020-06-18 13:46:57 -07:00
Grant Limberg ade8373c0c because reasons 2020-06-18 13:44:19 -07:00
Grant Limberg fa4ecea095 wtf 2020-06-18 13:34:01 -07:00
Grant Limberg 7ae9c6d55c . 2020-06-18 13:19:30 -07:00
Grant Limberg b369d4b9a1 fix 32-bit windows build 2020-06-18 13:01:05 -07:00
Grant Limberg ea5bb43cf9 windows 32bit builds 2020-06-18 11:58:00 -07:00
Grant Limberg 6ea60bc429 let's see if paths with no spaces works 2020-06-18 11:26:57 -07:00
Grant Limberg b094278b64 explicitly set SHELL environment variable 2020-06-18 10:59:46 -07:00
Grant Limberg f21384e499 windows fun 2020-06-18 10:54:31 -07:00
Grant Limberg 620fa9ab54 🤷‍♂️ 2020-06-17 13:26:36 -07:00
Grant Limberg d8c83dbb08 pita 2020-06-17 13:18:01 -07:00
Grant Limberg 992d1471b8 add CMake and Go to Windows PATH 2020-06-17 12:29:03 -07:00
Grant Limberg 27b14aefcd help it find cmd.exe 2020-06-17 12:19:06 -07:00
Grant Limberg a7fee6b02f playing with paths 2020-06-17 12:14:50 -07:00
Grant Limberg cea297b69d enable windows builds 2020-06-17 12:04:29 -07:00
Adam Ierymenko c348bfff30 Fix quote craziness. 2020-06-16 22:33:43 -07:00
Adam Ierymenko 224c468aa3 OMG Windows builds! 2020-06-16 22:26:47 -07:00
Adam Ierymenko a472aafb3e Windows now builds at least to the point of running zt_core_tests. Go will need a revision to the command in CMake files. 2020-06-16 21:21:24 -07:00
Grant Limberg b165b9dd4f another fix 2020-06-16 17:46:22 -07:00
Grant Limberg 7d388e0c79 fix mac jenkins 2020-06-16 17:34:58 -07:00
Grant Limberg 4036657e32 add macos build to jenkins 2020-06-16 16:13:01 -07:00
Grant Limberg d50c6ee1ce need ssl dev 2020-06-16 15:07:31 -07:00
Adam Ierymenko 143f4bef9f Select the right C++ library, hopefully. 2020-06-16 15:00:59 -07:00
Adam Ierymenko 765dc413db Merge branch 'edge' of http://git.int.zerotier.com/zerotier/ZeroTierOne into edge 2020-06-16 15:00:25 -07:00
Grant Limberg 423b0d891c need stdint.h on Windows, too 2020-06-16 14:48:27 -07:00
Grant Limberg 3db0e9d068 use correct dockerfile for Xenial x64 2020-06-16 14:07:40 -07:00
Grant Limberg 1f3f9bc341 for ptrdiff_t 2020-06-16 13:52:26 -07:00
Grant Limberg e84bfca5a5 xenial needs newer cmake, too 2020-06-16 13:45:35 -07:00
Adam Ierymenko bd488a08f8 Merge branch 'edge' of http://git.int.zerotier.com/zerotier/ZeroTierOne into edge 2020-06-16 13:36:48 -07:00
Adam Ierymenko 3c6448a717 Move all CGO flags into CMakeLists.txt so they can inherit all our system detection and stuff. 2020-06-16 13:36:43 -07:00
Grant Limberg 0a2dfc719a fix centos 7 & debian stretch 2020-06-16 13:33:05 -07:00
Adam Ierymenko f0fc4713d8 Merge branch 'edge' of http://git.int.zerotier.com/zerotier/ZeroTierOne into edge 2020-06-16 13:01:20 -07:00
Grant Limberg b2132aa975 needs libssl dev 2020-06-16 12:19:31 -07:00
Grant Limberg 7739984c56 typo 2020-06-16 12:11:48 -07:00
Grant Limberg 034188b0ee reset WORKDIR back to root once built 2020-06-16 12:07:20 -07:00
Grant Limberg 98ea27ecb0 have to build & install cmake on non-x64 versions of debian stretch 2020-06-16 11:59:08 -07:00
Adam Ierymenko 8d2a0f764b Some minor reorg. 2020-06-16 11:51:41 -07:00
Grant Limberg 6c43e0b946 add scl-utils 2020-06-16 11:28:42 -07:00
Grant Limberg 77342f8571 try setting scl_source on centos7 for newer compilers 2020-06-16 10:40:01 -07:00
Grant Limberg e808b4b45f add ubuntu focal builds 2020-06-16 10:26:48 -07:00
Grant Limberg 86d91cb625 no ubuntu 20.04 for ArmV7 2020-06-16 10:10:51 -07:00
Grant Limberg 3f21e59ab4 more DEBIAN_FRONTEND=noninteractive 2020-06-16 09:53:42 -07:00
Grant Limberg 3669cac3c9 apparently apt now asks for your region interactively. Even in a docker image 2020-06-16 09:50:16 -07:00
Grant Limberg b919f5a95b helps to load the correct dockerfile 2020-06-16 09:46:42 -07:00
Grant Limberg 5e6484ff5a add docker images for ubuntu 20.04 2020-06-16 09:08:26 -07:00
Adam Ierymenko ecb09aa2e1 Fix bounds check bug. 2020-06-15 16:30:52 -07:00
Adam Ierymenko 346d4b572b Fix symbol issues in static build. 2020-06-15 15:02:07 -07:00
Grant Limberg 1a38dfdbde back to go main 2020-06-15 13:51:24 -07:00
Adam Ierymenko 69f1c8701b Define uint since that is not a standard symbol. 2020-06-15 13:13:03 -07:00
Adam Ierymenko 9daf4540de Certificates, and it builds again. 2020-06-15 11:17:24 -07:00
Adam Ierymenko f447608d6b Certificates, etc... work in progress. 2020-06-13 21:41:39 -07:00
Grant Limberg 001fb54b15 fix go static command line 2020-06-12 16:08:34 -07:00
Grant Limberg ffc786d796 update make call for static 2020-06-12 15:59:53 -07:00
Grant Limberg a1649d6cda trying again for static build. also add static go flags 2020-06-12 15:58:00 -07:00
Grant Limberg 541b2cbef0 . 2020-06-12 15:49:28 -07:00
Grant Limberg 5166aa6913 added static build option 2020-06-12 15:43:12 -07:00
Grant Limberg b88000c349 . 2020-06-12 15:39:02 -07:00
Grant Limberg 49eefe7e78 rename error for static 2020-06-12 15:31:34 -07:00
Grant Limberg bfdac7a8f0 use alpine go package 2020-06-12 15:21:48 -07:00
Grant Limberg d9dd77bc6e let cgo find versionl.h 2020-06-12 15:09:31 -07:00
Grant Limberg e46a342e17 ensure version.h is in the include path 2020-06-12 14:57:41 -07:00
Grant Limberg 760607f58a static alpine builds reenabled 2020-06-12 14:46:48 -07:00
Grant Limberg 35b5780907 remove __has_include 2020-06-12 14:44:25 -07:00
Grant Limberg 51159601b0 one more time 2020-06-12 14:27:34 -07:00
Grant Limberg 4cb35a2975 yes pipe too 2020-06-12 13:58:50 -07:00
Grant Limberg 405250ce79 tell curl to follow redirects 2020-06-12 13:56:44 -07:00
Grant Limberg 81b11168c9 centos 8 update 2020-06-12 13:48:31 -07:00
Grant Limberg 066cdfe2ac alternate newer cmake install 2020-06-12 13:46:40 -07:00
Grant Limberg 062189b589 add sid 32bit 2020-06-12 11:40:34 -07:00
Grant Limberg a11d0027ce cast to uintptr_t instead
should fix non 64-bit platforms
2020-06-12 09:22:58 -07:00
Grant Limberg c9ae7e811f Should fix non x64 platforms
Need adam to check
2020-06-12 09:22:17 -07:00
Grant Limberg 47ec246520 try to force 32 bit with BUILD_32BIT flag. force VERBOSE=1 cmake build too 2020-06-10 16:19:39 -07:00
Grant Limberg 42104cfc4c go wrangling 2020-06-10 15:56:16 -07:00
Grant Limberg 1bab9b202f default off 2020-06-10 15:40:14 -07:00
Grant Limberg 74ce98f39b set CMAKE_SYSTEM_PROCESSOR to x86 2020-06-10 15:39:48 -07:00
Grant Limberg 3268effabf enable 32bit builds on 64-bit hosts 2020-06-10 15:31:40 -07:00
Grant Limberg 96965647bc wtf 2020-06-10 14:51:44 -07:00
Grant Limberg 808ab715d9 forgot to save a few files 2020-06-10 13:02:38 -07:00
Grant Limberg fa1e16085b permissions in docker containers 2020-06-10 12:40:44 -07:00
Grant Limberg dd46e56af2 add include <mmintrin.h> 2020-06-10 12:27:22 -07:00
Grant Limberg d8d871745e add cmake 2020-06-10 10:50:01 -07:00
Grant Limberg 09c9e338bc needs /bin? 2020-06-10 09:51:57 -07:00
Grant Limberg df9483408d CMake error if go not found 2020-06-10 09:33:48 -07:00
Grant Limberg cb342bfb12 make GCC happy 2020-06-09 15:30:01 -07:00
Grant Limberg 04266a1180 don't build static binaries yet. Don't have the build config in there for it yet 2020-06-09 14:49:37 -07:00
Grant Limberg 86eda5fe65 use zerotier as binary name for 2.0 2020-06-09 14:31:00 -07:00
Grant Limberg bc1fa3bf20 make it easier to update go version for docker build containers 2020-06-09 14:29:40 -07:00
Grant Limberg e63920404c copy over dockerbuild files for releases 2020-06-09 14:16:36 -07:00
Grant Limberg 4833478eee Fix linux link ordering and add Dockerfile for central controllers
Builds but obviously won't actually do anything yet
2020-06-09 14:14:11 -07:00
Grant Limberg c8b6850520 add central controller build target 2020-06-09 14:14:06 -07:00
Adam Ierymenko 938cbba449 Root set stuff, code formatting and other boring stuff. 2020-06-09 12:26:52 -07:00
Grant Limberg c8f640f3f2 compile go code to static library & call via main.cpp
This allows CMake to manage the linkage of C/C++ libraries rather than an exponentially growing list of cgo directives based on build options
2020-06-09 12:03:16 -07:00
Grant Limberg 2272189955 macOS: link static versions of lipq and libhiredis on mac
will need to grab them via homebrew
2020-06-08 16:14:01 -07:00
Grant Limberg 736edeeed0 figure out conditional compilation & cgo based on go build tags 2020-06-08 15:54:10 -07:00
Adam Ierymenko bf33368add Merge branch 'edge' of http://git.int.zerotier.com/zerotier/ZeroTierOne into edge 2020-06-08 14:45:08 -07:00
Adam Ierymenko 40d48c969c Some cleanup, revision to Endpoint string format, stub out HTTP API callbacks. 2020-06-08 14:41:13 -07:00
Grant Limberg 17f0dc9ba2 2.0 compiles with postgres/redis controller code
Probably doesn't work yet
2020-06-08 14:11:07 -07:00
Adam Ierymenko 016d85b169 Code formatting and similar. 2020-06-08 11:47:28 -07:00
Grant Limberg 2bceabdfa5 add redis dependencies for central controller 2020-06-08 11:23:41 -07:00
Adam Ierymenko d18c33d6df Code cleanup, Linux build fixes. 2020-06-05 22:18:58 -07:00
Adam Ierymenko e2ca065f28 Cleanup, revise join command 2020-06-05 16:36:31 -07:00
Adam Ierymenko fe28501126 Also clean CLion directories. 2020-06-05 14:40:04 -07:00
Adam Ierymenko 73795d05eb Reorg done and builds 2020-06-05 14:38:35 -07:00
Adam Ierymenko af846f7e3f Fix clean 2020-06-05 13:45:43 -07:00
Adam Ierymenko a0374da4f3 Reorg. 2020-06-05 13:42:34 -07:00
Adam Ierymenko 4e44fa009c Clean up gitignore 2020-06-05 13:31:10 -07:00
Adam Ierymenko 3dd2c94f4e Moar reorganization. 2020-06-05 13:26:35 -07:00
Adam Ierymenko 6da8f2bb05 Temporarily stash stuff in attic that needs update before beta/release. 2020-06-05 13:06:01 -07:00
Adam Ierymenko e21fcb8104 Reorg. 2020-06-05 13:05:28 -07:00
Adam Ierymenko 3c11c13af4 More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Adam Ierymenko d3cf7b2202 Reorg. 2020-06-05 12:56:20 -07:00
Adam Ierymenko 03bcdf74a8 Some CLI help updates, some code formatting, pre-reorg. 2020-06-05 12:49:35 -07:00
Adam Ierymenko 45b90a0dfa Formatting and boring stuff 2020-06-05 10:41:32 -07:00
Adam Ierymenko 9babfcb9b6 A bunch more go plumbing. 2020-06-04 16:03:11 -07:00
Adam Ierymenko 1b2a4f00f2 Take like ten on the addRoot thing, making it even simpler. Explicit locator commands are still present but they will remain just for use in creating subscriptions etc. 2020-06-04 10:32:13 -07:00
Adam Ierymenko 90b5acfca6 Docs, simplification. 2020-06-04 07:16:15 -07:00
Adam Ierymenko 741f7814c2 Various build fixes. 2020-06-03 22:15:19 -07:00
Adam Ierymenko a4ae4941c3 Try to ignore temporary IPv6 addresses, fix Peer serialization, add an endpoint cache to Peer, some more Go stuff. 2020-06-03 22:03:34 -07:00
Adam Ierymenko 8a6ef33c4a revert 2020-06-03 12:27:35 -07:00
Adam Ierymenko 5ac2596429 More CLI work, link go.mod and go.sum for some Go editors to work. 2020-06-03 11:59:24 -07:00
Adam Ierymenko 5dac2e82a7 A bunch of tweaks around CLI parameters and string formats of things. 2020-06-02 11:37:04 -07:00
Adam Ierymenko 8e29acd664 Causes build problems, revert. 2020-06-01 16:24:12 -07:00
Adam Ierymenko 1d29bc3e8e Move go.mod and go.sum into base. 2020-06-01 16:07:49 -07:00
Adam Ierymenko dc1ef0c49e Code formatting and other boring stuff. 2020-06-01 15:40:00 -07:00
Adam Ierymenko 1003455160 Cleanup. 2020-05-31 15:30:24 -07:00
Adam Ierymenko 20ae12d385 Clean up some NAT traversal code, modify algorithm to eliminate the need for toggle-able options. 2020-05-31 15:11:47 -07:00
Adam Ierymenko dcc686a3a7 Docs, YAGNI removal, use locator endpoints in peer contact attempts. 2020-05-31 06:47:56 -07:00
Adam Ierymenko 89c27c112a Flesh out tests, fix a signing bug. 2020-05-30 19:08:45 -07:00
Adam Ierymenko 3621fe8897 Some AES cleanup and include controller with Go build. 2020-05-30 17:03:12 -07:00
Adam Ierymenko 33269cd29d Some CGo fixes. 2020-05-30 12:07:52 -07:00
Adam Ierymenko 1970dab13d Move some toString/fromString to C++ since any ZT code base would need it, and stub out the controller commands. 2020-05-30 11:42:59 -07:00
Adam Ierymenko a5390b1bc8 Plumb new locator code through to Go, fix some cgo issues, fix some compiler warnings. 2020-05-29 10:16:38 -07:00
Adam Ierymenko 864e33cf2d A bunch of build fixes. 2020-05-29 07:06:00 -07:00
Adam Ierymenko b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 2020-05-29 06:30:02 -07:00
Adam Ierymenko caad356b93 A bunch of go fixes, wire up root add/delete. 2020-05-25 18:05:34 -07:00
Adam Ierymenko 964c235ecf Golang fixes 2020-05-25 14:23:48 -07:00
Adam Ierymenko c881094202 Warning removal. 2020-05-25 09:55:47 -07:00
Adam Ierymenko 6051c973d3 A bunch of warning removal, build fixes, and cleanup. 2020-05-25 09:48:18 -07:00
Adam Ierymenko 1f9717250c Update release notes, rip out trusted paths which were clunky and rarely used and of dubious value, and some other cleanup. 2020-05-21 13:04:27 -07:00
Adam Ierymenko 8ebbbc33cc Clean up and revise how roots are added/specced. 2020-05-21 11:21:39 -07:00
Adam Ierymenko 98bcff1928 Warning fix. 2020-05-19 15:03:30 -07:00
Adam Ierymenko cef708c8ad Build fixes. 2020-05-19 15:01:52 -07:00
Adam Ierymenko a925e2d783 Build fixes. 2020-05-19 14:02:32 -07:00
Adam Ierymenko a1193f0e30 A few AES-GMAC-SIV tweaks to use a bit more IV state. 2020-05-19 12:18:50 -07:00
Adam Ierymenko f209037efe Cleanup, slightly slow down V1 identity generation, faster Salsa20 (by a bit). 2020-05-19 10:13:12 -07:00
Adam Ierymenko b99dd7d916 Fix code generation for AES stuff so it runs on chips that do not have AVX or VAES. 2020-05-18 16:50:05 -07:00
Adam Ierymenko aad21cf395 Blazing fast VAES (256 and 512) AES-CTR, Identity fixes, test fixes. 2020-05-18 16:29:41 -07:00
Adam Ierymenko d537428421 Build fixes. 2020-05-18 09:44:23 -07:00
Adam Ierymenko 996589894d Build fixes 2020-05-14 11:53:45 -07:00
Adam Ierymenko d3777b3eb4 A bunch of boring formattings stuff, etc. 2020-05-14 10:55:41 -07:00
Adam Ierymenko 52e1f5502d More VL1 work after re-re-re-refactor... 2020-05-13 14:26:53 -07:00
Adam Ierymenko 664a128e9e Yet more work in progress... mostly cleanup and re-implementation without depending on struture padding. 2020-05-11 13:08:55 -07:00
Adam Ierymenko 666d44b14a More endless work in progress... 2020-05-06 10:42:09 -07:00
Adam Ierymenko b533c300d8 A ton more work... almost there 2020-04-28 19:52:09 -07:00
Adam Ierymenko 78d223d709 A bunch more cleanup, remove a ton of reinterpret_cast cruft in favor of a simple union in InetAddress. 2020-04-16 16:01:39 -07:00
Adam Ierymenko 2b0127c26d Work in progress on crypto stuff, refactoring to back out of use of structs for encode/decode as it is questionably portable. 2020-04-16 12:34:51 -07:00
Adam Ierymenko 16a3c14c53 A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Adam Ierymenko c65391a344 Add symmetric key container, tons of cleanup. 2020-04-06 16:54:35 -07:00
Adam Ierymenko fbf4ae823b Clean up timing stuff in Peer and make it more rational, implement some more P2P stuff, rename some methods, cleanup cleanup cleanup. 2020-04-03 10:18:46 -07:00
Adam Ierymenko 3d6d9c5808 LINT cleanliness. 2020-03-31 14:30:02 -07:00
Adam Ierymenko 64c533c189 More warning removal. 2020-03-31 14:09:17 -07:00
Adam Ierymenko 7fd78a87d1 Use static_assert more. 2020-03-31 13:45:05 -07:00
Adam Ierymenko b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 2020-03-31 12:35:54 -07:00
Adam Ierymenko afa01074c5 File this idea away. 2020-03-31 11:03:02 -07:00
Adam Ierymenko 1f85b0402e Just use unordered_map, and some other cleanup. 2020-03-31 09:01:58 -07:00
Adam Ierymenko b3314cd34f Small build fixes. 2020-03-30 18:09:11 -07:00
Adam Ierymenko 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. 2020-03-30 17:28:23 -07:00
Adam Ierymenko 0d05e4bcae Remove capability chain of custody stuff which was never used and was really overly complex and a potential source of security problems. 2020-03-28 12:06:10 -07:00
Adam Ierymenko 87da45b3f5 Faster hash table, various other optimizations and simplification. 2020-03-28 01:06:29 -07:00
Adam Ierymenko cbf174f96d Warning removal. 2020-03-27 19:35:37 -07:00
Adam Ierymenko 0aa78d0ecb Small fixes. 2020-03-27 19:03:09 -07:00
Adam Ierymenko a87d4f1864 Build fix. 2020-03-27 17:26:49 -07:00
Adam Ierymenko c0e86de6db Forgot one spot. 2020-03-27 17:25:05 -07:00
Adam Ierymenko 60fa07bff2 Implement fingerprint option on join in Go land 2020-03-27 17:02:44 -07:00
Adam Ierymenko 1df7f21f5f Add ability to fully specify controller fingerprint on join for the paranoid. 2020-03-27 16:36:38 -07:00
Adam Ierymenko 674edab814 docs 2020-03-27 15:09:09 -07:00
Adam Ierymenko 369df245e3 Some perf stuff, docs, HELLO design tweaks for ephemeral keys. 2020-03-27 13:09:37 -07:00
Adam Ierymenko 1f2e94a51d Some optimization and raw memory access cleanup. 2020-03-27 07:40:14 -07:00
Adam Ierymenko 3f32cffc40 dead code removal 2020-03-26 15:56:26 -07:00
Adam Ierymenko 3914964a35 AES docs 2020-03-26 15:55:31 -07:00
Adam Ierymenko bedf63e257 Some minor security tightening stuff and AES fixes. 2020-03-26 13:54:15 -07:00
Adam Ierymenko d151d731a6 (1) Mask bit 31 of AES-CTR nonce to disallow uint32 overflow, (2) get rid of handling of uint32/uint64 overflow in our AES-CTR code to optimize, (3) optimize AES software a bit 2020-03-26 10:28:59 -07:00
Adam Ierymenko 2d862f1d32 Little comments and stuff 2020-03-26 08:38:23 -07:00
Adam Ierymenko f92fca03a0 Update SIV diagram, length pad AAD. 2020-03-25 15:09:49 -07:00
Adam Ierymenko b5c01999b8 More tweaks to COM stuff. 2020-03-25 14:10:26 -07:00
Adam Ierymenko e9da35bac3 Harden some stuff around COMs and members of networks. 2020-03-25 13:21:50 -07:00
Adam Ierymenko d3a7468e83 Implement AES-GMAC-SIV and benchmark, rework COM and add a lot of comments and docs, and comments and docs elsewhere too. 2020-03-25 09:05:44 -07:00
Adam Ierymenko f3540a5c7c Linux build fixes, warning removal. 2020-03-24 08:39:54 -07:00
Adam Ierymenko 8cf6808c50 build fix 2020-03-23 16:24:39 -07:00
Adam Ierymenko 274db26339 Fix accidentally removed file. 2020-03-23 16:15:36 -07:00
Adam Ierymenko 490b9c4d79 Moar build fixes, clock perf improvement. 2020-03-23 16:12:45 -07:00
Adam Ierymenko 2da096944d Everything but root builds now. Back to testing. 2020-03-18 07:20:04 -07:00
Adam Ierymenko 83f830618f It almost builds! 2020-03-17 16:27:31 -07:00
Adam Ierymenko cdbb86b830 ARM64 stuff 2020-03-16 09:57:51 -07:00
Adam Ierymenko 483b47474d ARM64 stuff 2020-03-16 09:51:18 -07:00
Adam Ierymenko 1d314858ef ARM64 build fixes 2020-03-16 09:27:56 -07:00
Adam Ierymenko 37d4e83fad ARM64 build fixes 2020-03-16 09:24:57 -07:00
Adam Ierymenko c7f3f3add9 Small fix, docs, warning removal. 2020-03-16 06:14:41 -07:00
Adam Ierymenko 1c7baa544b Reduce PoW cost just a bit. 2020-03-15 20:14:35 -07:00
Adam Ierymenko 3408839b33 build fix 2020-03-15 20:07:21 -07:00
Adam Ierymenko a7409486bb minor stuff 2020-03-15 19:44:40 -07:00
Adam Ierymenko cf24ed4108 This PoW seems decent 2020-03-15 14:08:53 -07:00
Adam Ierymenko 8a379ba0a1 The MIMC thing was neat but unfortunately is amenable to too much GPU acceleration. 2020-03-14 20:29:44 -07:00
Adam Ierymenko 4b20638568 more test fixes 2020-03-14 15:27:01 -07:00
Adam Ierymenko eebe2046f0 docs 2020-03-14 12:17:30 -07:00
Adam Ierymenko 1e457dbd76 Fix tests, fix identity issue 2020-03-14 12:08:40 -07:00
Adam Ierymenko a20aebaaf8 Some work on delay function... which is delaying us... but need to get it right because its hard as hell to change later. 2020-03-09 15:19:58 -07:00
Adam Ierymenko 5463c70aaf Minor stuff, and some docs 2020-03-06 12:18:20 -08:00
Adam Ierymenko 24e30a684b A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
Adam Ierymenko 05e52493a4 Go module update 2020-03-03 07:41:15 -08:00
Adam Ierymenko d8f1e01b77 cleanup 2020-03-03 07:40:19 -08:00
Adam Ierymenko da5b11bf2d Rename version constants to something more canonical, and more cleanup. 2020-03-03 07:38:51 -08:00
Adam Ierymenko b824ea7bcf Add buffer life cycle stuff to API for fewer memcpys. 2020-03-02 17:15:00 -08:00
Adam Ierymenko b96ea5ae03 Fingerprint string conversion, API stuff 2020-03-02 15:13:34 -08:00
Adam Ierymenko fbd3e10488 cleanup 2020-03-02 14:41:15 -08:00
Adam Ierymenko 51f0882849 comments 2020-03-02 14:39:42 -08:00
Adam Ierymenko 416068f68e Regularize use of fingerprint concept across code. 2020-03-02 12:09:38 -08:00
Adam Ierymenko a8db4a8d2d Minor future proofing and cleanup in CertificateOfMembership, improve comments in a few places. 2020-03-02 10:25:15 -08:00
Adam Ierymenko 6b49148d4e More cross-platform build fixes and add tests for hton/ntoh/other byte order stuff because breakage there would be annoying. 2020-02-28 11:27:30 -08:00
Adam Ierymenko 77e59818a3 dead code removal 2020-02-27 15:59:39 -08:00
Adam Ierymenko 6262374205 Add tests for identity marshal/unmarshal and fix an issue found. 2020-02-27 15:40:31 -08:00
Adam Ierymenko ed8271530f cleanup 2020-02-27 14:54:15 -08:00
Adam Ierymenko 8e4d7c56d8 Stub out a protocol field in Endpoint INETADDR types for future use. 2020-02-27 14:24:11 -08:00
Adam Ierymenko 0598315d68 Fix V1 sample ID 2020-02-27 12:59:00 -08:00
Adam Ierymenko 05e5d08959 A little more delay margin 2020-02-27 12:13:12 -08:00
Adam Ierymenko ca33eaf28d FPU trick seems to always be faster 2020-02-27 12:09:26 -08:00
Adam Ierymenko 13e86fdb6c lalala build fixes 2020-02-27 11:57:45 -08:00
Adam Ierymenko ffbd18f4ef build fix 2020-02-27 11:52:32 -08:00
Adam Ierymenko fabb0f734a build fix 2020-02-27 11:47:01 -08:00
Adam Ierymenko 1e59d92df3 warning removal 2020-02-27 11:45:56 -08:00
Adam Ierymenko ecd09946e6 warning removal 2020-02-27 11:45:06 -08:00
Adam Ierymenko 789b8b8454 compile fix 2020-02-27 11:43:54 -08:00
Adam Ierymenko f107a71796 docs, compile fixes. 2020-02-27 11:42:00 -08:00
Adam Ierymenko 066b4c27a4 tweaks 2020-02-27 10:31:55 -08:00
Adam Ierymenko fbfa99fac5 Speed up V1 identity verification a little, and add some comments. 2020-02-27 09:43:58 -08:00
Adam Ierymenko c5bd21a23e various optimization 2020-02-26 17:00:03 -08:00
Adam Ierymenko 1c7e1da4d1 cleanup, docs 2020-02-26 12:40:29 -08:00
Adam Ierymenko 5cec5fe6b1 Make Fingerprint (a full length identity hash) a first class type 2020-02-26 11:39:18 -08:00
Adam Ierymenko ea0961dfd2 docs 2020-02-26 11:32:54 -08:00
Adam Ierymenko f20905b08a Throw some more mulmod52 implementations in there (but currently disabled) for future use so we do not have to hunt them down again. 2020-02-26 11:31:03 -08:00
Adam Ierymenko 83e79e1a1b V1 identities now use a VDF (verifiable delay function) 2020-02-26 11:08:03 -08:00
Adam Ierymenko c6a7b5774c MIMC52 2020-02-26 09:58:28 -08:00
Adam Ierymenko 27ab88db1e little stuff 2020-02-25 16:21:51 -08:00
Adam Ierymenko 1b71b6d01a hash() -> fingerprint() 2020-02-25 16:15:14 -08:00
Adam Ierymenko dcb3d49d35 Cleanup, Address refactoring, tweak V1 identity generation a bit. 2020-02-25 16:08:27 -08:00
Adam Ierymenko 5c14a072d5 rename 2020-02-25 06:03:24 -08:00
Adam Ierymenko 4eb491065b clean out old files 2020-02-25 06:03:04 -08:00
Adam Ierymenko b87e8d8e41 readability++ 2020-02-25 06:00:52 -08:00
Adam Ierymenko a58f11e601 Tweak protocol getPacketId(), unit tests for defragmenter, AES fix. 2020-02-25 05:36:48 -08:00
Adam Ierymenko 547f39bb49 Fixes for Buf, unit test 2020-02-24 15:40:19 -08:00
Adam Ierymenko df99f5e3f3 More crypto benchmarks 2020-02-24 14:44:20 -08:00
Adam Ierymenko 15e88a8b7e MOAR AES V-TEC 2020-02-24 13:53:50 -08:00
Adam Ierymenko 61b72d42b8 More AES tweaks 2020-02-24 13:30:35 -08:00
Adam Ierymenko 56bf504ec2 Small AES tweak 2020-02-24 12:48:56 -08:00
Adam Ierymenko 1f02250dd8 Ridiculously fast AES-CTR 2020-02-24 11:56:37 -08:00
Adam Ierymenko 5d0c6db19c Crypto fixes and benchmarks. 2020-02-21 19:32:36 -08:00
Adam Ierymenko 4af3467757 AES-CTR test vectors and fixes to CTR code. 2020-02-21 17:22:26 -08:00
Adam Ierymenko 87890565f3 It builds, and basic stuff and crypto passes tests. 2020-02-21 16:43:12 -08:00
Adam Ierymenko d603a73715 Build fixes. 2020-02-21 15:58:28 -08:00
Adam Ierymenko 55b0555aa0 A bunch more build fixes. 2020-02-21 14:46:01 -08:00
Adam Ierymenko 1a2378a3d4 More crypto unit tests. 2020-02-21 12:20:57 -08:00
Adam Ierymenko c6ce6b46ce build fixes 2020-02-21 08:44:53 -08:00
Adam Ierymenko f109f2e612 Identity v1 hash tweak 2020-02-21 08:10:43 -08:00
Adam Ierymenko 8f8e3f4960 OS/platform include cleanup 2020-02-21 08:01:58 -08:00
Adam Ierymenko 1d885cf810 Build fixes, put uint128_t detection in one place. 2020-02-21 07:25:43 -08:00
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 c3d3605f70 Merge branch 'edge' of http://git.int.zerotier.com/zerotier/ZeroTierOne into edge 2020-02-06 18:07:22 -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
Grant Limberg db127887b6 libssl-dev on trusty images 2020-02-05 10:57:29 -08:00
Grant Limberg e0588b89b2 libssl-dev 2020-02-04 12:48:58 -08:00
Grant Limberg 7d2eceef01 no building cmake on wheezy either 2020-02-04 12:36:39 -08:00
Grant Limberg e5e444c7ae can't even build cmake on Centos 6. Will need another method for packaging 2020-02-04 12:08:47 -08:00
Grant Limberg 4b083b8c41 more dependencies 2020-02-04 12:06:26 -08:00
Grant Limberg 245d92b40c add openssl-devel to centos images 2020-02-04 11:46:09 -08:00
Grant Limberg 931ad1aca8 Add CMake to all the docker images 2020-02-04 11:38:42 -08:00
Grant Limberg 5e488d3aa0 fix PATH 2020-02-04 10:33:18 -08:00
Grant Limberg cc52835ce3 remove unneeded output 2020-02-04 09:39:13 -08:00
Adam Ierymenko 7d11522768 Just about everything refactored for new Protocol/Buf code except Switch. 2020-02-03 16:18:33 -08:00
Grant Limberg 417cdc17dc Skip generating packages on edge as that's not reimplemented in CMake yet 2020-02-03 14:00:46 -08:00
Grant Limberg c537955c65 ensure go is in the PATH for jenkins builds 2020-02-03 13:57:03 -08:00
Grant Limberg a0efea8e0f Merge branch 'dev' into edge
# Conflicts:
#	.gitignore
#	Jenkinsfile
#	attic/macui/ZeroTier One.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
#	attic/service/OneService.cpp
2020-02-03 13:54:49 -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 e6273b3300 cleanup 2020-01-21 13:12:07 -08:00
Adam Ierymenko d7b31fe014 Warning removal and build fixes. 2020-01-21 12:55:51 -08:00
Adam Ierymenko 5aae5f95bf Merge commit 'bba132414527f1742dd1ca550dad5ecce94dfa40' into edge 2020-01-21 11:05:12 -08:00
Adam Ierymenko bba1324145 One more sanity check. 2020-01-21 11:04:18 -08:00
Adam Ierymenko 182561f7e6 Port checking fixes. 2020-01-21 11:00:06 -08:00
Adam Ierymenko 41871c8b1e Merge commit 'ff655292fba09c0a0d1ed4b4dda738c165ad4404' into edge 2020-01-21 10:59:44 -08:00
Adam Ierymenko ff655292fb Allocate packet on heap, add extra sanity checks on packet size. 2020-01-21 10:58:41 -08:00
Adam Ierymenko 782b75a64e Linux build fixes 2020-01-20 21:27:51 -08:00
Adam Ierymenko 0c58901469 cleanup 2020-01-20 21:05:29 -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 b598263261 More 2.x notice updates. 2020-01-20 08:49:10 -08:00
Adam Ierymenko eef70e198b Version 2.x notice updates and other boring stuff. 2020-01-20 08:46:20 -08:00
Adam Ierymenko 89c41f88a4 Module version bump, vendor, cleanup 2020-01-20 08:23:30 -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 d471142908 Merge branch 'edge' of http://git.int.zerotier.com/zerotier/ZeroTierOne into edge 2020-01-17 14:01:32 -08:00
Adam Ierymenko 3ff9ffd5d4 A bunch of wiring up of stuff... 2020-01-17 14:01:22 -08:00
Grant Limberg 2558bd1b9b include iomanip 2020-01-16 09:11:12 -08:00
Grant Limberg 95d0944b9f add /metrics endpoint for exposing root metrics to Prometheus 2020-01-16 09:08:52 -08:00
Grant Limberg 6e72b6fb37 Merge branch 'edge' of http://git.int.zerotier.com/zerotier/ZeroTierOne into edge 2020-01-15 16:12:51 -08:00
Grant Limberg 0c9be4de14 add /metrics endpoint for exposing root metrics to Prometheus 2020-01-15 16:12:34 -08:00
Adam Ierymenko b53b7f4950 . 2020-01-14 15:34:06 -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
Grant Limberg 8e1a88c2fb Merge branch 'edge' of http://git.int.zerotier.com/zerotier/ZeroTierOne into edge 2020-01-13 15:32:31 -08:00
Adam Ierymenko ee5a988f14 Wiring back up PUSH_DIRECT_PATHS and friends. 2020-01-13 14:04:17 -08:00
Adam Ierymenko f814a07ab3 Go build works now 2020-01-10 22:12:56 -08:00
Adam Ierymenko a5aea2f3bb Everything but the Go code builds now! 2020-01-10 21:09:13 -08:00
Adam Ierymenko 7291ac2093 A bunch more cleanup and build fixes, and remove old version of multipath code to prep for new version. 2020-01-10 20:40:14 -08:00
Adam Ierymenko 790fe50fac Go code cleanup for new changes 2020-01-10 16:54:01 -08:00
Adam Ierymenko 83eacdfada New Buffer implementation (not used yet) and cleanup 2020-01-10 15:28:27 -08:00
Adam Ierymenko 2fbeaaf148 Bunch more fixes, implement C API for Identity operations. 2020-01-09 13:50:51 -08:00
Adam Ierymenko 57710cbc38 . 2020-01-09 08:39:47 -08:00
Adam Ierymenko 8bae0acaf9 More cleanup and build fixes, almost builds again! 2020-01-08 21:48:01 -08:00
Adam Ierymenko ef64e6a336 Build fixes, cleanup 2020-01-08 21:24:47 -08:00
Adam Ierymenko 9642ff5fb9 . 2020-01-08 18:08:41 -08:00
Adam Ierymenko 263798d1c3 cleanup 2020-01-07 14:04:08 -08:00
Adam Ierymenko 3fbfad5585 cleanup 2020-01-07 14:03:50 -08:00
Adam Ierymenko 627533cf48 . 2020-01-07 13:24:15 -08:00
Adam Ierymenko 19899de5a6 . 2020-01-06 18:14:35 -08:00
Adam Ierymenko c1b2c7903c . 2020-01-02 19:04:36 -05:00
Adam Ierymenko 3b94ef99ae Bunch of new-gen serialization work 2019-12-16 11:57:33 -08:00
Adam Ierymenko 6267c67888 A bunch of cleanup and refactoring toward 2.x 2019-12-12 16:15:49 -08:00
Adam Ierymenko 23d6a3aacd Moar refactoring 2019-12-11 13:46:44 -08:00
Adam Ierymenko 72361fb1c8 Cleanup and refactor 2019-12-11 13:27:11 -08:00
Adam Ierymenko b55f98b813 wip 2019-12-11 12:04:22 -08:00
Adam Ierymenko 5a4d681af8 Build fixes. 2019-11-19 16:45:53 -08:00
Adam Ierymenko a16a0a8ce5 Warning removal. 2019-11-19 16:22:11 -08:00
Grant Limberg 203df51752 ignore workspace/ folder
It's where I usually put temporary identity, etc. files for testing
2019-11-13 12:48:32 -08:00
Adam Ierymenko 47b4efd49b Work in progress... 2019-11-04 14:24:37 -08:00
Adam Ierymenko 14fab11081 Merge dev, clean up old files 2019-10-16 06:05:29 -07:00
Adam Ierymenko 4c55f3eaa5 Work in progress 2019-10-16 06:03:32 -07:00
Adam Ierymenko 891bf99894 work in progress 2019-10-15 12:49:03 -07:00
Adam Ierymenko 22e95b3bcb . 2019-10-09 10:00:30 -07:00
Adam Ierymenko 4da315fab2 Plumb through external interface stuff 2019-10-03 10:43:28 -07:00
Adam Ierymenko 507ba7d26a Go build stuff, root stuff 2019-10-02 17:55:15 -07:00
Adam Ierymenko 68ac884d47 . 2019-10-02 14:30:46 -07:00
Adam Ierymenko e2f3996843 Fix callbacks 2019-10-02 13:39:48 -07:00
Adam Ierymenko 57ade250af . 2019-10-02 12:19:37 -07:00
Adam Ierymenko c3e0f262d1 Regularize JSON stuff 2019-10-02 09:34:44 -07:00
Adam Ierymenko b9911d0db7 More plumbing 2019-10-02 07:09:54 -07:00
Adam Ierymenko d1b780c7be addroot 2019-10-01 13:09:53 -07:00
Adam Ierymenko 1711cced3e . 2019-09-30 20:31:48 -07:00
Adam Ierymenko 63e6693255 . 2019-09-30 20:10:53 -07:00
Adam Ierymenko 9b8d191bb1 Locator fix 2019-09-30 20:09:35 -07:00
Adam Ierymenko 6db2b8c66d . 2019-09-30 20:03:03 -07:00
Adam Ierymenko 47a08ccbd4 Identity management plumbing to Go 2019-09-30 18:59:57 -07:00
Adam Ierymenko 7fc78129f4 A bunch of CLI work 2019-09-30 16:12:08 -07:00
Adam Ierymenko c4504fd3ff Vendor Go modules 2019-09-30 12:41:21 -07:00
Adam Ierymenko e4799ff8c4 Bunch of small warnings and stylistic things... 2019-09-30 11:10:47 -07:00
Adam Ierymenko f680924585 Build fixes 2019-09-30 09:48:44 -07:00
Adam Ierymenko b0d222768a Root admin stuff 2019-09-30 09:32:00 -07:00
Adam Ierymenko 4303c43db7 . 2019-09-27 14:55:46 -07:00
Adam Ierymenko 3b3e6d2bfc Simplify root API 2019-09-26 13:35:56 -07:00
Adam Ierymenko 7061f13b24 . 2019-09-26 09:34:31 -07:00
Adam Ierymenko 5175636d36 . 2019-09-25 14:31:08 -07:00
Adam Ierymenko 570032484f . 2019-09-25 14:16:55 -07:00
Adam Ierymenko 9c37fc1a5f . 2019-09-25 13:32:46 -07:00
Adam Ierymenko 105023bd87 Build fix 2019-09-25 12:43:14 -07:00
Adam Ierymenko 8a9669f130 . 2019-09-25 12:36:49 -07:00
Adam Ierymenko e5bd230fb0 . 2019-09-24 16:44:29 -07:00
Adam Ierymenko e3d47e588a . 2019-09-24 12:32:35 -07:00
Adam Ierymenko f4a5abeed9 Go CLI work 2019-09-24 12:19:28 -07:00
Adam Ierymenko a7e38d2b00 . 2019-09-23 16:58:55 -07:00
Adam Ierymenko 84ba396ed3 . 2019-09-23 16:47:13 -07:00
Adam Ierymenko 6683280a37 . 2019-09-23 16:46:58 -07:00
Adam Ierymenko 1edf680464 . 2019-09-23 16:46:31 -07:00
Adam Ierymenko 4df090469a Clean out obsolete dependencies. 2019-09-23 16:42:23 -07:00
Adam Ierymenko 3c63f58532 Build fix. 2019-09-23 16:21:43 -07:00
Adam Ierymenko 64c8171e13 Port binding check. 2019-09-23 16:21:02 -07:00
Adam Ierymenko b6175bd408 Gogogogogogogo 2019-09-23 15:18:52 -07:00
Adam Ierymenko b44bd19c53 . 2019-09-22 22:33:11 -07:00
Adam Ierymenko 536bc59abb . 2019-09-22 22:25:55 -07:00
Adam Ierymenko 70d5da1e2a . 2019-09-22 19:25:40 -07:00
Adam Ierymenko 90d4d79828 Peers and paths 2019-09-22 17:41:15 -07:00
Adam Ierymenko ccc9be2d4d All that cgo crap compiles! 2019-09-22 00:06:07 -07:00
Adam Ierymenko 3341c4a670 Rooting around 2019-09-21 22:54:58 -07:00
Adam Ierymenko bcb9df9cdf Network config stuff in Go 2019-09-21 20:40:06 -07:00
Adam Ierymenko 2eef9d22e6 getting there... 2019-09-21 18:22:25 -07:00
Adam Ierymenko 5e35346f17 Gogog 2019-09-21 15:35:27 -07:00
Adam Ierymenko bb53ee9567 Going once... going twice! 2019-09-21 15:04:00 -07:00
Adam Ierymenko 9934a856dd More go 2019-09-21 12:54:45 -07:00
Adam Ierymenko 24904c5083 Go F yourself 2019-09-21 11:56:31 -07:00
Adam Ierymenko 6ce4663a31 GoGoGo 2019-09-21 00:19:20 -07:00
Adam Ierymenko fbf74d3baa Go! Go! https://www.youtube.com/watch?v=hyGYdqMfrQQ 2019-09-20 21:00:54 -07:00
Adam Ierymenko b540181990 Go! Go! Go! - Moby 2019-09-20 20:34:31 -07:00
Adam Ierymenko 02a6b15e6b Moar Go 2019-09-20 19:51:57 -07:00
Adam Ierymenko b34aa10bf8 Go code! 2019-09-20 18:48:48 -07:00
Adam Ierymenko e0ddbc2f28 Update build process, Go glue builds now. 2019-09-20 15:00:53 -07:00
Adam Ierymenko ed2024285d More Go boilerplate. 2019-09-20 14:11:15 -07:00
Adam Ierymenko ae2120eb96 New service, work in progress 2019-09-20 09:09:05 -07:00
Adam Ierymenko 3ceb2257e5 Plumb through roots via API. 2019-09-19 09:47:12 -07:00
Adam Ierymenko 624efde7e4 Make sure threads dont exit on spurious return values from recvfrom unless we are really dying. 2019-09-16 20:41:23 -07:00
Adam Ierymenko 50009fef6f Merge branch 'dev' into edge 2019-09-16 20:26:41 -07:00
Adam Ierymenko dde937e197 cleanup 2019-09-16 19:58:21 -07:00
Adam Ierymenko 07a480b37a Build fix. 2019-09-16 18:04:32 -07:00
Adam Ierymenko 9f5bccec30 Add a recv timeout to root 2019-09-16 18:03:17 -07:00
Adam Ierymenko ade52bf81e Fix RENDEZVOUS issue and possibly improve GeoIP resolution. 2019-09-16 17:04:13 -07:00
Adam Ierymenko 71c766a3b2 Build fix 2019-09-16 15:09:56 -07:00
Adam Ierymenko eef66aee9a build fix 2019-09-16 14:51:02 -07:00
Adam Ierymenko e245eb1eb5 Trim some unnecessary locks from root, and cleanup elsewhere. 2019-09-16 14:48:27 -07:00
Adam Ierymenko e08fc81397 More threading improvements in root, more DNS TXT and multicast work (in progress) 2019-09-16 10:33:59 -07:00
Adam Ierymenko 9f9032ae36 Cleanup and warning removal. 2019-09-13 16:24:02 -07:00
Adam Ierymenko 063a16fcd6 Ensure SSE is enabled for Salsa20 on x64 2019-09-13 11:16:21 -07:00
Adam Ierymenko 0db4151492 cleanup 2019-09-13 11:10:56 -07:00
Adam Ierymenko e44d7a553f The root technically does not need to do this, and its slow. 2019-09-13 10:29:11 -07:00
Adam Ierymenko 53a2de98de Packet ID fix 2019-09-13 10:23:35 -07:00
Adam Ierymenko 2deaaeef28 Some root cleanup and more lock contention reduction. 2019-09-13 10:20:29 -07:00
Adam Ierymenko 1f9e16f63e AES optimization rabbit hole 2019-09-13 09:37:09 -07:00
Adam Ierymenko 87fe69c27c AES optimization rabbit hole 2019-09-13 09:35:49 -07:00
Adam Ierymenko 2d1eeda188 Cleanup, optimization 2019-09-12 14:32:37 -07:00
Adam Ierymenko 5c06d40358 cleanup 2019-09-12 10:37:26 -07:00
Adam Ierymenko 31e193756d cleanup 2019-09-12 09:59:46 -07:00
Adam Ierymenko 5aa744db84 Simplification and further concurrency improvements. 2019-09-12 08:41:34 -07:00
Adam Ierymenko 0ad82dad80 Linux build fix 2019-09-12 08:25:26 -07:00
Adam Ierymenko 99c36ed2f2 Parallelization improvements 2019-09-12 08:20:38 -07:00
Adam Ierymenko 44878e583a Bug fixes 2019-09-11 16:10:06 -07:00
Adam Ierymenko 0723a85ab3 Build fixes. 2019-09-11 15:52:18 -07:00
Adam Ierymenko d8dae365f6 Cleanup, optimization, multicast stuff, and it now compiles again. 2019-09-11 15:34:55 -07:00
Adam Ierymenko bccb86a401 More multicast work... 2019-09-10 16:20:28 -07:00
Adam Ierymenko 592e743349 Yet more multicast work. 2019-09-09 15:49:17 -07:00
Adam Ierymenko fb6161e9ac May as well make it a full self-signature. 2019-09-09 10:45:49 -07:00
Adam Ierymenko 787277d282 More multicast work, add a signature in identity for safety margin, cleanup. 2019-09-09 10:44:31 -07:00
Adam Ierymenko 540ee69773 A bunch of multicast work... in progress. 2019-09-07 19:15:21 -07:00
Adam Ierymenko 0d2c87fe4e map fix 2019-09-06 08:54:27 -07:00
Adam Ierymenko 2460de9713 map fix 2019-09-06 08:50:36 -07:00
Adam Ierymenko 0d32f42d26 map fix 2019-09-06 08:47:32 -07:00
Adam Ierymenko 277497684e Revert "map fix"
This reverts commit f4a83e516c.
2019-09-06 08:45:39 -07:00
Adam Ierymenko f4a83e516c map fix 2019-09-06 08:41:03 -07:00
Adam Ierymenko d2eb1ed9a5 map fix 2019-09-06 08:27:03 -07:00
Adam Ierymenko a3ec5846df map fix 2019-09-06 08:18:11 -07:00
Adam Ierymenko b6047899a8 map fix 2019-09-06 08:12:46 -07:00
Adam Ierymenko 3516070b6e map fix 2019-09-06 08:11:20 -07:00
Adam Ierymenko 56ec87e00e map fix 2019-09-06 08:03:59 -07:00
Adam Ierymenko fe0b896665 map fix 2019-09-06 07:58:43 -07:00
Adam Ierymenko e4721417e6 map fix 2019-09-06 07:55:36 -07:00
Adam Ierymenko 45f5b3b648 map fix 2019-09-06 07:40:32 -07:00
Adam Ierymenko 3123102211 root cleanup and add nifty geoip thing 2019-09-06 07:37:44 -07:00
Adam Ierymenko c6141ffbc7 cleanup 2019-09-05 18:06:48 -07:00
Adam Ierymenko c0e92d06a5 faster without const variable second-guessing of the compiler 2019-09-05 17:31:12 -07:00
Adam Ierymenko 274b2682d6 cleanup and docs 2019-09-05 15:09:20 -07:00
Adam Ierymenko 171d661b84 cleanup 2019-09-05 12:17:04 -07:00
Adam Ierymenko 5cea8da664 Optimization and naming cleanup 2019-09-05 12:03:11 -07:00
Adam Ierymenko 44dd52d08f KBKDF 2019-09-05 11:39:16 -07:00
Adam Ierymenko 70648d006d Merge branch 'dev' into edge 2019-09-05 11:06:27 -07:00
Adam Ierymenko 43e6a9e9ee more fastitude 2019-09-05 09:54:30 -07:00
Adam Ierymenko 0599c1710b Merge branch 'dev' into edge 2019-09-04 16:41:05 -07:00
Adam Ierymenko abf218a9cd cleanup 2019-09-04 16:38:55 -07:00
Adam Ierymenko 55f4f9aaeb cleanup 2019-09-04 16:15:10 -07:00
Adam Ierymenko 82b7e1dbcb HMAC fix 2019-09-04 15:22:15 -07:00
Adam Ierymenko e8f8b0f8e5 cleanup 2019-09-04 14:40:36 -07:00
Adam Ierymenko 7566d4fbab Merge dev 2019-09-04 14:38:35 -07:00
Adam Ierymenko 3a0d385119 Implement changes to AES-GMAC-CTR: four keys with one for each role/purpose instead of just two, and simpler CTR-IV calculation. 2019-09-04 14:37:38 -07:00
Adam Ierymenko a465afa83d Merge branch 'dev' into edge 2019-09-04 08:19:39 -07:00
Adam Ierymenko 185e90c40f AES-GMAC-CTR tweaks, self test tweaks, debian typo fix. 2019-09-04 08:19:12 -07:00
Adam Ierymenko e29c2d0260 Fix field headers 2019-09-03 15:59:34 -07:00
Adam Ierymenko acf6425ae9 Formatting fix 2019-09-03 15:55:23 -07:00
Adam Ierymenko 5e8d49de0f Stats, tweak P2P success rate stat. 2019-09-03 15:48:10 -07:00
Adam Ierymenko 1f9456a462 Estimate P2P Success Rate 2019-09-03 15:19:17 -07:00
Adam Ierymenko a7d8285c3a Don't require siblings field 2019-09-03 14:57:54 -07:00
Adam Ierymenko 5f1dc4b851 cleanup 2019-09-03 14:57:02 -07:00
Adam Ierymenko b1c22949c5 Cleanup, add support for distributing a new planet file 2019-09-03 14:44:13 -07:00
Adam Ierymenko 29be175743 Make relay max hops configurable on roots 2019-09-03 13:17:12 -07:00
Adam Ierymenko b6c5ba264b One more fix for discarding hops exceeded packets. 2019-09-03 13:01:01 -07:00
Adam Ierymenko 8e7e3c2b11 Fix max hops. 2019-09-03 12:58:23 -07:00
Adam Ierymenko 0e7df129d8 Fix variable shadowing bug. 2019-09-03 12:51:32 -07:00
Adam Ierymenko 50709cbd21 Fix siblings in peers list, fix meter. 2019-09-03 12:44:09 -07:00
Adam Ierymenko fd6e8d8c5c Add instrumentation to root, add capability to forward to siblings if no path is known to a peer. 2019-09-03 12:21:57 -07:00
Adam Ierymenko 2e7496130c Fix silly thinko in root that harms p2p establishment. 2019-08-30 21:17:34 -07:00
Adam Ierymenko 9666ab5797 Merge branch 'dev' into edge 2019-08-30 17:57:11 -07:00
Adam Ierymenko 4c08ac7873 Fix MULTICAST_GATHER reply problem in root 2019-08-30 17:34:05 -07:00
Adam Ierymenko 5435ec7545 Merge dev 2019-08-30 15:40:00 -07:00
Adam Ierymenko 8764d50179 Merge branch 'dev' of http://git.int.zerotier.com/zerotier/ZeroTierOne into edge 2019-08-30 15:16:21 -07:00
Adam Ierymenko 62cdb8dc94 cleanup 2019-08-30 12:47:19 -07:00
Adam Ierymenko 9918a1092f JSON fix 2019-08-30 09:39:46 -07:00
Adam Ierymenko 7d89511fda JSON fix 2019-08-30 09:38:18 -07:00
Adam Ierymenko 795b6d13d1 Simple status output on root of HTTP tree 2019-08-30 09:29:06 -07:00
Adam Ierymenko 8328b6f657 Lib fix 2019-08-30 09:10:11 -07:00
Adam Ierymenko 9994e591bd More root work and CMake-ify root 2019-08-30 09:08:39 -07:00
Adam Ierymenko b27a38e55e Implement WHOIS 2019-08-29 14:27:41 -07:00
Adam Ierymenko f6d747a5a0 Fix some more multicast stuff (minor) 2019-08-29 12:02:37 -07:00
Adam Ierymenko b7da7574d1 Helps to decompress the packet 2019-08-29 11:40:31 -07:00
Adam Ierymenko dbad9585cd Fix parsing of MULTICAST_GATHER 2019-08-29 11:23:23 -07:00
Adam Ierymenko 2d7a97bb94 Fix V4/V6 forwarding issue in root 2019-08-29 10:58:47 -07:00
Adam Ierymenko da19da0360 RENDEZVOUS works now 2019-08-29 08:00:54 -07:00
Adam Ierymenko ee7361ee2e crash fix 2019-08-29 07:25:16 -07:00
Adam Ierymenko 6e3e09bed4 Add RENDEZVOUS to high throughput root 2019-08-29 07:17:18 -07:00
Adam Ierymenko 86762d2b40 high throughput root is working! 2019-08-28 15:52:18 -07:00
Adam Ierymenko ef12c5af99 . 2019-08-28 15:22:28 -07:00
Adam Ierymenko 933404b1dd . 2019-08-28 15:20:34 -07:00
Adam Ierymenko ccec49e444 . 2019-08-28 15:17:16 -07:00
Adam Ierymenko e5f1bf81f7 . 2019-08-28 15:15:21 -07:00
Adam Ierymenko 0e627f4f68 . 2019-08-28 15:07:38 -07:00
Adam Ierymenko d33f7d2bf5 . 2019-08-28 14:49:16 -07:00
Adam Ierymenko e07a019615 . 2019-08-28 14:47:05 -07:00
Adam Ierymenko 34ca3012e6 . 2019-08-28 14:43:37 -07:00
Adam Ierymenko 62634ca2da . 2019-08-28 14:39:31 -07:00
Adam Ierymenko 846c96e8d5 . 2019-08-28 14:36:29 -07:00
Adam Ierymenko 63775723c1 . 2019-08-28 14:28:07 -07:00
Adam Ierymenko 2f7d3e655a . 2019-08-28 14:26:13 -07:00
Adam Ierymenko b19634d7e4 . 2019-08-28 14:21:02 -07:00
Adam Ierymenko a92967a7c1 . 2019-08-28 14:16:14 -07:00
Adam Ierymenko 8915b88de5 . 2019-08-28 14:06:45 -07:00
Adam Ierymenko 7bca81464b . 2019-08-28 14:04:42 -07:00
Adam Ierymenko b974ece24f . 2019-08-28 13:59:23 -07:00
Adam Ierymenko b1c8e6ad59 . 2019-08-28 13:51:13 -07:00
Adam Ierymenko 64f7185e3a . 2019-08-28 13:44:15 -07:00
Adam Ierymenko 807cc9afc3 . 2019-08-28 13:40:49 -07:00
Adam Ierymenko 0adf306dd4 . 2019-08-28 13:38:52 -07:00
Adam Ierymenko db0f602e86 . 2019-08-28 13:10:36 -07:00
Adam Ierymenko 17ec47f5c0 . 2019-08-28 13:09:14 -07:00
Adam Ierymenko cf831d9cd3 . 2019-08-28 13:04:58 -07:00
Adam Ierymenko 5e3c633f74 root work 2019-08-28 11:59:13 -07:00
Adam Ierymenko 4e4b27b6ab build fix 2019-08-28 11:54:09 -07:00
Adam Ierymenko c0c9590904 High throughput root stuff 2019-08-28 11:49:45 -07:00
Adam Ierymenko 24c9577e39 cleanup 2019-08-28 11:28:51 -07:00
Adam Ierymenko 59ee0cfe88 Safety upgrades to code 2019-08-28 10:34:32 -07:00
Adam Ierymenko 1977b9b764 Use -flto on Mac for release 2019-08-28 07:45:49 -07:00
Adam Ierymenko 6f9d1fc14c Merge branch 'dev' into edge 2019-08-28 07:43:36 -07:00
Adam Ierymenko 8ac59ae2be cleanup 2019-08-28 07:40:13 -07:00
Adam Ierymenko 46db37e06c Yield in ticket lock 2019-08-28 07:34:24 -07:00
Adam Ierymenko 9d1207b339 Merge branch 'dev' into edge 2019-08-28 07:31:33 -07:00
Adam Ierymenko 6e730cfad1 Cleanup, multicast fingerprint, benchmark asymmetric crypto 2019-08-28 07:31:17 -07:00
Adam Ierymenko 199b3345a0 cleanup 2019-08-27 14:42:49 -07:00
Adam Ierymenko b7f504b8a4 cleanup 2019-08-27 14:40:01 -07:00
Adam Ierymenko 1b459b0560 cleanup 2019-08-27 14:31:04 -07:00
Adam Ierymenko 40803a4dc1 cleanup 2019-08-27 14:25:11 -07:00
Adam Ierymenko 6f22570648 Optimization and cleanup 2019-08-26 20:18:28 -07:00
Adam Ierymenko 8203547cfc Warning removal. 2019-08-26 20:01:54 -07:00
Adam Ierymenko dad160209e Add -mmacosx-version-min=10.9 2019-08-26 19:54:24 -07:00
Adam Ierymenko 8faaaec710 Add check for PCLMUL instruction too. Virtually all CPUs with AES-NI have it but good to be sure. 2019-08-26 19:48:56 -07:00
Adam Ierymenko 012fba617d Set SSE/AES-NI flags only on x86/x64 targets. 2019-08-26 19:40:22 -07:00
Adam Ierymenko 9ca495229b Revert "optimization stuff"
This reverts commit e63f624d3a.
2019-08-26 19:03:09 -07:00
Adam Ierymenko e63f624d3a optimization stuff 2019-08-26 19:02:28 -07:00
Adam Ierymenko e1dd413266 cleanup 2019-08-26 18:44:56 -07:00
Adam Ierymenko b9ef09dd58 Optimization stuff 2019-08-26 18:15:32 -07:00
Adam Ierymenko 990333e7ec cleanup, re-enable AES-NI check 2019-08-26 16:35:28 -07:00
Adam Ierymenko ec9582f3f2 More test vectors, software mode GCM. 2019-08-26 16:24:42 -07:00
Adam Ierymenko ea65386e15 Merge branch 'dev' into edge 2019-08-26 12:22:20 -07:00
Adam Ierymenko a0fd4ad23f Cleanup, Linux build fix. 2019-08-26 12:17:23 -07:00
Adam Ierymenko b6d7a95028 Merge branch 'dev' into edge 2019-08-26 11:09:19 -07:00
Adam Ierymenko 1d8f3cee62 cleanup 2019-08-23 21:12:24 -07:00
Adam Ierymenko 5ba6e21967 cleanup 2019-08-23 20:34:09 -07:00
Adam Ierymenko 52f7f6e6cf Fully implement the packet encryption/decryption algorithms. 2019-08-23 20:20:32 -07:00
Adam Ierymenko 9fd5ec673b Get rid of complicated AES-GCM + scramble construct in favor of a simpler construct thanks to "Squeamish Ossifrage" on crypto.stackexchange.com 2019-08-23 18:41:21 -07:00
Adam Ierymenko e905b3c963 cleanup 2019-08-23 17:22:23 -07:00
Adam Ierymenko f12370c348 more opt 2019-08-23 12:40:08 -07:00
Adam Ierymenko b727e2a67a More opt stuff 2019-08-23 12:34:45 -07:00
Adam Ierymenko 8e87319925 Optimization stuff 2019-08-23 12:18:02 -07:00
Adam Ierymenko 1ab29b1ab0 Merge branch 'dev' into edge 2019-08-23 12:11:07 -07:00
Adam Ierymenko 52d55e34e6 Licenses, and use full strength AES-128 in scramble. 2019-08-23 12:03:13 -07:00
Adam Ierymenko c79360f58b Merge dev 2019-08-23 11:37:40 -07:00
Adam Ierymenko 8057c826bc cleanup 2019-08-23 09:34:26 -07:00
Adam Ierymenko 6f6138c500 Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
Adam Ierymenko 903a18db1d work in progress 2019-08-23 08:41:22 -07:00
Adam Ierymenko 0731f3f1a9 wiring more stuff up, and simplification of timing loops 2019-08-23 07:04:20 -07:00
Adam Ierymenko 37047a39f9 More cleanup, and fix SHA384 built-in C code. 2019-08-22 14:52:47 -07:00
Adam Ierymenko 91d0cbe892 cleanup 2019-08-22 13:08:10 -07:00
Adam Ierymenko b66431bc29 Work in progress... 2019-08-22 13:06:08 -07:00
Adam Ierymenko 0e18b14087 Merge branch 'dev' into edge 2019-08-21 14:58:26 -07:00
Adam Ierymenko 31bd413166 stub out new verbs 2019-08-21 14:57:57 -07:00
Adam Ierymenko 95a6fce2b4 Yet more cleanup, it builds again now. 2019-08-21 14:36:56 -07:00
Adam Ierymenko 0b5472f9fb Tons and tons of cleanup and cruft removal 2019-08-21 14:24:45 -07:00
Adam Ierymenko 5280d28505 cleanup 2019-08-21 10:44:52 -07:00
Adam Ierymenko 67a9898a99 Bunch more work on DNS, cleanup, removal of obsolete cruft. 2019-08-21 09:27:45 -07:00
Adam Ierymenko fe8815f80f cleanup 2019-08-20 15:36:18 -07:00
Adam Ierymenko 3a21fdc304 Crypto work, packet work 2019-08-20 15:34:30 -07:00
Adam Ierymenko 83d723eb79 type 1 (P-384) identities 2019-08-20 13:32:23 -07:00
Adam Ierymenko 6e771607c0 cleanup 2019-08-19 20:35:16 -07:00
Adam Ierymenko e73b220104 cleanup 2019-08-19 20:30:34 -07:00
Adam Ierymenko 5c1fc43610 cleanup 2019-08-19 20:29:24 -07:00
Adam Ierymenko cfbd7e3bf5 Add stubs to easily build and include all of libnatpmp and miniupnpc in osdep/ 2019-08-19 20:28:44 -07:00
Adam Ierymenko c8ca1cfa3c Kill old inline software update, we will use https and secondary auth for new versions. 2019-08-19 19:24:23 -07:00
Adam Ierymenko 5cfbb0a423 Clean up dead stuff from OneService and fix build errors. 2019-08-19 19:21:33 -07:00
Adam Ierymenko 900ec143a8 . 2019-08-19 16:45:29 -07:00
Adam Ierymenko 7bda3d0f74 put sse4.1 back 2019-08-19 15:49:13 -07:00
Adam Ierymenko 7650786fb5 cleanup, Locator fix and self-test 2019-08-19 15:43:15 -07:00
Adam Ierymenko ca60d08621 cleanup, scrambler functions 2019-08-19 12:49:33 -07:00
Adam Ierymenko b34218c8c2 auto-set -j option in makefile, and split out cmake setup rule 2019-08-19 10:06:39 -07:00
Adam Ierymenko b14a59629c cleanup 2019-08-19 06:58:42 -07:00
Adam Ierymenko 0914bf8cf0 Some ARM NEON code (not finished) 2019-08-16 19:22:03 -07:00
Adam Ierymenko 7bdca83de3 Add decrypt 2019-08-16 18:40:22 -07:00
Adam Ierymenko 846f03504e Add DNS TXT resolver (need one for Windows) 2019-08-16 16:49:30 -07:00
Adam Ierymenko 01e8fd0b07 The newer C ed25519 is the same speed as the old ASM, so drop it to simplify. 2019-08-16 14:42:38 -07:00
Adam Ierymenko 7f301c44b7 more cleanup 2019-08-16 14:26:45 -07:00
Adam Ierymenko 51a25fdec9 Remove ASM Salsa20 since it will not be the default in 2.x any more... reduce build complexity. 2019-08-16 14:26:25 -07:00
Grant Limberg 2b681c37ac Consolidate common compiler flags 2019-08-16 11:42:43 -07:00
Grant Limberg cb4ebfdbd2 Dragging adam into CMake kicking and screaming :) 2019-08-16 10:45:14 -07:00
Grant Limberg 206c85222c Fix Constants.hpp inclusion of version.h 2019-08-16 09:52:13 -07:00
ZeroTier 18071e038e Fix MacEthernetTapAgent & Cmake integration 2019-08-16 09:44:31 -07:00
Grant Limberg 39f7ce15ad mac compiler flags 2019-08-15 17:40:21 -07:00
Grant Limberg e39b42bbd3 fixing some CMake stuff on Linux 2019-08-15 17:29:33 -07:00
Adam Ierymenko 607d8f72e8 cruftectomy 2019-08-15 15:43:35 -07:00
Adam Ierymenko c483f75fb4 cleanup 2019-08-15 15:32:16 -07:00
Adam Ierymenko 81f0175251 cleanup 2019-08-15 14:14:49 -07:00
Adam Ierymenko f753519729 A bit more optimization 2019-08-15 14:07:52 -07:00
Adam Ierymenko f39693f97e cleanup 2019-08-15 13:52:23 -07:00
Adam Ierymenko f83ae0e39e Add self-test for AES and AES-GCM using public test vectors. 2019-08-15 13:47:43 -07:00
Adam Ierymenko 521d371b5d A bunch more refactoring to rip out obsolete stuff related to old root system and general cleanup. 2019-08-15 10:49:50 -07:00
Adam Ierymenko b23d551d00 cleanup 2019-08-14 16:05:09 -07:00
Adam Ierymenko 1b20cc6075 More optimization and cleanup 2019-08-14 15:59:45 -07:00
Adam Ierymenko 2043e12ac2 . 2019-08-14 15:50:25 -07:00
Adam Ierymenko 9461bc948f . 2019-08-14 15:28:10 -07:00
Adam Ierymenko 9740ab8bd6 more cleanup 2019-08-14 15:17:06 -07:00
Adam Ierymenko 6947a6b1d4 more cleanup 2019-08-14 15:12:49 -07:00
Adam Ierymenko 4da8036222 More refactor 2019-08-14 15:00:18 -07:00
Adam Ierymenko e6b4006c70 Refactoring to eliminate duplicated code 2019-08-14 14:55:37 -07:00
Adam Ierymenko 8f5f7f1baa More work in progress 2019-08-14 12:48:45 -07:00
Adam Ierymenko 573d3eea87 Merge branch 'dev' into edge 2019-08-14 10:53:03 -07:00
Adam Ierymenko eb84eec0f4 Merge branch 'dev' into edge 2019-08-14 10:48:07 -07:00
Adam Ierymenko d7a31088ba Cleanup, warning removal, cppcheck informed cleanup. 2019-08-14 10:35:57 -07:00
Adam Ierymenko a028e04ab9 Merge branch 'dev' into edge 2019-08-13 15:51:19 -07:00
Adam Ierymenko a0520536df . 2019-08-13 08:49:25 -07:00
Adam Ierymenko af137fd5d3 Merge branch 'edge' of http://git.int.zerotier.com/zerotier/ZeroTierOne into edge 2019-08-12 15:37:55 -07:00
Adam Ierymenko f7bc9f01c9 More AES stuff 2019-08-12 15:37:50 -07:00
Grant Limberg e4ce1ffd85 Windows detection of AES-NI 2019-08-12 15:28:42 -07:00
Grant Limberg 2384b49156 set cmake windows build target to Windows 7 2019-08-12 15:28:30 -07:00
Adam Ierymenko f5e71f64ed Merge branch 'edge' of http://git.int.zerotier.com/zerotier/ZeroTierOne into edge 2019-08-12 13:27:07 -07:00
Adam Ierymenko 927ef22cf8 Merge branch 'dev' into edge 2019-08-12 13:27:00 -07:00
Grant Limberg b6eaec1278 run selftest 2019-08-12 13:26:34 -07:00
Grant Limberg c7d1eb71da build & run selftest as part of jenkins 2019-08-12 13:25:14 -07:00
Grant Limberg 7d41d267a3 silencing warnings for code paths that will never be hit 2019-08-12 13:18:21 -07:00
Grant Limberg 0ead65ad2d change this 2019-08-12 13:11:43 -07:00
Grant Limberg 8c5481a3d5 Merge branch 'edge' of http://git.int.zerotier.com/zerotier/ZeroTierOne into edge 2019-08-12 12:58:20 -07:00
Grant Limberg 741258051e this should work better 2019-08-12 12:58:10 -07:00
Adam Ierymenko 0f4fc8635b Merge branch 'edge' of http://git.int.zerotier.com/zerotier/ZeroTierOne into edge 2019-08-12 12:51:38 -07:00
Adam Ierymenko d02d3f72fe AES-GCM code 2019-08-12 12:51:32 -07:00
Grant Limberg 710b69fc75 kill build dir before jenkins build 2019-08-12 12:44:47 -07:00
Grant Limberg 4fae382ffd Auto-generate version.h 2019-08-12 12:43:51 -07:00
Grant Limberg 68b94a3188 CMake for edge branch 2019-08-12 12:35:07 -07:00
Grant Limberg 8e04f83232 Merge branch 'edge' into cmake 2019-08-12 12:24:25 -07:00
Grant Limberg cc9fd9f8ce Merge branch 'dev' into cmake 2019-08-12 12:23:36 -07:00
Adam Ierymenko 1e8fcf1344 Add AES to build 2019-08-09 13:42:40 -05:00
Adam Ierymenko 809c8305b1 AES code 2019-08-09 10:54:08 -05:00
Adam Ierymenko 652c7e8f37 Locator work 2019-08-08 23:23:16 -05:00
Adam Ierymenko beebca98fe Merge branch 'dev' into edge 2019-08-08 19:42:16 -05:00
Adam Ierymenko ce67abc32f Merge branch 'dev' into edge 2019-08-08 18:49:03 -05:00
Adam Ierymenko 52cc482521 Merge branch 'dev' into edge 2019-08-08 15:59:58 -05:00
Adam Ierymenko 5eacad444d workinprogress 2019-08-08 15:03:52 -05:00
Adam Ierymenko e8155cbbeb Merge dev 2019-08-08 13:05:28 -05:00
Adam Ierymenko 663376e385 cleanup 2019-08-08 08:42:27 -05:00
Adam Ierymenko 3c590994db Finish up ECC384 identity generation. 2019-08-07 23:50:47 -05:00
Adam Ierymenko 14c8564893 Merge branch 'dev' into edge 2019-08-07 22:35:27 -05:00
Adam Ierymenko 91a37f8868 Add base64 code (unpadded standard alphabet) 2019-08-07 22:35:17 -05:00
Adam Ierymenko 1a2ff884b3 Merge branch 'dev' into edge 2019-08-07 19:08:35 -05:00
Adam Ierymenko 0298719be0 Use SHA384 with ECC384 to match FIPS / Suite B recommendation. 2019-08-07 17:06:03 -05:00
Adam Ierymenko d0746da5e2 Add SHA384 support, more cleanup 2019-08-07 16:41:58 -05:00
Adam Ierymenko 5b1cf33b1b Merge branch 'dev' into edge 2019-08-07 11:31:32 -05:00
Adam Ierymenko 54a1bbd016 . 2019-08-07 11:20:12 -05:00
Adam Ierymenko 455cd5551b . 2019-08-06 17:06:39 -05:00
Adam Ierymenko b3e1783658 . 2019-08-06 16:46:13 -05:00
Adam Ierymenko 906c83af83 Merge branch 'dev' into edge 2019-08-06 15:47:54 -05:00
Adam Ierymenko f9900cc6fb Merge dev to edge 2019-08-06 14:13:07 -05:00
ZeroTier 8e20187d8c set OS X deployment target to 10.9 2019-08-01 15:58:32 -07:00
ZeroTier 28dac7ff0e build MacEthernetTapAgent 2019-08-01 15:41:50 -07:00
Grant Limberg e385b3d377 Merge branch 'dev' into cmake 2019-08-01 15:16:31 -07:00
Grant Limberg 7e5c68c553 update jenkins to use cmake for builds 2019-08-01 15:13:06 -07:00
Grant Limberg 39ad7bc741 update cmake to add LFDB and force C++11 2019-08-01 14:36:35 -07:00
Grant Limberg c2f9aab068 Merge branch 'master' into cmake 2019-08-01 13:49:30 -07:00
Adam Ierymenko 7e105343e2 WIP 2019-07-17 16:53:33 -05:00
Adam Ierymenko fe2215df00 TON of refactoring, moon/planet is DEAD, ECC P-384 is integrated (but not enabled), and multicast work and cleanup. Whew. 2019-07-17 10:52:08 -05:00
Adam Ierymenko 640bbaabbf Safer value 2019-07-16 17:28:42 -05:00
Adam Ierymenko da2965cb4e P-384 test vectors 2019-07-16 17:25:25 -05:00
Adam Ierymenko 94ba242c33 Nist P-384 guts and glory 2019-07-16 16:09:14 -05:00
Adam Ierymenko debd5a5c5e Add capability for P2P multicast propagation, and some cleanup. 2019-07-16 13:33:11 -05:00
Adam Ierymenko 98bbb84a63 Merge branch 'dev' into edge 2019-07-15 19:40:52 -05:00
Adam Ierymenko 9d908a11ed Some new stuff, may not live forever... 2019-07-15 13:57:42 -05:00
Grant Limberg 4d599e2f9f Linux build with CMake 2019-06-21 15:16:20 -07:00
Grant Limberg d3b33e5512 Can now build the Windows UI via CMake as well 2019-06-21 12:54:53 -07:00
Grant Limberg c8487cc395 no message 2019-06-20 16:15:19 -07:00
Grant Limberg 0b3b5f6174 Beginning CMake configuration for ZT
Only tested on Windows so far
2019-06-20 16:13:52 -07:00
15071 changed files with 114580 additions and 3943263 deletions

No files matched your search

-75
View File
@@ -1,75 +0,0 @@
---
BasedOnStyle: LLVM
BreakBeforeBraces: Stroustrup
IndentWidth: 4
TabWidth: 4
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveMacros: 'true'
AlignConsecutiveAssignments: 'false'
AlignConsecutiveDeclarations: 'false'
AlignEscapedNewlines: Right
AlignOperands: 'true'
AlignTrailingComments: 'true'
AllowAllArgumentsOnNextLine: 'false'
AllowAllConstructorInitializersOnNextLine: 'false'
AllowAllParametersOfDeclarationOnNextLine: 'false'
AllowShortBlocksOnASingleLine: 'true'
AllowShortCaseLabelsOnASingleLine: 'false'
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AlwaysBreakAfterReturnType: None
BinPackArguments: 'false'
BinPackParameters: 'false'
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeTernaryOperators: 'true'
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
CompactNamespaces: 'false'
ConstructorInitializerAllOnOneLineOrOnePerLine: 'true'
ConstructorInitializerIndentWidth: '4'
ContinuationIndentWidth: '4'
Cpp11BracedListStyle: 'false'
FixNamespaceComments: 'true'
IncludeBlocks: Regroup
IndentCaseLabels: 'true'
IndentPPDirectives: None
IndentWrappedFunctionNames: 'false'
KeepEmptyLinesAtTheStartOfBlocks: 'false'
MaxEmptyLinesToKeep: '1'
NamespaceIndentation: None
PointerAlignment: Left
ReflowComments: 'true'
SortIncludes: 'true'
SortUsingDeclarations: 'true'
SpaceAfterCStyleCast: 'false'
SpaceAfterLogicalNot: 'true'
SpaceAfterTemplateKeyword: 'true'
SpaceBeforeAssignmentOperators: 'true'
SpaceBeforeCpp11BracedList: 'true'
SpaceBeforeCtorInitializerColon: 'true'
SpaceBeforeInheritanceColon: 'true'
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: 'true'
SpaceInEmptyParentheses: 'false'
SpacesBeforeTrailingComments: '3'
SpacesInAngles: 'false'
SpacesInCStyleCastParentheses: 'false'
SpacesInContainerLiterals: 'true'
SpacesInParentheses: 'false'
SpacesInSquareBrackets: 'false'
UseTab: 'Always'
---
Language: Cpp
Standard: Cpp03
ColumnLimit: '240'
---
Language: ObjC
ColumnLimit: '240'
---
Language: Java
ColumnLimit: '240'
---
Language: CSharp
ColumnLimit: '240'
...
+2 -1
View File
@@ -1,2 +1,3 @@
.git/
workspace/
build/
!build/zerotier
-40
View File
@@ -1,40 +0,0 @@
local registry = "084037375216.dkr.ecr.us-east-2.amazonaws.com";
local targets = [
{ "os": "linux", "name": "sid", "isas": [ "386", "armv7", "amd64", "arm64", "mips64le", "ppc64le", "s390x", "riscv64" ], "events": [ "push", "tag", "custom" ] },
];
local Build(platform, os, isa, events) = {
"kind": "pipeline",
"type": "docker",
"pull": "always",
"name": platform + " " + isa + " " + "build",
"clone": { "depth": 1 },
"steps": [
{
"name": "build",
"image": registry + "/honda-builder",
"commands": [
"aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin " + registry,
"./ci/scripts/build.sh " + platform + " " + isa + " " + "100.0.0+${DRONE_COMMIT_SHA:0:8}" + " " + "${DRONE_BUILD_EVENT}"
]
},
// {
// "name": "list",
// "image": registry + "/honda-builder",
// "commands": [ "ls -la " + platform ]
// },
],
[ if isa == "arm64" || isa == "armv7" then "platform" ]: { os: os, arch: "arm64" },
"trigger": { "event": events }
};
// puttin on the bits
std.flattenArrays([
[
Build(p.name, p.os, isa, p.events)
for isa in p.isas
]
for p in targets
])
-158
View File
@@ -1,158 +0,0 @@
---
clone:
depth: 1
kind: pipeline
name: sid 386 build
pull: always
steps:
- commands:
- aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin
084037375216.dkr.ecr.us-east-2.amazonaws.com
- ./ci/scripts/build.sh sid 386 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT}
image: 084037375216.dkr.ecr.us-east-2.amazonaws.com/honda-builder
name: build
trigger:
event:
- push
- tag
- custom
type: docker
---
clone:
depth: 1
kind: pipeline
name: sid armv7 build
platform:
arch: arm64
os: linux
pull: always
steps:
- commands:
- aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin
084037375216.dkr.ecr.us-east-2.amazonaws.com
- ./ci/scripts/build.sh sid armv7 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT}
image: 084037375216.dkr.ecr.us-east-2.amazonaws.com/honda-builder
name: build
trigger:
event:
- push
- tag
- custom
type: docker
---
clone:
depth: 1
kind: pipeline
name: sid amd64 build
pull: always
steps:
- commands:
- aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin
084037375216.dkr.ecr.us-east-2.amazonaws.com
- ./ci/scripts/build.sh sid amd64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT}
image: 084037375216.dkr.ecr.us-east-2.amazonaws.com/honda-builder
name: build
trigger:
event:
- push
- tag
- custom
type: docker
---
clone:
depth: 1
kind: pipeline
name: sid arm64 build
platform:
arch: arm64
os: linux
pull: always
steps:
- commands:
- aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin
084037375216.dkr.ecr.us-east-2.amazonaws.com
- ./ci/scripts/build.sh sid arm64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT}
image: 084037375216.dkr.ecr.us-east-2.amazonaws.com/honda-builder
name: build
trigger:
event:
- push
- tag
- custom
type: docker
---
clone:
depth: 1
kind: pipeline
name: sid mips64le build
pull: always
steps:
- commands:
- aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin
084037375216.dkr.ecr.us-east-2.amazonaws.com
- ./ci/scripts/build.sh sid mips64le 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT}
image: 084037375216.dkr.ecr.us-east-2.amazonaws.com/honda-builder
name: build
trigger:
event:
- push
- tag
- custom
type: docker
---
clone:
depth: 1
kind: pipeline
name: sid ppc64le build
pull: always
steps:
- commands:
- aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin
084037375216.dkr.ecr.us-east-2.amazonaws.com
- ./ci/scripts/build.sh sid ppc64le 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT}
image: 084037375216.dkr.ecr.us-east-2.amazonaws.com/honda-builder
name: build
trigger:
event:
- push
- tag
- custom
type: docker
---
clone:
depth: 1
kind: pipeline
name: sid s390x build
pull: always
steps:
- commands:
- aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin
084037375216.dkr.ecr.us-east-2.amazonaws.com
- ./ci/scripts/build.sh sid s390x 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT}
image: 084037375216.dkr.ecr.us-east-2.amazonaws.com/honda-builder
name: build
trigger:
event:
- push
- tag
- custom
type: docker
---
clone:
depth: 1
kind: pipeline
name: sid riscv64 build
pull: always
steps:
- commands:
- aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin
084037375216.dkr.ecr.us-east-2.amazonaws.com
- ./ci/scripts/build.sh sid riscv64 100.0.0+${DRONE_COMMIT_SHA:0:8} ${DRONE_BUILD_EVENT}
image: 084037375216.dkr.ecr.us-east-2.amazonaws.com/honda-builder
name: build
trigger:
event:
- push
- tag
- custom
type: docker
-4
View File
@@ -1,4 +0,0 @@
ext/bin/tap-windows-ndis6/x64/zttap300.inf eol=crlf
ext/bin/tap-windows-ndis6/x64.old/zttap300.inf eol=crlf
ext/bin/tap-windows-ndis6/x86/zttap300.inf eol=crlf
windows/TapDriver6/zttap300.inf eol=crlf
+46
View File
@@ -0,0 +1,46 @@
---
name: Bug report
about: Create a report to help us improve
---
**Alternative, faster ways to get help**
If you have just started using ZeroTier, here are some places to get help:
- my.zerotier.com has a _Community_ tab. It's a live chat with other users and the developers.
- [ZeroTier Knowledge Base](https://zerotier.atlassian.net/wiki/spaces/SD/overview)
- www.zerotier.com has a Contact Us button
- email contact@zerotier.com
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Create a Network '...'
2. Install zerotier-one '....'
3. '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots or console output to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. Mac, Linux, Windows, BSD]
- OS/Distribution Version
- ZeroTier Version [e.g. 1.2.4]
- Hardware [e.g. raspberry pi 3]
**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Version [e.g. 1.2.4]
**Additional context**
Add any other context about the problem here.
- ZeroTier Network Configuration
- Router Config
- Firewall Config (try turning the firewall off)
- General Network Environment: [ e.g Home, University Campus, Corporate LAN ]
-31
View File
@@ -1,31 +0,0 @@
---
name: Bugs and Issues
about: Create a report to help us improve
title: ''
labels: NEEDS TRIAGE
assignees: ''
---
# Before filing a Bug Report
_Using these will ensure you get quicker support, and make this space available for code-related issues. Thank you!_
- [Docs Site](https://docs.zerotier.com/zerotier/troubleshooting) => Troubleshooting, quickstarts, and more advanced topics.
- [Discuss Forum](https://discuss.zerotier.com/) => Our discussion forum for users and support to mutually resolve issues & suggest ideas.
- [Reddit](https://www.reddit.com/r/zerotier/) => Our subreddit, which we monitor regularly and is fairly active.
- [Knowledge Base](https://zerotier.atlassian.net/wiki/spaces/SD/overview) => Older wiki.
If you are having a connection issue, it's much easier to diagnose through the discussion forum or the ticket system.
# If you still want to file a Bug Report
## Please let us know
- What you expect to be happening.
- What is actually happening?
- Any steps to reproduce the error.
- Any relevant console output or screenshots.
- What operating system and ZeroTier version. Please try the latest ZeroTier release.
+9 -5
View File
@@ -1,13 +1,17 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[Feature Request] "
labels: suggestion
assignees: ''
---
If there is something you'd like to have added to ZeroTier, to go to https://discuss.zerotier.com/c/feature-requests/ instead. Issues there can be voted on and discussed in-depth.
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
Thank you!
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
@@ -1,15 +0,0 @@
---
name: Game Connection Issue
about: Game issues are better served by forum posts
title: Please go to our Discuss or Reddit for game-related issues. Thanks!
labels: wontfix
assignees: ''
---
Are you having trouble connecting to a game on your virtual network after installing ZeroTier?
- [ ] Yes
- [ ] No
If you answered yes, then it is very likely that your question would be better answered on our [Community Forums](https://discuss.zerotier.com) or [Reddit](https://www.reddit.com/r/zerotier/) community; we monitor both regularly. We also have extensive documentation on our [Knowledge Base](https://zerotier.atlassian.net/wiki/spaces/SD/overview). Thank you!
-107
View File
@@ -1,107 +0,0 @@
on: [ push ]
jobs:
build_ubuntu:
runs-on: ubuntu-latest
steps:
- name: gitconfig
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: checkout
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: aarch64-apple-darwin
override: true
components: rustfmt, clippy
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: make
run: make
- name: selftest
run: |
make selftest
./zerotier-selftest
build_macos:
runs-on: macos-latest
steps:
- name: gitconfig
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: checkout
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: aarch64-apple-darwin
override: true
components: rustfmt, clippy
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: make
run: make
- name: selftest
run: |
make selftest
./zerotier-selftest
build_windows:
runs-on: windows-latest
steps:
- name: gitconfig
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: checkout
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: aarch64-apple-darwin
override: true
components: rustfmt, clippy
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: setup msbuild
uses: microsoft/setup-msbuild@v1.1.3
- name: msbuild
run: |
msbuild windows\ZeroTierOne.sln /m /p:Configuration=Release /property:Platform=x64 /t:ZeroTierOne:Rebuild
Executable → Regular
+18 -119
View File
@@ -1,75 +1,31 @@
# Main binaries created in *nix builds
/zerotier-one
/zerotier-idtool
/zerotier-cli
/zerotier-selftest
/zerotier
/nltest
# IDE stuff
/build
/cmake-build-debug
/cmake-build-release
/core/version.h
/.idea
/.nova
/compile_commands.json
# OS-created garbage files from various platforms
/.ide-*
.DS_Store
.Trashes
*.swp
._*
*~
*~.nib
*.secret
.Apple*
Thumbs.db
@eaDir
._*
# Windows build droppings
/windows/ZeroTierOne.sdf
/windows/ZeroTierOne.v11.suo
/windows/x64
/windows/Win32
/windows/*/x64
/windows/*/Win32
/windows/ZeroTierOne/Release
/windows/ZeroTierOneService/obj
/windows/ZeroTierOneService/bin
/windows/Build
/windows/Debug
/windows/Release
/windows/WebUIWrapper/bin
/windows/WebUIWrapper/obj
/windows/lib
/ext/installfiles/windows/ZeroTier One-SetupFiles
/ext/installfiles/windows/*-cache
/ZeroTier One.msi
*.vcxproj.backup
/windows/TapDriver6/Win7Debug
/windows/TapDriver6/win7Release
/windows/*.db
/windows/*.opendb
enc_temp_folder
/windows/copyutil/bin
/windows/copyutil/obj
.vs/
# *nix/Mac build droppings
/build-*
/ZeroTierOneInstaller-*
/examples/docker/zerotier-one
/examples/docker/test-*.env
/world/mkworld
/world/*.c25519
zt1-src.tar.gz
/MacEthernetTapAgent
# Miscellaneous temporaries, build files, etc.
.vscode
__pycache__
*.log
*.bak
*.opensdf
*.user
*.cache
*.obj
*.tlog
*.pid
*.pkg
*.o
/*.a
*.dylib
*.so
*.so.*
*.o-*
*.core
*.deb
@@ -78,63 +34,6 @@ zt1-src.tar.gz
*.tmp
.depend
node_modules
zt1_update_*
debian/files
debian/zerotier-one
debian/zerotier-one*.debhelper
debian/*.log
debian/zerotier-one.substvars
root-watcher/config.json
# Java/Android/JNI build droppings
java/obj/
java/libs/
java/bin/
java/classes/
java/doc/
java/build_win64/
java/build_win32/
/java/mac32_64/
windows/WinUI/obj/
windows/WinUI/bin/
windows/ZeroTierOne/Debug/
/ext/installfiles/windows/chocolatey/zerotier-one/*.nupkg
# Miscellaneous mac/Xcode droppings
.DS_Store
.Trashes
*.swp
*~.nib
DerivedData/
*.pbxuser
*.mode1v3
*.mode2v3
*.perspectivev3
!default.pbxuser
!default.mode1v3
!default.mode2v3
!default.perspectivev3
*.xccheckout
xcuserdata/
.vscode
__pycache__
*~
attic/world/*.c25519
attic/world/mkworld
workspace/
workspace2/
zeroidc/target/
#snapcraft specifics
/parts/
/stage/
/prime/
*.snap
.snapcraft
__pycache__
*.pyc
*_source.tar.bz2
snap/.snapcraft
tcp-proxy/tcp-proxy
*.vcxproj.backup
/*.db
/*.opendb
+7 -21
View File
@@ -9,7 +9,7 @@
* Java JNI Interface to enable Android application development, and Android app itself (code for that is elsewhere)<br>
Grant Limberg / glimberg@gmail.com
* ZeroTier SDK (formerly known as Network Containers)<br>
* ZeroTier SDK / libzt<br>
Joseph Henry / joseph.henry@zerotier.com
## Third Party Contributors
@@ -32,44 +32,30 @@ ZeroTier includes the following third party code, either in ext/ or incorporated
* LZ4 compression algorithm by Yann Collet
* Files: node/Packet.cpp (bundled within anonymous namespace)
* Files: node/LZ4.cpp
* Home page: http://code.google.com/p/lz4/
* License grant: BSD 2-clause
* http-parser by Joyent, Inc. (many authors)
* Files: ext/http-parser/*
* Home page: https://github.com/joyent/http-parser/
* License grant: MIT/Expat
* License: BSD 2-clause
* C++11 json (nlohmann/json) by Niels Lohmann
* Files: ext/json/*
* Home page: https://github.com/nlohmann/json
* License grant: MIT
* License: MIT
* tap-windows6 by the OpenVPN project
* Files: windows/TapDriver6/*
* Home page: https://github.com/OpenVPN/tap-windows6/
* License grant: GNU GPL v2
* ZeroTier Modifications: change name of driver to ZeroTier, add ioctl() to get L2 multicast memberships (source is in ext/ and modifications inherit GPL)
* License: GNU GPL v2
* Salsa20 stream cipher, Curve25519 elliptic curve cipher, Ed25519 digital signature algorithm, and Poly1305 MAC algorithm, all by Daniel J. Bernstein
* Files: node/Salsa20.* node/C25519.* node/Poly1305.*
* Home page: http://cr.yp.to/
* License grant: public domain
* ZeroTier Modifications: slight cryptographically-irrelevant modifications for inclusion into ZeroTier core
* MiniUPNPC and libnatpmp by Thomas Bernard
* Files: ext/libnatpmp/* ext/miniupnpc/*
* Home page: http://miniupnp.free.fr/
* License grant: BSD attribution no-endorsement
* License: public domain
* cpp-httplib by yhirose
* Files: ext/cpp-httplib/*
* Home page: https://github.com/yhirose/cpp-httplib
* License grant: MIT
* License: MIT
+342 -8
View File
@@ -1,12 +1,346 @@
# CMake build script for libzerotiercore.a
cmake_minimum_required (VERSION 3.8)
cmake_minimum_required (VERSION 2.8)
project (zerotiercore)
cmake_policy(SET CMP0048 NEW)
set (PROJ_DIR ${PROJECT_SOURCE_DIR})
set (ZT_DEFS -std=c++11)
if(${CMAKE_VERSION} VERSION_LESS 3.15)
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
else()
cmake_policy(VERSION 3.15)
endif()
file(GLOB core_src_glob ${PROJ_DIR}/node/*.cpp)
add_library(zerotiercore STATIC ${core_src_glob})
set(ZEROTIER_VERSION_MAJOR 1 CACHE INTERNAL "")
set(ZEROTIER_VERSION_MINOR 9 CACHE INTERNAL "")
set(ZEROTIER_VERSION_REVISION 0 CACHE INTERNAL "")
set(ZEROTIER_VERSION_BUILD 0 CACHE INTERNAL "")
target_compile_options(zerotiercore PRIVATE ${ZT_DEFS})
project(zerotier
VERSION ${ZEROTIER_VERSION_MAJOR}.${ZEROTIER_VERSION_MINOR}.${ZEROTIER_VERSION_REVISION}.${ZEROTIER_VERSION_BUILD}
DESCRIPTION "ZeroTier Network Hypervisor"
LANGUAGES CXX C)
if(NOT PACKAGE_STATIC)
find_program(
GO go
HINTS "/usr/local/go/bin" "/usr/bin" "/usr/local/bin" "C:/go/bin"
)
if(NOT GO)
message(FATAL_ERROR "Golang not found")
else(NOT GO)
message(STATUS "Found Golang at ${GO}")
endif(NOT GO)
set(default_build_type "Release")
if(WIN32)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_SYSTEM_VERSION "7" CACHE STRING INTERNAL FORCE)
else(WIN32)
if(APPLE)
set(CMAKE_CXX_STANDARD 17)
else(APPLE)
set(CMAKE_CXX_STANDARD 11)
endif(APPLE)
endif(WIN32)
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
message(STATUS "Setting build type to '${default_build_type}' as none was specified.")
set(CMAKE_BUILD_TYPE "${default_build_type}" CACHE STRING "Choose the type of build." FORCE)
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
endif()
option(BUILD_CENTRAL_CONTROLLER "Build ZeroTier Central Controller" OFF)
if(BUILD_CENTRAL_CONTROLLER)
find_package(PkgConfig REQUIRED)
if(APPLE)
set(CMAKE_PREFIX_PATH
${CMAKE_PREFIX_PATH}
/usr/local/opt/libpq
/usr/local/lib
)
endif(APPLE)
find_package(PostgreSQL REQUIRED)
pkg_check_modules(hiredis REQUIRED IMPORTED_TARGET hiredis)
add_subdirectory(controller/thirdparty/redis-plus-plus-1.1.1)
set(redispp_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/controller/thirdparty/redis-plus-plus-1.1.1/src/sw)
set(redispp_STATIC_LIB redispp_static)
endif(BUILD_CENTRAL_CONTROLLER)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
add_definitions(-DZT_DEBUG)
endif(CMAKE_BUILD_TYPE STREQUAL "Debug")
if(WIN32)
message("++ Setting Windows Compiler Flags ${CMAKE_BUILD_TYPE}")
add_definitions(-DNOMINMAX)
add_compile_options(
-Wall
-Wno-deprecated
-Wno-unused-function
-Wno-format
$<$<CONFIG:DEBUG>:-g>
$<$<CONFIG:DEBUG>:-O0>
$<$<CONFIG:RELEASE>:-O3>
$<$<CONFIG:RELEASE>:-ffast-math>
$<$<CONFIG:RELWITHDEBINFO>:-O3>
$<$<CONFIG:RELWITHDEBINFO>:-g>
)
set(GOFLAGS
-a
-trimpath
)
if(BUILD_32BIT)
set(CMAKE_SYSTEM_PROCESSOR "x86" CACHE STRING "system processor")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32" CACHE STRING "c++ flags")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32" CACHE STRING "c flags")
set(GOARCH "GOARCH=386" CACHE STRING "go architecture")
add_compile_options(
-m32
)
add_link_options(
-m32
)
endif(BUILD_32BIT)
else(WIN32)
set(GOFLAGS
-trimpath
-buildmode=pie
)
if(APPLE)
message("++ Setting MacOS Compiler Flags ${CMAKE_BUILD_TYPE}")
set(MACOS_VERSION_MIN "10.12")
add_compile_options(
-Wall
-Wno-deprecated
-Wno-unused-function
-mmacosx-version-min=${MACOS_VERSION_MIN}
$<$<CONFIG:DEBUG>:-g>
$<$<CONFIG:DEBUG>:-O0>
$<$<CONFIG:RELEASE>:-Ofast>
$<$<CONFIG:RELEASE>:-ffast-math>
$<$<CONFIG:RELEASE>:-fPIE>
$<$<CONFIG:RELEASE>:-flto>
$<$<CONFIG:RELWITHDEBINFO>:-O1>
$<$<CONFIG:RELWITHDEBINFO>:-fPIE>
$<$<CONFIG:RELWITHDEBINFO>:-g>
)
add_link_options(
-mmacosx-version-min=${MACOS_VERSION_MIN}
$<$<CONFIG:RELEASE>:-flto>
)
set(GOFLAGS
${GOFLAGS}
-a
-ldflags '-w -extldflags \"-Wl,-undefined -Wl,dynamic_lookup\"'
)
else(APPLE)
message("++ Setting Linux/BSD/Posix Compiler Flags (${CMAKE_BUILD_TYPE})")
add_compile_options(
-Wall
-Wno-deprecated
-Wno-unused-function
-Wno-format
$<$<CONFIG:DEBUG>:-g>
$<$<CONFIG:DEBUG>:-O0>
$<$<CONFIG:RELEASE>:-O3>
$<$<CONFIG:RELEASE>:-ffast-math>
$<$<CONFIG:RELEASE>:-fPIE>
$<$<CONFIG:RELWITHDEBINFO>:-O3>
$<$<CONFIG:RELWITHDEBINFO>:-fPIE>
$<$<CONFIG:RELWITHDEBINFO>:-g>
)
option(BUILD_32BIT "Force building as 32-bit binary" OFF)
option(BUILD_STATIC "Build statically linked executable" OFF)
option(BUILD_ARM_V5 "Build ARMv5" OFF)
option(BUILD_ARM_V6 "Build ARMv6" OFF)
if(BUILD_ARM_V5 AND BUILD_ARM_V6)
message(FATAL_ERROR "BUILD_ARM_V5 and BUILD_ARM_V6 are mutually exclusive!")
endif(BUILD_ARM_V5 AND BUILD_ARM_V6)
if(BUILD_32BIT)
set(CMAKE_SYSTEM_PROCESSOR "x86" CACHE STRING "system processor")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32" CACHE STRING "c++ flags")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32" CACHE STRING "c flags")
set(GOARCH "GOARCH=386" CACHE STRING "go architecture")
add_compile_options(
-m32
)
endif(BUILD_32BIT)
if(BUILD_STATIC)
add_link_options(
-static
)
set(CMAKE_EXE_LINKER_FLAGS "-static ${CMAKE_EXE_LINKER_FLAGS}")
set(GOFLAGS
${GOFLAGS}
-a
-tags osusergo,netgo
-ldflags '-w -extldflags \"-static -Wl,-unresolved-symbols=ignore-all\"'
)
else(BUILD_STATIC)
set(GOFLAGS
${GOFLAGS}
-a
-ldflags '-w -extldflags \"-Wl,-unresolved-symbols=ignore-all\"'
)
endif(BUILD_STATIC)
if(BUILD_ARM_V5)
set(GOARM "GOARM=5")
endif(BUILD_ARM_V5)
if(BUILD_ARM_V6)
set(GOARM "GOARM=6")
endif(BUILD_ARM_V6)
endif(APPLE)
endif(WIN32)
if (
CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64" OR
CMAKE_SYSTEM_PROCESSOR MATCHES "amd64" OR
CMAKE_SYSTEM_PROCESSOR MATCHES "AMD64" OR
CMAKE_SYSTEM_PROCESSOR MATCHES "X86_64" OR
CMAKE_SYSTEM_PROCESSOR MATCHES "x64" OR
CMAKE_SYSTEM_PROCESSOR MATCHES "X64"
)
message("++ Adding flags for processor ${CMAKE_SYSTEM_PROCESSOR}")
add_compile_options(-maes -mrdrnd -mpclmul -msse -msse2)
endif()
if (
CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64" OR
CMAKE_SYSTEM_PROCESSOR MATCHES "arm64" OR
CMAKE_SYSTEM_PROCESSOR MATCHES "ARM64" OR
CMAKE_SYSTEM_PROCESSOR MATCHES "AARCH64"
)
message("++ Adding flags for processor ${CMAKE_SYSTEM_PROCESSOR}")
add_compile_options(-march=armv8-a+aes+crypto -mtune=generic -mstrict-align)
endif()
set(GO_BUILD_TAGS)
if(BUILD_CENTRAL_CONTROLLER)
add_definitions(-DZT_CONTROLLER_USE_LIBPQ=1)
set(GO_BUILD_TAGS -tags central)
endif(BUILD_CENTRAL_CONTROLLER)
add_subdirectory(core)
add_subdirectory(controller)
add_subdirectory(osdep)
add_subdirectory(serviceiocore)
file(GLOB go_src
${CMAKE_SOURCE_DIR}/cmd/*.go
${CMAKE_SOURCE_DIR}/cmd/cmd/*.go
${CMAKE_SOURCE_DIR}/pkg/zerotier/*.go
)
file(GLOB go_zt_service_tests_cmd_src
${CMAKE_SOURCE_DIR}/cmd/zt_service_tests/*.go
)
if(WIN32)
set(GO_EXE_NAME "zerotier.exe")
set(GO_SERVICE_TESTS_EXE_NAME "zt_service_tests.exe")
set(GO_EXTRA_LIBRARIES "-lstdc++ -lwsock32 -lws2_32 -liphlpapi -lole32 -loleaut32 -lrpcrt4 -luuid")
else(WIN32)
set(GO_EXE_NAME "zerotier")
set(GO_SERVICE_TESTS_EXE_NAME "zt_service_tests")
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
set(GO_EXTRA_LIBRARIES "-lstdc++")
if(BUILD_ARM_V5)
set(GO_EXTRA_LIBRARIES
${GO_EXTRA_LIBRARIES}
"-latomic"
)
endif(BUILD_ARM_V5)
else()
set(GO_EXTRA_LIBRARIES "-lc++" "-lm")
endif()
endif(WIN32)
add_custom_target(
zt_service_tests ALL
BYPRODUCTS ${CMAKE_BINARY_DIR}/zt_service_tests
SOURCES ${go_src} ${go_zt_service_tests_cmd_src}
COMMAND ${CMAKE_COMMAND} -E env ${GOARCH} ${GOARM} CGO_ENABLED=1 CGO_CFLAGS=\"-O3\" CGO_LDFLAGS=\"$<TARGET_FILE:zt_core> $<TARGET_FILE:zt_controller> $<TARGET_FILE:zt_service_io_core> $<TARGET_FILE:zt_osdep> ${GO_EXTRA_LIBRARIES}\" ${GO} build -mod=vendor ${GOFLAGS} -o ${CMAKE_BINARY_DIR}/${GO_SERVICE_TESTS_EXE_NAME} ${go_zt_service_tests_cmd_src}
COMMENT "Compiling zt_service_tests (Go/cgo self-tests)..."
)
add_dependencies(zt_service_tests zt_osdep zt_core zt_controller zt_service_io_core)
add_custom_target(
zerotier ALL
BYPRODUCTS ${CMAKE_BINARY_DIR}/zerotier
SOURCES ${go_src}
COMMAND ${CMAKE_COMMAND} -E env ${GOARCH} ${GOARM} CGO_ENABLED=1 CGO_CFLAGS=\"-O3\" CGO_LDFLAGS=\"$<TARGET_FILE:zt_core> $<TARGET_FILE:zt_controller> $<TARGET_FILE:zt_service_io_core> $<TARGET_FILE:zt_osdep> ${GO_EXTRA_LIBRARIES}\" ${GO} build -mod=vendor ${GOFLAGS} -o ${CMAKE_BINARY_DIR}/${GO_EXE_NAME} ${CMAKE_SOURCE_DIR}/cmd/zerotier/zerotier.go
COMMENT "Compiling Go Code..."
)
add_dependencies(zerotier zt_osdep zt_core zt_controller zt_service_io_core)
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/zerotier DESTINATION bin)
else(NOT PACKAGE_STATIC)
if(BUILD_32BIT)
set(CMAKE_SYSTEM_PROCESSOR "x86" CACHE STRING "system processor")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32" CACHE STRING "c++ flags")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32" CACHE STRING "c flags")
add_compile_options(
-m32
)
endif(BUILD_32BIT)
set(STATIC_BINARY ${CMAKE_BINARY_DIR}/zerotier)
set(IMPORTED_LOCATION ${CMAKE_BINARY_DIR})
add_executable(zerotier IMPORTED GLOBAL)
install(PROGRAMS ${STATIC_BINARY} DESTINATION bin)
endif(NOT PACKAGE_STATIC)
# Linux packaging
if("${CMAKE_SYSTEM_NAME}" EQUAL "Linux")
if(IS_DIRECTORY /lib/systemd/system)
install(
FILES ${CMAKE_CURRENT_SOURCE_DIR}/packaging/debian/zerotier.service
DESTINATION /lib/systemd/system
)
elseif(IS_DIRECTORY /usr/lib/systemd/system)
install(
FILES ${CMAKE_CURRENT_SOURCE_DIR}/packaging/debian/zerotier.service
DESTINATION /usr/lib/systemd/system
)
else()
install(
FILES ${CMAKE_CURRENT_SOURCE_DIR}/packaging/debian/zerotier.init
DESTINATION /etc/init.d
)
endif()
endif()
if("${ZT_PACKAGE_FORMAT}" MATCHES "DEB")
include(packaging/debian.cmake)
elseif("${ZT_PACKAGE_FORMAT}" MATCHES "RPM")
include(packaging/rpm.cmake)
else()
endif()
+1 -1
View File
@@ -1,5 +1,5 @@
ZeroTier One, an endpoint server for the ZeroTier virtual network layer.
Copyright © 2011–2019 ZeroTier, Inc.
Copyright © 2013–2020 ZeroTier, Inc.
ZeroTier is released under the terms of the BSL version 1.1. See the
file LICENSE.txt for details.
-28
View File
@@ -1,28 +0,0 @@
# vim: ft=dockerfile
FROM ubuntu:21.04 as stage
RUN apt-get update -qq && apt-get -qq install make clang
COPY . .
RUN /usr/bin/make
RUN echo $PWD
RUN cp zerotier-one /usr/sbin
FROM ubuntu:21.04
COPY --from=stage /zerotier-one /usr/sbin
RUN ln -sf /usr/sbin/zerotier-one /usr/sbin/zerotier-idtool
RUN ln -sf /usr/sbin/zerotier-one /usr/sbin/zerotier-cli
RUN echo "${VERSION}" > /etc/zerotier-version
RUN rm -rf /var/lib/zerotier-one
RUN apt-get -qq update
RUN apt-get -qq install iproute2 net-tools fping 2ping iputils-ping iputils-arping
COPY entrypoint.sh.release /entrypoint.sh
RUN chmod 755 /entrypoint.sh
CMD []
ENTRYPOINT ["/entrypoint.sh"]
-23
View File
@@ -1,23 +0,0 @@
# vim: ft=dockerfile
FROM debian:bullseye
ARG VERSION
RUN apt-get update -qq && apt-get install curl gpg -y
RUN mkdir -p /usr/share/zerotier && \
curl -o /usr/share/zerotier/tmp.asc "https://download.zerotier.com/contact%40zerotier.com.gpg" && \
gpg --no-default-keyring --keyring /usr/share/zerotier/zerotier.gpg --import /usr/share/zerotier/tmp.asc && \
rm -f /usr/share/zerotier/tmp.asc && \
echo "deb [signed-by=/usr/share/zerotier/zerotier.gpg] http://download.zerotier.com/debian/bullseye bullseye main" > /etc/apt/sources.list.d/zerotier.list
RUN apt-get update -qq && apt-get install zerotier-one=${VERSION} curl iproute2 net-tools iputils-ping openssl libssl1.1 -y
RUN rm -rf /var/lib/zerotier-one
COPY entrypoint.sh.release /entrypoint.sh
RUN chmod 755 /entrypoint.sh
HEALTHCHECK --interval=1s CMD bash /healthcheck.sh
CMD []
ENTRYPOINT ["/entrypoint.sh"]
Vendored
+502
View File
File diff suppressed because it is too large. Load diff
+3 -3
View File
@@ -10,8 +10,8 @@ License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved.
Parameters
Licensor: ZeroTier, Inc.
Licensed Work: ZeroTier Network Virtualization Engine 1.4.4
The Licensed Work is (c)2019 ZeroTier, Inc.
Licensed Work: ZeroTier Network Virtualization Engine
The Licensed Work is (c)2013-2020 ZeroTier, Inc.
Additional Use Grant: You may make use of the Licensed Work, provided you
do not use it in any of the following ways:
@@ -26,7 +26,7 @@ Additional Use Grant: You may make use of the Licensed Work, provided you
ZeroTier behind the scenes to operate a service not
related to ZeroTier network administration.
* Create Non-Open-Source Commercial Derviative Works
* Create Non-Open-Source Commercial Derivative Works
(2) Link or directly include the Licensed Work in a
commercial or for-profit application or other product
+25 -26
View File
@@ -1,32 +1,31 @@
# Common makefile -- loads make rules for each platform
BUILDDIR := build
TIMESTAMP=$(shell date +"%Y%m%d%H%M")
OSTYPE=$(shell uname -s)
.PHONY: all
ifeq ($(OSTYPE),Darwin)
include make-mac.mk
endif
all: setup
cd ${BUILDDIR} && $(MAKE) -j4 VERBOSE=1
ifeq ($(OSTYPE),Linux)
include make-linux.mk
endif
setup:
mkdir -p ${BUILDDIR} && cd ${BUILDDIR} && cmake .. -DCMAKE_BUILD_TYPE=Release ${CMAKE_ARGS}
ifeq ($(OSTYPE),FreeBSD)
CC=clang
CXX=clang++
ZT_BUILD_PLATFORM=7
include make-bsd.mk
endif
ifeq ($(OSTYPE),OpenBSD)
CC=clang
CXX=clang++
ZT_BUILD_PLATFORM=9
include make-bsd.mk
endif
setup-debug:
mkdir -p ${BUILDDIR} && cd ${BUILDDIR} && cmake .. -DCMAKE_BUILD_TYPE=Debug ${CMAKE_ARGS}
ifeq ($(OSTYPE),NetBSD)
include make-netbsd.mk
endif
debug:
mkdir -p ${BUILDDIR} && cd ${BUILDDIR} && cmake .. -DCMAKE_BUILD_TYPE=Debug ${CMAKE_ARGS} && $(MAKE)
drone:
@echo "rendering .drone.yaml from .drone.jsonnet"
drone jsonnet --format --stream
central-controller:
mkdir -p ${BUILDDIR} && cd ${BUILDDIR} && cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_CENTRAL_CONTROLLER=1 ${CMAKE_ARGS} && $(MAKE) -j4
central-controller-debug:
mkdir -p ${BUILDDIR} && cd ${BUILDDIR} && cmake .. -DCMAKE_BUILD_TYPE=Debug -DBUILD_CENTRAL_CONTROLLER=1 ${CMAKE_ARGS} && $(MAKE) -j4
central-controller-docker:
docker build -t registry.zerotier.com/zerotier-central/ztcentral-controller:${TIMESTAMP} -f controller/central-docker/Dockerfile .
clean:
rm -rf ${BUILDDIR}
distclean:
rm -rf ${BUILDDIR}
-71
View File
@@ -1,71 +0,0 @@
# ZeroTier One in a container!
**NOTE:** _Most of this information pertains to the docker image only. For more information about ZeroTier, check out the repository_: [here](https://github.com/zerotier/ZeroTierOne) or the [commercial website](https://www.zerotier.com).
[ZeroTier](https://www.zerotier.com) is a smart programmable Ethernet switch for planet Earth. It allows all networked devices, VMs, containers, and applications to communicate as if they all reside in the same physical data center or cloud region.
This is accomplished by combining a cryptographically addressed and secure peer to peer network (termed VL1) with an Ethernet emulation layer somewhat similar to VXLAN (termed VL2). Our VL2 Ethernet virtualization layer includes advanced enterprise SDN features like fine grained access control rules for network micro-segmentation and security monitoring.
All ZeroTier traffic is encrypted end-to-end using secret keys that only you control. Most traffic flows peer to peer, though we offer free (but slow) relaying for users who cannot establish peer to peer connections.
The goals and design principles of ZeroTier are inspired by among other things the original [Google BeyondCorp](https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/43231.pdf) paper and the [Jericho Forum](https://en.wikipedia.org/wiki/Jericho_Forum) with its notion of "deperimeterization."
Visit [ZeroTier's site](https://www.zerotier.com/) for more information and [pre-built binary packages](https://www.zerotier.com/download/). Apps for Android and iOS are available for free in the Google Play and Apple app stores.
ZeroTier is licensed under the [BSL version 1.1](https://mariadb.com/bsl11/). See [LICENSE.txt](https://github.com/zerotier/ZeroTierOne/blob/master/LICENSE.txt) and the [ZeroTier pricing page](https://www.zerotier.com/pricing) for details. ZeroTier is free to use internally in businesses and academic institutions and for non-commercial purposes. Certain types of commercial use such as building closed-source apps and devices based on ZeroTier or offering ZeroTier network controllers and network management as a SaaS service require a commercial license.
A small amount of third party code is also included in ZeroTier and is not subject to our BSL license. See [AUTHORS.md](https://github.com/zerotier/ZeroTierOne/blob/master/AUTHORS.md) for a list of third party code, where it is included, and the licenses that apply to it. All of the third party code in ZeroTier is liberally licensed (MIT, BSD, Apache, public domain, etc.).
## Building the docker image
Due to the network being a substrate for most applications and not an application unto itself, it makes sense that many people would want to build their own image based on our formula.
The image is based on `debian:buster`.
The `Dockerfile.release` file contains build instructions for building the described image in the rest of the README. The build is multi-arch and multi-release capable.
These build arguments power the build:
- `PACKAGE_BASEURL`: The base URL of the package repository to fetch from. (default: `https://download.zerotier.com/debian/buster/pool/main/z/zerotier-one/`)
- `ARCH`: The architecture of the package, in debian format. Must match your image arch. (default: `amd64`)
- `VERSION`: **REQUIRED** the version of ZeroTier to fetch.
You can build this image like so:
```
docker build -f Dockerfile.release -t mybuild --build-arg VERSION=1.6.5 .
```
## Using the docker image
The `entrypoint.sh` in the docker image is a little different; zerotier will be spawned in the background and the "main process" is actually just a sleeping shell script. This allows `zerotier-one` to gracefully terminate in some situations largely unique to docker.
The `zerotier/zerotier` image requires the `CAP_NET_ADMIN` capability and the `/dev/net/tun` device must be forwarded to it.
To join a network, simply supply it on the command-line; you can supply multiple networks.
```
docker run --name myzerotier --rm --cap-add NET_ADMIN --device /dev/net/tun zerotier/zerotier:latest abcdefdeadbeef00
```
Once joining all the networks you have provided, it will sleep until terminated. Note that in ZeroTier, joining a network does not necessarily mean you have an IP or can do anything, really. You will want to probe the control socket:
```
docker exec myzerotier zerotier-cli listnetworks
```
To ensure you have a network available before trying to listen on it. Without pre-configuring the identity, this usually means going to the central admin panel and clicking the checkmark against your zerotier identity.
### Environment Variables
You can control a few settings including the identity used and the authtoken used to interact with the control socket (which you can forward and access through `localhost:9993`).
- `ZEROTIER_API_SECRET`: replaces the `authtoken.secret` before booting and allows you to manage the control socket's authentication key.
- `ZEROTIER_IDENTITY_PUBLIC`: the `identity.public` file for zerotier-one. Use `zerotier-idtool` to generate one of these for you.
- `ZEROTIER_IDENTITY_SECRET`: the `identity.secret` file for zerotier-one. Use `zerotier-idtool` to generate one of these for you.
### Tips
- Forwarding port `<dockerip>:9993` to somewhere outside is probably a good idea for highly trafficked services.
- Forwarding `localhost:9993` to a control network where you can drive it remotely might be a good idea, just be sure to set your authtoken properly through environment variables.
- Pre-generating your identities could be much simpler to do via our [terraform plugin](https://github.com/zerotier/terraform-provider-zerotier)
Loaded 20 of 15071 files, more files were not shown because too many files have changed in this diff. Show more