Merge branch 'main' into feat/zeroize-secrets
All checks were successful
ci / test (pull_request) Successful in 6m33s

This commit is contained in:
sirius 2026-09-12 19:06:50 +00:00
commit 8eb0820df0
27 changed files with 2863 additions and 139 deletions

View file

@ -36,6 +36,16 @@ impl Error {
pub fn is_fingerprint_mismatch(&self) -> bool {
self.mismatch
}
/// String for the UI: a pinned-identity mismatch gets the documented banner,
/// everything else is the underlying snow/framing message.
pub fn into_message(self) -> String {
if self.mismatch {
crate::tui::fingerprint_mismatch_banner().to_string()
} else {
self.msg
}
}
}
impl std::fmt::Display for Error {