diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-10-13 14:45:16 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-10-13 15:13:34 +0200 |
commit | 20aecf5af2ca0b88a1f58a51165c702fe3d5ae24 (patch) | |
tree | 97de66ec72b4ac4c516924953b045c773134ad55 | |
parent | d53cdb17493e3daaa234936b9f8f8c76fcdfc416 (diff) |
openpgp: Sort the unhashed subpacket area in Signature::normalize.
-rw-r--r-- | openpgp/src/packet/signature.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openpgp/src/packet/signature.rs b/openpgp/src/packet/signature.rs index 3c217a85..16ded021 100644 --- a/openpgp/src/packet/signature.rs +++ b/openpgp/src/packet/signature.rs @@ -2045,6 +2045,9 @@ impl crate::packet::Signature { // cake, hence it is only a best-effort mechanism that // silently fails. let _ = sig.add_missing_issuers(); + + // Normalize the order of subpackets. + sig.unhashed_area_mut().sort(); } sig } |