summaryrefslogtreecommitdiffstats
path: root/tools/mime-maker.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2016-09-29 17:38:06 +0200
committerWerner Koch <wk@gnupg.org>2016-09-29 17:56:37 +0200
commitf776757ea94542e2f425840dddaf3e65b0ff7757 (patch)
tree91fd42217fe4405291ceeae7f8c8db172437d5a6 /tools/mime-maker.h
parenttools: Change mime-maker to write out CR,LF. (diff)
downloadgnupg2-f776757ea94542e2f425840dddaf3e65b0ff7757.tar.xz
gnupg2-f776757ea94542e2f425840dddaf3e65b0ff7757.zip
tools: Allow retrieval of signed data from mime-maker.
* tools/mime-maker.c (find_part): New. (mime_maker_get_part): New. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'tools/mime-maker.h')
-rw-r--r--tools/mime-maker.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/mime-maker.h b/tools/mime-maker.h
index 2fac9c36c..23047c327 100644
--- a/tools/mime-maker.h
+++ b/tools/mime-maker.h
@@ -39,6 +39,8 @@ gpg_error_t mime_maker_end_container (mime_maker_t ctx);
unsigned int mime_maker_get_partid (mime_maker_t ctx);
gpg_error_t mime_maker_make (mime_maker_t ctx, estream_t fp);
+gpg_error_t mime_maker_get_part (mime_maker_t ctx, unsigned int partid,
+ estream_t *r_stream);