From adb5293f1d3dadc6598192f7fb0db25f2f56201e Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 15 Jan 2025 16:19:46 -0500 Subject: [PATCH] keyfork derive openpgp: export secret keys instead of public certs --- crates/derive/keyfork-derive-openpgp/src/main.rs | 2 +- crates/keyfork/src/cli/derive.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/derive/keyfork-derive-openpgp/src/main.rs b/crates/derive/keyfork-derive-openpgp/src/main.rs index 15b21f8..6b3d544 100644 --- a/crates/derive/keyfork-derive-openpgp/src/main.rs +++ b/crates/derive/keyfork-derive-openpgp/src/main.rs @@ -121,7 +121,7 @@ fn run() -> Result<(), Box> { let mut w = Writer::new(std::io::stdout(), Kind::SecretKey)?; - for packet in cert.into_packets2() { + for packet in cert.as_tsk().into_packets() { packet.serialize(&mut w)?; } diff --git a/crates/keyfork/src/cli/derive.rs b/crates/keyfork/src/cli/derive.rs index 3f28856..2811856 100644 --- a/crates/keyfork/src/cli/derive.rs +++ b/crates/keyfork/src/cli/derive.rs @@ -124,7 +124,7 @@ impl OpenPGP { let mut w = Writer::new(std::io::stdout(), Kind::SecretKey)?; - for packet in cert.into_packets2() { + for packet in cert.as_tsk().into_packets() { packet.serialize(&mut w)?; }