aboutsummaryrefslogtreecommitdiffstats
path: root/tools/mime-maker.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-09-29 10:29:27 +0000
committerWerner Koch <[email protected]>2016-09-29 15:56:37 +0000
commit29db3be6e8dbc9b4dd52cd1781106fa9fa3954a5 (patch)
treef2de522f904a19322fbb62fa1a648cd70b5f0048 /tools/mime-maker.h
parenttools: Simplify the mime-maker container creation. (diff)
downloadgnupg-29db3be6e8dbc9b4dd52cd1781106fa9fa3954a5.tar.gz
gnupg-29db3be6e8dbc9b4dd52cd1781106fa9fa3954a5.zip
tools: Change mime-maker to write out CR,LF.
* tools/mime-maker.c (struct part_s): Add field PARTID. (struct mime_maker_context_s): Add field PARTID_COUNTER. (dump_parts): Print part ids. (mime_maker_add_header): Assign PARTID. (mime_maker_add_container): Ditto. (mime_maker_get_partid): New. (write_ct_with_boundary): Remove. (add_header): Strip trailing white spaces. (write_header): Remove trailing spaces trimming. Add arg BOUNDARY. Handle emdedded LFs. (write_gap, write_boundary, write_body): New. (write_tree): Use new functions. -- These changes prepare for forthcoming enhancements. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'tools/mime-maker.h')
-rw-r--r--tools/mime-maker.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/mime-maker.h b/tools/mime-maker.h
index 39752db90..2fac9c36c 100644
--- a/tools/mime-maker.h
+++ b/tools/mime-maker.h
@@ -36,6 +36,7 @@ gpg_error_t mime_maker_add_body (mime_maker_t ctx, const char *string);
gpg_error_t mime_maker_add_stream (mime_maker_t ctx, estream_t *stream_addr);
gpg_error_t mime_maker_add_container (mime_maker_t ctx);
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);