Pedro Monreal Gonzalez
87317a4d5e
- Fix regression in latest gpg2 that makes gpgme fail to build [bsc#1174007] - Add gnupg-gpgme-t-encrypt-sym.patch OBS-URL: https://build.opensuse.org/request/show/820859 OBS-URL: https://build.opensuse.org/package/show/Base:System/gpg2?expand=0&rev=251
22 lines
1.0 KiB
Diff
22 lines
1.0 KiB
Diff
Index: gnupg-2.2.21/agent/command.c
|
|
===================================================================
|
|
--- gnupg-2.2.21.orig/agent/command.c
|
|
+++ gnupg-2.2.21/agent/command.c
|
|
@@ -1595,11 +1595,14 @@ cmd_get_passphrase (assuan_context_t ctx
|
|
pi2->failed_tries = 0;
|
|
continue;
|
|
}
|
|
- if (*pi->pin && !pi->repeat_okay)
|
|
+ if (*pi->pin && !pi->repeat_okay
|
|
+ && ctrl->pinentry_mode != PINENTRY_MODE_LOOPBACK)
|
|
{
|
|
/* The passphrase is empty and the pinentry did not
|
|
* already run the repetition check, do it here. This
|
|
- * is only called when using an old and simple pinentry. */
|
|
+ * is only called when using an old and simple pinentry.
|
|
+ * It is neither called in loopback mode because the
|
|
+ * caller does any passphrase repetition by herself. */
|
|
xfree (response);
|
|
response = NULL;
|
|
rc = agent_get_passphrase (ctrl, &response,
|