Fix gpg_addkey() to work with GPGME_CREATE_NOPASSWD as well.
authorBen Kibbey <bjk@luxsci.net>
Sat, 31 Dec 2016 23:09:49 +0000 (18:09 -0500)
committerBen Kibbey <bjk@luxsci.net>
Sat, 31 Dec 2016 23:09:49 +0000 (18:09 -0500)
commita4b9f1a2b404fd8627d5ac567617510abd55d980
tree2a4b7cea2f073547d68bdef8d16121f2df704031
parentd83b8f0dc84d6cf7fe2e091bd1b103ceedfa3d6c
Fix gpg_addkey() to work with GPGME_CREATE_NOPASSWD as well.

* src/engine-gpg.c (gpg_addkey): Pass --batch to gpg when
GPGME_CREATE_NOPASSWD is set to fix pinentry without loopback mode.

--
Signed-off-by: Ben Kibbey <bjk@luxsci.net>
src/engine-gpg.c