summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2019-09-03 10:47:36 +0200
committerNeal H. Walfield <neal@pep.foundation>2019-09-03 10:47:36 +0200
commit7461b8beb9833e2a3d1bce5e2506890e0eeb35ef (patch)
treeb97c9c01676223b9c1e73eb60e13b5aa331e45de
parenta701ae219a79a58086e314f373f77d5267e21815 (diff)
openpgp: Also sort and dedup unknown components
-rw-r--r--openpgp/src/tpk/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/openpgp/src/tpk/mod.rs b/openpgp/src/tpk/mod.rs
index 93be265e..12639f95 100644
--- a/openpgp/src/tpk/mod.rs
+++ b/openpgp/src/tpk/mod.rs
@@ -1494,6 +1494,7 @@ impl TPK {
b.set_secret(a.set_secret(None));
}
});
+ self.unknowns.sort_and_dedup(Unknown::cmp, |_, _| {});
// In case we have subkeys bound to the primary, it must be
// certification capable.