Skip to main content

Module lan_refusals

Module lan_refusals 

Source
Expand description

The key a LAN peer showed for a name whose pinned key is different, kept in memory so the operator’s pin screen can offer to accept it. It is not stored: after a restart the next refused message records it again.

Structs§

Refusal 🔒
The last key refused for one name.

Constants§

MAX_FIRST_CONTACT 🔒
First keys held at once; past it the one seen longest ago is dropped, so a peer that claims many names cannot grow this map or the pin screen’s list without limit.

Statics§

REFUSALS 🔒

Functions§

all 🔒
Every name with a key held for it, for the names that have no pin to list them under.
clear 🔒
Forget it: the pin was moved or cleared.
first_contact_with 🔒
A name with no pin showed observed_key_b64 and no trusted install vouched for it: nothing is pinned, and the key is kept for the pin screen to offer to accept.
get 🔒
The last key refused for agent, if any since this srv started.
note 🔒
pin_mismatch_with 🔒
[pin_mismatch], with the certificate that came with the key and the reason it did not move the pin.
refusals 🔒