Home GnuPG
Diffusion GnuPG 29db3be6e8db

tools: Change mime-maker to write out CR,LF.
29db3be6e8dbUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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 <wk@gnupg.org>

Details

Provenance
wernerAuthored on Sep 29 2016, 12:29 PM
Parents
rG95d60c6ce9e8: tools: Simplify the mime-maker container creation.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG29db3be6e8db: tools: Change mime-maker to write out CR,LF. (authored by Werner Koch <wk@gnupg.org>).Sep 29 2016, 5:56 PM