diff options
author | Patrick Monnerat <patrick@monnerat.net> | 2019-02-11 19:10:41 +0100 |
---|---|---|
committer | Patrick Monnerat <patrick@monnerat.net> | 2019-02-11 19:10:41 +0100 |
commit | cac0e4a6ad14b42471ebc62e82ecdb7dad164702 (patch) | |
tree | 46e38a8e2da72fd2b621982f882dd6b1969a6161 /src/tool_setopt.h | |
parent | b75fb9b5a6ee02beb9e2c6ed43556603f4ef64cf (diff) | |
download | curl-cac0e4a6ad14b42471ebc62e82ecdb7dad164702.tar.gz |
cli tool: do not use mime.h private structures.
Option -F generates an intermediate representation of the mime structure
that is used later to create the libcurl mime structure and generate
the --libcurl statements.
Reported-by: Daniel Stenberg
Fixes #3532
Closes #3546
Diffstat (limited to 'src/tool_setopt.h')
-rw-r--r-- | src/tool_setopt.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tool_setopt.h b/src/tool_setopt.h index f8a52cd75..4a03a06fc 100644 --- a/src/tool_setopt.h +++ b/src/tool_setopt.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -23,6 +23,8 @@ ***************************************************************************/ #include "tool_setup.h" +#include "tool_formparse.h" + /* * Macros used in operate() */ @@ -87,7 +89,7 @@ CURLcode tool_setopt_bitmask(CURL *curl, struct GlobalConfig *config, const NameValueUnsigned *nv, long lval); CURLcode tool_setopt_mimepost(CURL *curl, struct GlobalConfig *config, const char *name, CURLoption tag, - curl_mime *mimepost); + tool_mime *mimepost); CURLcode tool_setopt_slist(CURL *curl, struct GlobalConfig *config, const char *name, CURLoption tag, struct curl_slist *list); |