From f17abaa8ec3654ab4973641e2f551fe5b7088671 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 6 Oct 2016 15:37:12 -0400 Subject: Gpg keyid bugs Fix bugs with entry of gpg keyid in the keysafe.log. Gpg.anyKey was being used in writing the log, which made the log contain gpg keys with an empty keyid. Fix bug in --autostart that caused the full gpg keyid to be used in the name, so restores would only work when --gpgkeyid was specifid. Added a Distinguisher data type rather than the Gpg.anyKey hack. This commit was sponsored by Thom May on Patreon. --- Storage.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Storage.hs') diff --git a/Storage.hs b/Storage.hs index 428dc6f..5ad1408 100644 --- a/Storage.hs +++ b/Storage.hs @@ -176,7 +176,7 @@ storeChaff hn port delayseconds = forever $ do -- the randomname is not something that can be feasibly guessed. -- Prefix "random chaff" to the name to avoid ever using a name -- that a real user might want to use. - let sis = shareIdents testModeTunables (Name $ "random chaff:" <> randomname) (KeyFile "random") + let sis = shareIdents testModeTunables (Name $ "random chaff:" <> randomname) AnyGpgKey mapConcurrently (go sis rng') [1..totalObjects (shareParams testModeTunables)] where -- cgit v1.2.3