summaryrefslogtreecommitdiffstats
path: root/openpgp/src/serialize.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2023-02-15 15:22:09 +0100
committerJustus Winter <justus@sequoia-pgp.org>2024-03-13 10:59:08 +0100
commitb6c06886844dc000d25d4c0c51f74f4d5045ff8b (patch)
tree4650789b770ea4ce92b9512c6b5d2016734efc43 /openpgp/src/serialize.rs
parent394369d72979e6a1dbaf8695d1ea71e341a38e0b (diff)
openpgp: Implement v6 fingerprints.
Diffstat (limited to 'openpgp/src/serialize.rs')
-rw-r--r--openpgp/src/serialize.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/openpgp/src/serialize.rs b/openpgp/src/serialize.rs
index 6dcc1845..0925310e 100644
--- a/openpgp/src/serialize.rs
+++ b/openpgp/src/serialize.rs
@@ -1493,8 +1493,8 @@ impl Marshal for SubpacketValue {
o.write_all(&[4])?;
o.write_all(fp.as_bytes())?;
},
- Fingerprint::V5(_) => {
- o.write_all(&[5])?;
+ Fingerprint::V6(_) => {
+ o.write_all(&[6])?;
o.write_all(fp.as_bytes())?;
},
_ => return Err(Error::InvalidArgument(
@@ -1509,8 +1509,8 @@ impl Marshal for SubpacketValue {
o.write_all(&[4])?;
o.write_all(fp.as_bytes())?;
},
- Fingerprint::V5(_) => {
- o.write_all(&[5])?;
+ Fingerprint::V6(_) => {
+ o.write_all(&[6])?;
o.write_all(fp.as_bytes())?;
},
_ => return Err(Error::InvalidArgument(