diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-02-07 14:25:00 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-02-07 16:09:19 +0100 |
commit | f73d0296afaf87677143f32c3e4dc0fe60f55e37 (patch) | |
tree | 61e3d6ac03290cdedeedcfa5298026acd4933dc2 | |
parent | c1c759718d4904e7289b11b835da06e02b24f6c2 (diff) |
openpgp: Add reference.
-rw-r--r-- | openpgp/src/packet/signature/subpacket.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openpgp/src/packet/signature/subpacket.rs b/openpgp/src/packet/signature/subpacket.rs index fa95763d..286b02f3 100644 --- a/openpgp/src/packet/signature/subpacket.rs +++ b/openpgp/src/packet/signature/subpacket.rs @@ -408,6 +408,12 @@ impl SubpacketArea { } /// Returns the last subpacket, if any, with the specified tag. + /// + /// This is the recommended strategy of dealing with multiple, + /// possibly conflicting, subpackets. See [Section 5.2.4.1 of RFC + /// 4880]. + /// + /// [Section 5.2.4.1 of RFC 4880]: https://tools.ietf.org/html/rfc4880#section-5.2.4.1 pub fn lookup(&self, tag: SubpacketTag) -> Option<&Subpacket> { self.cache_init(); |