core: Set --key-origin option only if supported by gpg
* src/engine-gpg.c (gpg_import): Do not pass --key-origin option to gpg if gpg is too old. -- GnuPG-bug-id: 5733
This commit is contained in:
parent
fd6bec617d
commit
fd680254da
@ -2831,7 +2831,7 @@ gpg_import (void *engine, gpgme_data_t keydata, gpgme_key_t *keyarray,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
err = add_arg (gpg, "--import");
|
err = add_arg (gpg, "--import");
|
||||||
if (!err && key_origin)
|
if (!err && key_origin && have_gpg_version (gpg, "2.1.22"))
|
||||||
{
|
{
|
||||||
err = add_arg (gpg, "--key-origin");
|
err = add_arg (gpg, "--key-origin");
|
||||||
if (!err)
|
if (!err)
|
||||||
|
Loading…
Reference in New Issue
Block a user