summaryrefslogtreecommitdiffstats
path: root/openpgp/src/message
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/message')
-rw-r--r--openpgp/src/message/mod.rs4
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 ]);