summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-02-07 14:25:00 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-02-07 16:09:19 +0100
commitf73d0296afaf87677143f32c3e4dc0fe60f55e37 (patch)
tree61e3d6ac03290cdedeedcfa5298026acd4933dc2
parentc1c759718d4904e7289b11b835da06e02b24f6c2 (diff)
openpgp: Add reference.
-rw-r--r--openpgp/src/packet/signature/subpacket.rs6
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();