summaryrefslogtreecommitdiffstats
path: root/g10/test-stubs.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2015-10-08 15:04:45 +0200
committerWerner Koch <wk@gnupg.org>2015-10-08 15:40:53 +0200
commitd7b8e76f9930750d669405dee3108c9bc8e87b91 (patch)
tree33752ea1c1a0ced1c8582f624611138afa16b8b9 /g10/test-stubs.c
parentFix two unused/possible-uninitialized var warnings. (diff)
downloadgnupg2-d7b8e76f9930750d669405dee3108c9bc8e87b91.tar.xz
gnupg2-d7b8e76f9930750d669405dee3108c9bc8e87b91.zip
gpg: Add option --print-dane-records.
* g10/options.h (opt): Add field "print_dane_records". * g10/gpg.c (oPrintDANERecords): new. (opts): Add --print-dane-records. (main): Set that option. * g10/export.c (do_export): Remove EXPORT_DANE_FORMAT handling. (do_export_stream): Add EXPORT_DANE_FORMAT handling. * g10/keylist.c (list_keyblock_pka): Implement DANE record printing. * g10/gpgv.c (export_pubkey_buffer): New stub. * g10/test-stubs.c (export_pubkey_buffer): New stub. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/test-stubs.c')
-rw-r--r--g10/test-stubs.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/g10/test-stubs.c b/g10/test-stubs.c
index c6f6d68e9..f3155fd1f 100644
--- a/g10/test-stubs.c
+++ b/g10/test-stubs.c
@@ -411,3 +411,17 @@ gpg_dirmngr_get_pka (ctrl_t ctrl, const char *userid,
*r_url = NULL;
return gpg_error (GPG_ERR_NOT_FOUND);
}
+
+gpg_error_t
+export_pubkey_buffer (ctrl_t ctrl, const char *keyspec, unsigned int options,
+ kbnode_t *r_keyblock, void **r_data, size_t *r_datalen)
+{
+ (void)ctrl;
+ (void)keyspec;
+ (void)options;
+
+ *r_keyblock = NULL;
+ *r_data = NULL;
+ *r_datalen = 0;
+ return gpg_error (GPG_ERR_NOT_IMPLEMENTED);
+}