g10: Always save standard revocation certificate in file.
authorMarcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
Tue, 1 Aug 2017 15:41:03 +0000 (17:41 +0200)
committerMarcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
Tue, 1 Aug 2017 15:41:03 +0000 (17:41 +0200)
commitebc65ff459e6c228fb7406e375819a9fe5637abe
treeb5db1cf2eae3cbc5b9be17ac37696aa97be2aa7d
parenta8d0b8d2333ddab703d1e346e06c106eeeedfd53
g10: Always save standard revocation certificate in file.

* g10/main.h (open_outfile): New parameter NO_OUTFILE.
* g10/openfile.c (open_outfile): New parameter NO_OUTFILE.  If given,
never use opt.outfile.
* g10/revoke.c (create_revocation): If FILENAME is true, also set
NO_OUTFILE to true (for standard revocation certificates).
* g10/dearmor.c, g10/encrypt.c, g10/export.c, g10/revoke.c,
g10/sign.c: Adjust all other callers.

Signed-off-by: Marcus Brinkmann <mb@g10code.com>
GnuPG-bug-id: 3015
g10/dearmor.c
g10/encrypt.c
g10/export.c
g10/main.h
g10/openfile.c
g10/revoke.c
g10/sign.c