We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
key_data
1 parent dcec785 commit 936a1b7Copy full SHA for 936a1b7
examples/pgp-wrapper.rs
@@ -372,9 +372,7 @@ fn main() -> testresult::TestResult {
372
let mut keyflags = KeyFlags::default();
373
keyflags.set_encrypt_comms(true);
374
keyflags.set_encrypt_storage(true);
375
- let PublicCredential::Key(pubkey) = &decryption_id.pubkey else {
376
- panic!("Only pubkeys are supported.");
377
- };
+ let pubkey = decryption_id.pubkey.key_data();
378
let pk = ssh_to_pgp(pubkey.clone(), KeyRole::Decryption);
379
vec![pgp::PublicSubkey::new(
380
pgp::packet::PublicSubkey::new(
0 commit comments