summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse/stream.rs
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2020-08-12 15:48:36 +0200
committerNeal H. Walfield <neal@pep.foundation>2020-08-12 15:55:09 +0200
commitd4fe2832c9bf1d49b87a301bd0a46caa45018477 (patch)
tree2dbdf9b430456aec4a7878cc6ab53abe92166876 /openpgp/src/parse/stream.rs
parent2aa8c003a99afef4e8199e92cfa403a5048cdf7c (diff)
openpgp: Change accessors to return all issuers.
- Unlike the `Signature Creation Time` subpacket, there are legitimate reasons to have multiple `Issuer` subpackets and `Issuer Fingerprint` subpackets. - Rename `SubpacketAreas::issuer` to `SubpacketAreas::issuers` and return all `Issuer` subpackets. - Likewise, Rename `SubpacketAreas::issuer_fingerprint` to `SubpacketAreas::issuer_fingerprints` and return all `Issuer Fingerprint` subpackets. - Change `sq` to list all issuers. Deduplicate first, however.
Diffstat (limited to 'openpgp/src/parse/stream.rs')
-rw-r--r--openpgp/src/parse/stream.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/parse/stream.rs b/openpgp/src/parse/stream.rs
index 36f3cf9f..89943f24 100644
--- a/openpgp/src/parse/stream.rs
+++ b/openpgp/src/parse/stream.rs
@@ -3028,7 +3028,7 @@ mod test {
sig, ..
}) = &results[0] {
assert_eq!(
- &sig.issuer_fingerprint().unwrap()
+ &sig.issuer_fingerprints().nth(0).unwrap()
.to_string(),
match i {
0 => "8E8C 33FA 4626 3379 76D9 7978 069C 0C34 8DD8 2C19",