Skip to main content

pin_alias

Function pin_alias 

Source
pub fn pin_alias(path: &Path, alias: &str, host_keys: &[String]) -> Result<bool>
Expand description

Pins host_keys (type base64, a trailing comment is dropped) under alias, skipping keys already pinned there; a new key replaces the one of its type pinned before, since a host has one key per type. Returns whether it wrote.