Skip to main content

accept_handshake

Function accept_handshake 

Source
pub fn accept_handshake(
    sqlite: &SqliteStore,
    clock: &ClockGate,
    health: &Health,
    access: &DeviceAccess,
    data_dir: &Path,
    hello: &Hello,
) -> Result<()>
Expand description

The whole of a peer’s hello: its identity, the device rows, revocations and key epochs it carries, then its clock. Keys come before the clock so a revoked peer’s floors are never raised, yet the revocations it carries are still taken, and ssh access follows the rows even when the peer itself turns out to be revoked.