From 7646fd3e7ba95a03d64405bc3a032a064a921187 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 26 Dec 2024 21:48:17 -0800 Subject: zerotier: removed All vestiges of ZeroTier have been removed. Also, as consequence, some binary values have changed (specifically the number of the address family used for NNG_AF_ABSTRACT.) We may create a new ZeroTier transport that makes use of lwIP to provide for ZeroTier and native host network coexistence, without requiring ZeroTier to participate in the native networking stack. --- src/tools/nngcat/nngcat.c | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'src/tools/nngcat') diff --git a/src/tools/nngcat/nngcat.c b/src/tools/nngcat/nngcat.c index 1a1ed667..6f0d7d97 100644 --- a/src/tools/nngcat/nngcat.c +++ b/src/tools/nngcat/nngcat.c @@ -31,7 +31,6 @@ #include #include #include -#include // Globals. We need this to avoid passing around everything. int format = 0; @@ -52,7 +51,6 @@ void *keyfile = NULL; size_t keylen = 0; void *certfile = NULL; size_t certlen = 0; -const char *zthome = NULL; int count = 0; int recvmaxsz = -1; @@ -103,7 +101,6 @@ enum options { OPT_CERTFILE, OPT_VERSION, OPT_RECVMAXSZ, - OPT_ZTHOME, }; static nng_optspec opts[] = { @@ -201,11 +198,6 @@ static nng_optspec opts[] = { .o_val = OPT_CERTFILE, .o_arg = true, }, - { - .o_name = "zt-home", - .o_val = OPT_ZTHOME, - .o_arg = true, - }, { .o_name = "version", .o_short = 'V', .o_val = OPT_VERSION }, // Sentinel. @@ -270,7 +262,6 @@ help(void) printf(" --cacert \n"); printf(" --cert (or alias -E )\n"); printf(" --key \n"); - printf(" --zt-home \n"); printf("\n may be one of:\n"); printf(" --file (or alias -F ). " "Use - for standard input.\n"); @@ -872,9 +863,6 @@ main(int ac, char **av) } loadfile(arg, &certfile, &certlen); break; - case OPT_ZTHOME: - zthome = arg; - break; case OPT_INSECURE: insecure = 1; break; @@ -1113,14 +1101,6 @@ main(int ac, char **av) fatal("Unable to get TLS config: %s", nng_strerror(rv)); } - if (zthome != NULL) { - rv = nng_dialer_set_string( - d, NNG_OPT_ZT_HOME, zthome); - if ((rv != 0) && (rv != NNG_ENOTSUP)) { - fatal("Unable to set ZT home: %s", - nng_strerror(rv)); - } - } rv = nng_dialer_start(d, async); act = "dial"; if ((rv == 0) && (verbose == OPT_VERBOSE)) { @@ -1147,14 +1127,6 @@ main(int ac, char **av) fatal("Unable to get TLS config: %s", nng_strerror(rv)); } - if (zthome != NULL) { - rv = nng_listener_set_string( - l, NNG_OPT_ZT_HOME, zthome); - if ((rv != 0) && (rv != NNG_ENOTSUP)) { - fatal("Unable to set ZT home: %s", - nng_strerror(rv)); - } - } rv = nng_listener_start(l, async); act = "listen"; if ((rv == 0) && (verbose == OPT_VERBOSE)) { -- cgit v1.2.3-70-g09d2