diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2023-08-22 10:18:57 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-08-22 17:01:27 +0200 |
commit | d97d53dd681f394a40ee40c071bad53117db313d (patch) | |
tree | 598c9eb97f57825c07c574abc9254d1b04a709b5 | |
parent | d74a2582bb0fda6b18b207e2f2b94c8487a026ec (diff) |
openpgp: Reserve signature subpacket tag 38 ("Key Block").
-rw-r--r-- | openpgp/src/packet/signature/subpacket.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openpgp/src/packet/signature/subpacket.rs b/openpgp/src/packet/signature/subpacket.rs index 18418982..bf683bfa 100644 --- a/openpgp/src/packet/signature/subpacket.rs +++ b/openpgp/src/packet/signature/subpacket.rs @@ -375,7 +375,7 @@ impl From<u8> for SubpacketTag { 34 => SubpacketTag::PreferredAEADAlgorithms, 35 => SubpacketTag::IntendedRecipient, 37 => SubpacketTag::AttestedCertifications, - 0| 1| 8| 13| 14| 15| 17| 18| 19 => SubpacketTag::Reserved(u), + 0| 1| 8| 13| 14| 15| 17| 18| 19 | 38 => SubpacketTag::Reserved(u), 100..=110 => SubpacketTag::Private(u), _ => SubpacketTag::Unknown(u), } @@ -488,7 +488,8 @@ mod tests { SubpacketTag::Reserved(u) => (u == 0 || u == 1 || u == 8 || u == 13 || u == 14 || u == 15 - || u == 17 || u == 18 || u == 19), + || u == 17 || u == 18 || u == 19 + || u == 38), SubpacketTag::Private(u) => (100..=110).contains(&u), SubpacketTag::Unknown(u) => (u > 33 && u < 100) || u > 110, _ => true |