core: Check for gpg version for loopback mode
authorAndre Heinecke <aheinecke@intevation.de>
Tue, 6 Sep 2016 14:30:24 +0000 (16:30 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Tue, 6 Sep 2016 14:30:24 +0000 (16:30 +0200)
commite8cb143c8337b122a6790f769ddb0a97c4baccd3
tree6373d81f3ad6278d1928dbfd252a1bf861d9b5cb
parentefe7e11dfa2ff911b477ce748292e53e7a50347e
core: Check for gpg version for loopback mode

* src/engine-gpg.c (build_argv): Check for version 2.1.0
before adding pinentry-mode.

--
This is a compatibility fix for older versions that don't support
this flag which would otherwise result in an invalid argument
error.
src/engine-gpg.c