Skip to main content

uid_owns_name

Function uid_owns_name 

Source
pub(crate) fn uid_owns_name(store: &Store, uid: &str, name: &str) -> bool
Expand description

Whether uid’s row is the one agent this instance knows by name: its slug is name ignoring case, and no other row’s slug folds to name. Every per-name key (host HMAC, LAN, WAN) is stored under the folded name, so a second row differing only in case (Victim beside victim) would hold the first one’s keys; for such a name nobody is its owner.