From 99792b721e3adcfce2a5773be1e985a482d642a7 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 30 May 2021 23:56:02 +0100 Subject: [PATCH] sshkeys: Make MgktKeyReport contain Nonce via KeySpec Signed-off-by: Ian Jackson --- src/sshkeys.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(), -- 2.30.2