aboutsummaryrefslogtreecommitdiff
path: root/Git/GCrypt.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-07-15 17:33:14 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-07-15 17:33:14 -0400
commit4b4d302bcd168732c0e04d76bb387fd04fce06b5 (patch)
tree8cf3e71a238298773ea0a905dec0e12b8e13570c /Git/GCrypt.hs
parenta5a92f89d200ce109cdcfc72e2a21f4d92eef2cf (diff)
Set gcrypt-publish-participants when setting up a gcrypt repository, to avoid unncessary passphrase prompts.
This is a security/usability tradeoff. To avoid exposing the gpg key ids who can decrypt the repository, users can unset gcrypt-publish-participants. The gcrypt-publish-participants option is available in my fork of git-remote-gcrypt. This commit was sponsored by Christopher Kernahan.
Diffstat (limited to 'Git/GCrypt.hs')
-rw-r--r--Git/GCrypt.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Git/GCrypt.hs b/Git/GCrypt.hs
index fb99cf619..c2a5a98fe 100644
--- a/Git/GCrypt.hs
+++ b/Git/GCrypt.hs
@@ -99,6 +99,9 @@ getParticiantList globalconfigrepo repo remotename = KeyIds $ parse $ firstJust
remoteParticipantConfigKey :: RemoteName -> String
remoteParticipantConfigKey = remoteConfigKey "gcrypt-participants"
+remotePublishParticipantConfigKey :: RemoteName -> String
+remotePublishParticipantConfigKey = remoteConfigKey "gcrypt-publish-participants"
+
remoteSigningKey :: RemoteName -> String
remoteSigningKey = remoteConfigKey "gcrypt-signingkey"