g13: Move 'call-gpg.c' to common.
authorJustus Winter <justus@g10code.com>
Tue, 24 Nov 2015 12:40:56 +0000 (13:40 +0100)
committerJustus Winter <justus@g10code.com>
Wed, 25 Nov 2015 11:19:50 +0000 (12:19 +0100)
commitba1a5cc17d43d9cba32447876f06a8ab8f97e5ae
treec81fe95c5780376ed1a5ce59eb659915f408eee1
parente9c16fee2576c772de9d4fb5d53fee28e4b84202
g13: Move 'call-gpg.c' to common.

* common/Makefile.am (common_sources): Add files.
* g13/call-gpg.c: Move to 'common' and adapt slightly.  Add a
parameter to let callees override the gpg program to execute.
* g13/call-gpg.h: Likewise.
* g13/Makefile.am (g13_SOURCES): Drop files.
* g13/create.c (encrypt_keyblob): Hand in the gpg program to execute.
* g13/mount.c (decrypt_keyblob): Likewise.

Signed-off-by: Justus Winter <justus@g10code.com>
common/Makefile.am
common/call-gpg.c [moved from g13/call-gpg.c with 93% similarity]
common/call-gpg.h [moved from g13/call-gpg.h with 82% similarity]
g13/Makefile.am
g13/create.c
g13/mount.c