A PQ node could complete the hybrid handshake and still never join the network: status ACCESS_DENIED, peers [], frames dropped. Three separate defects, none in the key exchange itself. 1. EmbeddedNetworkController::_request gated known members with Identity(haveIdStr) != identity. HELLO carries only the classic projection (Identity::serializeClassic), so peer->identity() stays type 0 while a stored record is type 1, and operator== -- which compares PQ material -- always reported a mismatch. Use the existing sameClassicalIdentity(); PQ key rotation stays detectable via VERB_PQ_KEYS. 2. Peer::setPQPublicKeys() cached the received PQ keys for the crypto path only and never wrote them into _id. The controller's identity therefore stayed type 0 in every table, com.verify() returned 1, and Membership deferred for WHOIS forever -- a WHOIS cannot help, the keys arrive in VERB_PQ_KEYS. Add Identity::attachPQPublicKeys() and call it so the peer's Identity is complete once keys arrive. 3. OneServiceImpl::run constructed an EmbeddedNetworkController unconditionally, so a member-only node answered its own NETWORK_CONFIG_REQUESTs and self-signed a local config, never contacting the node that owned the network. Add settings.disableController (default false, so existing installs are unchanged) for member-only nodes. Verified live on two hosts with pqcMode: hybrid on both sides: status OK, peer DIRECT over 192.168.122.85/9993, pqcCapable and pqcHybridActive true both directions, ping 0% loss both ways, selftest exit 0. The selftest regression covers the controller match and keeps rejecting an impostor identity at the same address. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
49 lines
1005 B
C
49 lines
1005 B
C
/*
|
|
* Copyright (c)2019 ZeroTier, Inc.
|
|
*
|
|
* Use of this software is governed by the Business Source License included
|
|
* in the LICENSE.TXT file in the project's root directory.
|
|
*
|
|
* Change Date: 2026-01-01
|
|
*
|
|
* On the date above, in accordance with the Business Source License, use
|
|
* of this software will be governed by version 2.0 of the Apache License.
|
|
*/
|
|
/****/
|
|
|
|
#ifndef _ZT_VERSION_H
|
|
#define _ZT_VERSION_H
|
|
|
|
/**
|
|
* Major version
|
|
*/
|
|
#define ZEROTIER_ONE_VERSION_MAJOR 2
|
|
|
|
/**
|
|
* Minor version
|
|
*/
|
|
#define ZEROTIER_ONE_VERSION_MINOR 0
|
|
|
|
/**
|
|
* Revision
|
|
*/
|
|
#define ZEROTIER_ONE_VERSION_REVISION 2
|
|
|
|
/**
|
|
* Build version
|
|
*
|
|
* This starts at 0 for each major.minor.rev tuple and can be incremented
|
|
* to force a minor update without an actual version number change. It's
|
|
* not part of the actual release version number.
|
|
*/
|
|
#define ZEROTIER_ONE_VERSION_BUILD 0
|
|
|
|
#ifndef ZT_BUILD_ARCHITECTURE
|
|
#define ZT_BUILD_ARCHITECTURE 0
|
|
#endif
|
|
#ifndef ZT_BUILD_PLATFORM
|
|
#define ZT_BUILD_PLATFORM 0
|
|
#endif
|
|
|
|
#endif
|