Fix GPGME_CREATE_NOPASSWD without pinentry loopback.
* src/engine-gpg.c(gpg_createkey): Pass --batch to gpg when GPGME_CREATE_NOPASSWD is set. -- Signed-off-by: Ben Kibbey <bjk@luxsci.net>
This commit is contained in:
parent
211844f049
commit
d83b8f0dc8
@ -2136,6 +2136,8 @@ gpg_createkey (engine_gpg_t gpg,
|
|||||||
err = add_arg (gpg, "--passphrase");
|
err = add_arg (gpg, "--passphrase");
|
||||||
if (!err)
|
if (!err)
|
||||||
err = add_arg (gpg, "");
|
err = add_arg (gpg, "");
|
||||||
|
if (!err)
|
||||||
|
err = add_arg (gpg, "--batch");
|
||||||
}
|
}
|
||||||
if (!err && (flags & GPGME_CREATE_FORCE))
|
if (!err && (flags & GPGME_CREATE_FORCE))
|
||||||
err = add_arg (gpg, "--yes");
|
err = add_arg (gpg, "--yes");
|
||||||
|
Loading…
Reference in New Issue
Block a user