* include/wget/wget.h: Convert wget_http_connection_t to forward declaration
* libwget/http.h: Move wget_http_connection_t definition here
* libwget/Makefile.am: Add new file http.h
* libwget/http.c: Include http.h and add accessor functions
* libwget/http_highlevel.c: Include http.h
* src/wget.c: Replace access to wget_http_connection_t with accessor function calls
* include/wget/wget.h: Rename and remove gnulib deps.
* libwget/strlcpy.c: Rename function and fall back to strlcpy.
* */*.c: Rename strlcpy to wget_strlcpy.
* libwget/utils.c: Rename wget_strnglob to wget_strglob. It now calls
glob on the entire string.
* include/wget/wget.h: Change protoype of wget_strnglob
* src/options.c: Change calls to wget_strnglob to use new wget_strglob
calls
* include/wget/wget.h: New functions wget_decompress_set_error_handler()
and wget_decompress_get_context().
* libwget/decompressor.c: New functions wget_decompress_set_error_handler()
and wget_decompress_get_context().
* libwget/http.c: Implement and set decompressor error handler.
* include/wget/wget.h: Add flag 'proxied' to wget_http_connection_t,
add arg 'proxied' to wget_http_request_to_buffer(),
add new function declaration wget_http_set_no_proxy(),
add new function declaration wget_http_match_no_proxy().
* libwget/http.c: Add variable 'no_proxies',
(wget_http_open): Check host against 'no_proxy' and set 'conn->proxied'
when appropriate,
(wget_http_send_request): Call wget_http_request_to_buffer() with
conn->proxied,
(wget_http_request_to_buffer): Check 'proxied',
(_parse_proxies): Cleanup,
(_parse_no_proxies): New function,
(wget_http_set_no_proxy): New function,
(wget_http_match_no_proxy): New function
* libwget/init.c (wget_global_deinit): Free no_proxy memory
* libwget/ip.c: Add code in comments (for later use)
* libwget/utils.c (wget_match_tail, wget_match_tail_nocase): Cleanup
* src/options.c (init): Handle 'no_proxy' env variable
* src/wget_options.h (struct config): Add no_proxy member
* include/wget/wget.h: Add link_inline to WGET_HTML_PARSED_URL
* libwget/html_url.c: Add link_inline to _html_context_t,
(_html_get_url): Set ctx->link_inline
* src/wget.c (html_parse): Exclude action and formaction URLs,
exclude certain 'link' URLs from download
* src/options.c (_shell_expand): New function to perform tilde
expansion on a given string
(parse_filename): Parse the input string and perform shell expansion on
it using _shell_expand
(parse_string): Set the parser functions for various options that may be
set from a config file to use parse_filename
(wget_strnglob): Run glob() on only the specified part of the string
* src/wget.c (main): call wget_hpkp_db_save() at the end (params
inverted).
* include/wget/wget.h: export wget_hpkp_db_save().
* libwget/hpkp.c (__hashtable_browse_cb): fix fprintf format string.
(wget_hpkp_db_save): check filename is not an empty string.
(wget_hpkp_db_load): likewise.
* libwget/Makefile.am: new file hpkp.c.
* src/options.c (print_help, struct options): new command line option '--hpkp'.
(init): initialize HPKP database with wget_hpkp_db_init().
* src/wget_options.h (struct config): new handle 'hpkp' to the HPKP
database.
* bootstrap.conf: Ad gnulib module ftruncate
* include/wget/wget.h: Add wget_truncate
* libwget/io.c: Add wget_truncate
* src/job.c: Call wget_truncate instead of truncate
The truncate() function is not covered by gnulib.
wget_truncate() is a wrapper around ftruncate(), which is covered
by gnulib.
* include/wget/wget.h: Make library symbol export attribute
((__visibility__)) preceed the function prototype to work on Windows
with MSVC
* tests/libtest.h: Same
Reported-by: Gisle Vanem