tools: Simplify the mime-maker container creation.
authorWerner Koch <wk@gnupg.org>
Thu, 29 Sep 2016 08:20:38 +0000 (10:20 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 29 Sep 2016 15:56:37 +0000 (17:56 +0200)
commit95d60c6ce9e8a7a7741553af957978c1f91547c5
treebdcdfe5d0d41081bf53ec022f6a455b407a4c9ce
parent4ac138c84d0f344ca9442f90c96f0e1f76062a4a
tools: Simplify the mime-maker container creation.

* tools/mime-maker.c (struct part_s): Remove field MEDIATYPE.
(release_parts): Ditto.
(dump_parts): Print a body line only if tehre is a body.
(mime_maker_add_header): Check for body or container.
(mime_maker_add_container): Remove arg MEDIATYPE.  Change all callers.
(mime_maker_end_container): New.

Signed-off-by: Werner Koch <wk@gnupg.org>
tools/gpg-wks-client.c
tools/gpg-wks-server.c
tools/mime-maker.c
tools/mime-maker.h