tools/gpgtar: Implement signing.
authorJustus Winter <justus@g10code.com>
Mon, 30 Nov 2015 17:39:00 +0000 (18:39 +0100)
committerJustus Winter <justus@g10code.com>
Fri, 4 Dec 2015 11:52:40 +0000 (12:52 +0100)
commit45c814f348c89acd8d21d0607ffcf68e5c5c399e
treed1a22fe0ab0d9c5181d1b5cbae5b383cbeccdf0d
parent0c0dafd8e89bb702e856c661c1561e10cdcaf37f
tools/gpgtar: Implement signing.

* tests/openpgp/gpgtar.test: Test signing.
* tools/gpgtar-create.c (gpgtar_create): Add 'sign' option, add the
appropriate gpg arguments to implement signing and selecting the local
user.
* tools/gpgtar.c (parse_options): We do handle '--local-user' now.
(main): Handle signing, encrypting, and doing both when creating an
archive.
* tools/gpgtar.h (gpgtar_create): Update prototype.

Signed-off-by: Justus Winter <justus@g10code.com>
tests/openpgp/gpgtar.test
tools/gpgtar-create.c
tools/gpgtar.c
tools/gpgtar.h