summaryrefslogtreecommitdiffhomepage
path: root/Types.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-10-06 15:37:12 -0400
committerJoey Hess <joeyh@joeyh.name>2016-10-06 16:10:18 -0400
commitf17abaa8ec3654ab4973641e2f551fe5b7088671 (patch)
tree5e0a692a0c21187b2cdfca5a35fea5575faa5f22 /Types.hs
parenteeda326eb9aa34ff325bc9d2d97f5cb42f3958b5 (diff)
downloadkeysafe-f17abaa8ec3654ab4973641e2f551fe5b7088671.tar.gz
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.
Diffstat (limited to 'Types.hs')
-rw-r--r--Types.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Types.hs b/Types.hs
index 937b58c..2f97c61 100644
--- a/Types.hs
+++ b/Types.hs
@@ -51,7 +51,7 @@ newtype Password = Password B.ByteString
-- | A name associated with a key stored in keysafe.
newtype Name = Name B.ByteString
- deriving (Show, Monoid)
+ deriving (Eq, Show, Monoid)
-- | Source of the secret key stored in keysafe.
data SecretKeySource = GpgKey KeyId | KeyFile FilePath