From cbe467e794f3be81b8da2bcb1732b5514b13b71d Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 7 Jul 2016 17:02:58 +0200 Subject: gpg: Add export options "export-pka" and "export-dane". * g10/options.h (EXPORT_PKA_FORMAT): New. * g10/keylist.c (list_keyblock_pka): Do not use DANE flag. * g10/export.c: Include zb32.h. (parse_export_options): Add options "export-pka" and "export-dane". (do_export): Do not armor if either of these option is set. (print_pka_or_dane_records): New. (do_export_stream): Implement new options. Signed-off-by: Werner Koch --- g10/keylist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g10/keylist.c') diff --git a/g10/keylist.c b/g10/keylist.c index e595fe3b2..b8f97f545 100644 --- a/g10/keylist.c +++ b/g10/keylist.c @@ -921,7 +921,7 @@ list_keyblock_pka (ctrl_t ctrl, kbnode_t keyblock) /* We do not have an export function which allows to pass a keyblock, thus we need to search the key again. */ err = export_pubkey_buffer (ctrl, hexfpr, - EXPORT_DANE_FORMAT, NULL, + (EXPORT_MINIMAL | EXPORT_CLEAN), NULL, &dummy_keyblock, &data, &datalen); release_kbnode (dummy_keyblock); if (!err) -- cgit v1.2.3