summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2019-08-04 01:24:09 +0200
committerNeal H. Walfield <neal@pep.foundation>2019-08-23 19:15:13 +0200
commit102dea398e920e91b34e5602033c2e7e53c50bb1 (patch)
treef0238a659236ade71f72c1799876331c49e266a3 /openpgp/src/parse
parent75fb008711f0f80028230018ab37b988175211b4 (diff)
openpgp: Use a KeyBinding to store the primary key binding in a TPK
Diffstat (limited to 'openpgp/src/parse')
-rw-r--r--openpgp/src/parse/stream.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/parse/stream.rs b/openpgp/src/parse/stream.rs
index b4cc89ff..c2225f0d 100644
--- a/openpgp/src/parse/stream.rs
+++ b/openpgp/src/parse/stream.rs
@@ -510,7 +510,7 @@ impl<'a, H: VerificationHelper> Verifier<'a, H> {
}
};
- if can_sign(tpk.primary(),
+ if can_sign(tpk.primary().key(),
tpk.primary_key_signature()) {
v.keys.insert(tpk.keyid(), (i, 0));
}
@@ -1295,7 +1295,7 @@ impl<'a, H: VerificationHelper + DecryptionHelper> Decryptor<'a, H> {
}
};
- if can_sign(tpk.primary(),
+ if can_sign(tpk.primary().key(),
tpk.primary_key_signature()) {
v.keys.insert(tpk.keyid(), (i, 0));
}