mirror of
https://github.com/jmcorgan/fips.git
synced 2026-08-09 08:14:42 +00:00
Fix promote_connection to transfer NoiseSession, session indices, transport ID, and source address to ActivePeer. Populate peers_by_index during promotion for O(1) encrypted frame dispatch. Add responder-side promotion in handle_msg1 — after sending msg2, the responder immediately promotes to ActivePeer since Noise IK completes in one step for the responder side. Wire run_rx_loop into the fips binary using tokio::select with Ctrl+C shutdown signal, so the daemon actually processes incoming packets. Add end-to-end integration test: two nodes with real UDP sockets perform full Noise IK handshake and bidirectional encrypted frame exchange (266 tests, all passing).