Skip to content

Commit

Permalink
zcrypt: Make gpg stop messing around in ~/.gnupg
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information
andersk committed Dec 11, 2012
1 parent 6401db3 commit 048b1ff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions zcrypt.c
Expand Up @@ -765,6 +765,10 @@ int do_encrypt_aes(const char *keyfile, const char *in, int length, FILE *outfil
const char *argv[] = {
"gpg",
"--symmetric",
"--no-options",
"--no-default-keyring",
"--keyring", "/dev/null",
"--secret-keyring", "/dev/null",
"--batch",
"--quiet",
"--no-use-agent",
Expand Down Expand Up @@ -845,6 +849,10 @@ int do_decrypt_aes(const char *keyfile) {
const char *argv[] = {
"gpg",
"--decrypt",
"--no-options",
"--no-default-keyring",
"--keyring", "/dev/null",
"--secret-keyring", "/dev/null",
"--batch",
"--no-use-agent",
"--quiet",
Expand Down

0 comments on commit 048b1ff

Please sign in to comment.