enroll: add PEX sub-protocol to support enrolling new nodes into a network
authorFelix Fietkau <nbd@nbd.name>
Sat, 21 Dec 2024 19:54:28 +0000 (20:54 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sun, 26 Jan 2025 10:14:35 +0000 (11:14 +0100)
commitd13752814651c70d2afc71383612fafc835b631b
treec2eeeb64bac2713456aa2dbb407e593234304e60
parent5f78603062007e37b2caa3d169f6e74a3239af65
enroll: add PEX sub-protocol to support enrolling new nodes into a network

This protocol does a full DH exchange and allows both sides to confirm
the result based on a session id hash derived from the DH session key.
It exchanges the public auth_key for a network and a newly generated keypair
for the added node

Signed-off-by: Felix Fietkau <nbd@nbd.name>
CMakeLists.txt
enroll.c [new file with mode: 0644]
enroll.h [new file with mode: 0644]
network.c
pex-msg.c
pex-msg.h
pex.c
ubus.c
ubus.h