summaryrefslogtreecommitdiffstats
path: root/openpgp/src/serialize/stream.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/serialize/stream.rs')
-rw-r--r--openpgp/src/serialize/stream.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/openpgp/src/serialize/stream.rs b/openpgp/src/serialize/stream.rs
index 24e4b165..5990fd35 100644
--- a/openpgp/src/serialize/stream.rs
+++ b/openpgp/src/serialize/stream.rs
@@ -2960,6 +2960,7 @@ impl<'a> Encryptor<'a> {
BodyLength::Full(20).serialize(&mut header)?;
self.hash.update(&header);
+ #[allow(deprecated)]
Packet::MDC(MDC::from(self.hash.clone())).serialize(&mut w)?;
// Now recover the original writer. First, strip the
@@ -3341,6 +3342,7 @@ mod test {
},
// Look for the MDC packet.
+ #[allow(deprecated)]
State::MDC =>
if let Packet::MDC(ref mdc) = pp.packet {
assert_eq!(mdc.digest(), mdc.computed_digest());