summaryrefslogtreecommitdiffstats
path: root/openpgp/src
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2020-10-16 19:02:56 +0200
committerNeal H. Walfield <neal@pep.foundation>2020-10-18 08:16:34 +0200
commit3b1856444ef7c618f78f987868ee336207dca62d (patch)
tree30c2fdca9de7ca69401e6560502fc4e47ac7dc7f /openpgp/src
parent6f788e8f5966ab2ba507e08e83fbae0ad1b7e2a3 (diff)
openpgp: Harmonize the order that packets are serialized.
- When serializing a `Cert`, we should emit the signatures in their order of importance: - self revocations - self signatures - certifications - other certifications - Change TSK::serialize_common to be consistent with this.
Diffstat (limited to 'openpgp/src')
-rw-r--r--openpgp/src/serialize/cert.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/openpgp/src/serialize/cert.rs b/openpgp/src/serialize/cert.rs
index 10831123..1055e00c 100644
--- a/openpgp/src/serialize/cert.rs
+++ b/openpgp/src/serialize/cert.rs
@@ -558,10 +558,10 @@ impl<'a> TSK<'a> {
for s in u.self_signatures() {
serialize_sig(o, s)?;
}
- for s in u.other_revocations() {
+ for s in u.certifications() {
serialize_sig(o, s)?;
}
- for s in u.certifications() {
+ for s in u.other_revocations() {
serialize_sig(o, s)?;
}
}
@@ -581,10 +581,10 @@ impl<'a> TSK<'a> {
for s in u.self_signatures() {
serialize_sig(o, s)?;
}
- for s in u.other_revocations() {
+ for s in u.certifications() {
serialize_sig(o, s)?;
}
- for s in u.certifications() {
+ for s in u.other_revocations() {
serialize_sig(o, s)?;
}
}
@@ -605,10 +605,10 @@ impl<'a> TSK<'a> {
for s in k.self_signatures() {
serialize_sig(o, s)?;
}
- for s in k.other_revocations() {
+ for s in k.certifications() {
serialize_sig(o, s)?;
}
- for s in k.certifications() {
+ for s in k.other_revocations() {
serialize_sig(o, s)?;
}
}
@@ -629,10 +629,10 @@ impl<'a> TSK<'a> {
for s in u.self_signatures() {
serialize_sig(o, s)?;
}
- for s in u.other_revocations() {
+ for s in u.certifications() {
serialize_sig(o, s)?;
}
- for s in u.certifications() {
+ for s in u.other_revocations() {
serialize_sig(o, s)?;
}
}