Fix GPGME_CREATE_NOPASSWD without pinentry loopback.
authorBen Kibbey <bjk@luxsci.net>
Tue, 27 Dec 2016 00:57:22 +0000 (19:57 -0500)
committerBen Kibbey <bjk@luxsci.net>
Tue, 27 Dec 2016 00:57:22 +0000 (19:57 -0500)
* src/engine-gpg.c(gpg_createkey): Pass --batch to gpg when
GPGME_CREATE_NOPASSWD is set.

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

index 3ddaa07..1b0e4c9 100644 (file)
@@ -2136,6 +2136,8 @@ gpg_createkey (engine_gpg_t gpg,
       err = add_arg (gpg, "--passphrase");
       if (!err)
         err = add_arg (gpg, "");
+      if (!err)
+        err = add_arg (gpg, "--batch");
     }
   if (!err && (flags & GPGME_CREATE_FORCE))
     err = add_arg (gpg, "--yes");