From 4824e2329d38e14acd660c4c12ae4d41f7f6af50 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Mon, 16 Dec 2024 22:47:54 +0800 Subject: [PATCH] feat: updates --- src/cmd_se_ecdh.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cmd_se_ecdh.rs b/src/cmd_se_ecdh.rs index 0a1d487..38d55fb 100644 --- a/src/cmd_se_ecdh.rs +++ b/src/cmd_se_ecdh.rs @@ -79,8 +79,9 @@ impl Command for CommandImpl { if json_output { let mut json = BTreeMap::<&'_ str, String>::new(); - json.insert("shared_secret_hex", dh_hex); + + println!("{}", serde_json::to_string_pretty(&json).unwrap()); } else { information!("Shared secret: {}", dh_hex); }