Compare commits
1 Commits
master
...
dkg/fix-T3
Author | SHA1 | Date | |
---|---|---|---|
|
fa0a5ffd49 |
@ -1695,12 +1695,15 @@ gpg_decrypt (void *engine,
|
|||||||
strlen (override_session_key), 1);
|
strlen (override_session_key), 1);
|
||||||
if (!err)
|
if (!err)
|
||||||
{
|
{
|
||||||
/* We add --no-keyring because a keyring is not required
|
/* When we are not trying to verify signatures as well,
|
||||||
* when we are overriding the session key. It would
|
* we add --no-keyring because a keyring is not required
|
||||||
|
* for decryption when overriding the session key. It would
|
||||||
* work without that option but --no-keyring avoids that
|
* work without that option but --no-keyring avoids that
|
||||||
* gpg return a failure due to a missing key log_error()
|
* gpg return a failure due to a missing key log_error()
|
||||||
* diagnostic. --no-keyring is supported since 2.1.14. */
|
* diagnostic. --no-keyring is supported since 2.1.14. */
|
||||||
err = add_arg (gpg, "--no-keyring");
|
|
||||||
|
if (!(flags & GPGME_DECRYPT_VERIFY))
|
||||||
|
err = add_arg (gpg, "--no-keyring");
|
||||||
if (!err)
|
if (!err)
|
||||||
err = add_arg (gpg, "--override-session-key-fd");
|
err = add_arg (gpg, "--override-session-key-fd");
|
||||||
if (!err)
|
if (!err)
|
||||||
|
Loading…
Reference in New Issue
Block a user