diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-03-26 15:01:54 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-03-26 16:30:56 +0100 |
commit | 81f5cbe9384eb92f2264d774a5d55bd70022b36f (patch) | |
tree | f3802b4a6d10bcb575fa93fcb3f86bcbb11b06ad /openpgp/src/message | |
parent | b78ece7128a128ced693143d453bae2463d29168 (diff) |
openpgp: Add enum PKESK.
- See #228.
Diffstat (limited to 'openpgp/src/message')
-rw-r--r-- | openpgp/src/message/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/message/mod.rs b/openpgp/src/message/mod.rs index 6262e3be..3ea99194 100644 --- a/openpgp/src/message/mod.rs +++ b/openpgp/src/message/mod.rs @@ -1048,10 +1048,10 @@ mod tests { #[allow(deprecated)] packets.insert( 1, - Packet::PKESK(PKESK::new( + PKESK3::new( KeyID::from_hex("0000111122223333").unwrap(), PublicKeyAlgorithm::RSAEncrypt, - Ciphertext::RSA { c: MPI::new(&[]) }).unwrap())); + Ciphertext::RSA { c: MPI::new(&[]) }).unwrap().into()); assert!(packets.iter().map(|p| p.tag()).collect::<Vec<Tag>>() == [ Tag::SKESK, Tag::PKESK, Tag::SKESK, Tag::SEIP ]); |