From: Ian Jackson Date: Sun, 30 May 2021 22:56:02 +0000 (+0100) Subject: sshkeys: Make MgktKeyReport contain Nonce via KeySpec X-Git-Tag: otter-0.7.0~206 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=99792b721e3adcfce2a5773be1e985a482d642a7;p=otter.git sshkeys: Make MgktKeyReport contain Nonce via KeySpec Signed-off-by: Ian Jackson --- diff --git a/src/sshkeys.rs b/src/sshkeys.rs index f432d7fd..d9a79103 100644 --- a/src/sshkeys.rs +++ b/src/sshkeys.rs @@ -178,7 +178,7 @@ impl PerScope { #[derive(Debug,Clone,Serialize,Deserialize)] pub struct MgmtKeyReport { - id: Id, + key: KeySpec, data: PubData, comment: Comment, problem: Option, @@ -225,7 +225,10 @@ impl AccountsGuard { let problem = if let Some(Err(ref e)) = key.fp { Some(e) } else { dirty_error.as_ref() }; MgmtKeyReport { + key: KeySpec { id: sk.id, + nonce: key.nonce.clone(), + }, data: key.data.clone(), comment: sk.comment.clone(), problem: problem.cloned(),