aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/t-http-basic.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-08-29 15:42:19 +0000
committerWerner Koch <[email protected]>2024-08-29 15:42:19 +0000
commitac30449867320bd59e2158722ce47e4b62ae54b0 (patch)
tree2ffed62c343f070728195b2f81c16fc3101b470f /dirmngr/t-http-basic.c
parentdoc: Minor fix for the description of gpg's --default-*-expire (diff)
downloadgnupg-ac30449867320bd59e2158722ce47e4b62ae54b0.tar.gz
gnupg-ac30449867320bd59e2158722ce47e4b62ae54b0.zip
tools: Improve rfc822parse to allow access to headers for longer.
* tools/rfc822parse.c (struct rfc822parse_context): Add field this_part. (release_handle_data): Clear this_part. (rfc822parse_open): Set this_part. (set_current_part_to_parent): Ditto. (insert_header): Ditto. (rfc822parse_enum_header_lines): Replace current_part by this_part. (find_header): Ditto. * tools/rfc822parse.c (my_strcasecmp): Remove. (same_header_name): New. (rfc822_capitalize_header_name): Use new function instead. -- With this change the header function can now be sued after the transition to the body. Thus up until thenext MIME block is reached the headers of the former MIME block are returned. This also fixes a problem with the "MIME-Version" header name capitalization.
Diffstat (limited to 'dirmngr/t-http-basic.c')
0 files changed, 0 insertions, 0 deletions