diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-10-16 19:02:56 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-10-18 08:16:34 +0200 |
commit | 3b1856444ef7c618f78f987868ee336207dca62d (patch) | |
tree | 30c2fdca9de7ca69401e6560502fc4e47ac7dc7f /openpgp/src | |
parent | 6f788e8f5966ab2ba507e08e83fbae0ad1b7e2a3 (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.rs | 16 |
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)?; } } |