summaryrefslogtreecommitdiffstats
path: root/openpgp/src/serialize.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-08-05 13:05:49 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-08-05 13:08:56 +0200
commit30fa2d80ac627324350f1533c5630f25ecc9cedc (patch)
tree72c29f6d965691850e06fd1818de385509c17e81 /openpgp/src/serialize.rs
parent7d4090c4c862e6f38f5a17a9ad77484bf219909d (diff)
openpgp: Implement NotationDataFlags using Bitfield.
- In contrast with the other bitfields, this one has a fixed size. Account for that in the API. Don't implement Default. - Fixes #525.
Diffstat (limited to 'openpgp/src/serialize.rs')
-rw-r--r--openpgp/src/serialize.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/serialize.rs b/openpgp/src/serialize.rs
index a0a7e459..2f8cbed4 100644
--- a/openpgp/src/serialize.rs
+++ b/openpgp/src/serialize.rs
@@ -1373,7 +1373,7 @@ impl Marshal for SubpacketValue {
Issuer(ref id) =>
o.write_all(id.as_bytes())?,
NotationData(nd) => {
- write_be_u32(o, nd.flags().raw())?;
+ o.write_all(nd.flags().as_slice())?;
write_be_u16(o, nd.name().len() as u16)?;
write_be_u16(o, nd.value().len() as u16)?;
o.write_all(nd.name().as_bytes())?;