Commit Graph

288 Commits

Author SHA1 Message Date
39dfeec1ae Fixed problems pointed out in MR. Added tests and doxygen documentation.
* bootstrap.conf: Add canonicalize module.
* cfg.mk: Added exclusions to no new line at EOF for binary files used in tests.
* configure.ac: Check for libgpgme
* docs/wget2_manual.md: Added manual entries for --verify-sig, --gnupg-homedir, and new exit codes.
* fuzz/Makefile.am: Amend linker options
* include/wget/wget.h: Add error codes for GPG signature verification.
* po/POTFILES.in: Add new files.
* src/Makefile.am: Add src/gpgme.c and src/wget_gpgme.h
* src/gpgme.c: Using new error codes, and better signature verification failure detection.
* src/job.c (job_free): Free sig_filename
* src/options.c: Add new options --gnupg-homedir and --verify-sig
* src/wget.c: Verify the signature if possible, exit with the proper status code,
  print error messages
* src/wget_gpgme.h: Add documentation.
* src/wget_job.h: Extend struct JOB
* src/wget_options.h: Add new status codes, add new members to struct config
* tests/Makefile.am: Added new tests.
* tests/gpg-test-util.h: Common GPG testing functionality (tries to verify a signature, expects exit code ... etc).
* tests/gpg/helloworld.txt: Text that has been signed in the .sig files.
* tests/gpg/helloworld.txt.{invalid,no-pub,missing,trusted}.sig: Signatures on helloworld.txt with properties described by their names.
* tests/gpg/openpgp-revocs.d/*: Revocation certs for the fake "homedir"
* tests/gpg/private-keys-v1.d/*: The not-so-private private keys used to sign the test file.
* tests/gpg/pubring.kbx: Fake gnupg homedir public key ring.
* tests/gpg/test-gpg-*.c: Tests.
* tests/valgrind-supressions: Supress failures due to oddness with GPGME.
* unit-tests/Makefile.am: Add src/gpgme.o to BASE_OBJS
2018-01-01 13:28:43 +01:00
666ed4d5e8 Remove unused function wget_vector_deinit()
* include/wget/wget.h: Likewise
* libwget/vector.c: Likewise
2017-12-31 18:58:16 +01:00
95573eb48f Improve progress speed display
* include/wget/wget.h: Use enum for WGET_REPORT_SPEED_*
* libwget/bar.c: Add ringbuffer for smoother speed calculations
* src/wget.c (main): Replace call to print_progress_report() by
  call to bar_printf()
2017-12-25 12:57:52 +01:00
b82f692949 Thread abstraction via gnulib thread wrapper (glthread)
* bootstrap.conf: Add modules cond, lock and thread,
  remove module pthread
* include/wget/wget.h: Remove pthread code,
  add new wget_thread_* functions,
  amend params of wget_thread_* functions,
  add init and exit functions for mutex initialization
* */*.[ch]: Amend threading to new API

This change let libwget work with different kinds of
threading libraries incl. pthreads and windows threads.
2017-12-17 14:20:01 +01:00
bc0aaaee3c Fix some more URLs from http:// to https://
* .travis.sh: Likewise
* .travis_setup.sh: Likewise
* COPYING: Likewise
* COPYING.LESSER: Likewise
* bootstrap: Likewise
* include/wget/wget.h: Likewise
* include/wget/wgetver.h.in: Likewise
* libwget/atom_url.c: Likewise
* libwget/iri.c: Likewise
2017-12-12 11:06:25 +01:00
c198801ae8 Implement speed reporting in the progress bar and the --report-speed switch
* docs/wget2_manual.md: Add documentation for the --report-speed switch
* include/wget/wget.h: Define the report speed types, add reference to wget_bar_set_speed_type()
* libwget/bar.c: Modify the wget2 progress bar to print speed information
* src/bar.c: Add code to set the type of speed reporting
* src/options.c: Add the --report-speed switch and a function to parse the legal types
* src/wget_options.h: Add 'report_speed' in the config structure
* src/wget.c: Print speed reports at the end of a download thread
2017-12-06 16:20:10 +01:00
fdfcff8c3d * include/wget/wget.h: More documentation added 2017-11-10 20:19:43 +01:00
b45709d3d2 Response Time Site Statistic
* include/wget/wget.h: first_data_back field added to represent the time of first bytes received back.
* libwget/http.c: Assigning first_data_back at the appropriate time.
* stc/wget_host.h: Added response_time field to DOC, holds response time for document.
* src/stats.c: Logic to calculate response_time for DOCs, and stat printing.
2017-11-07 13:31:40 -05:00
07784415dc Transfer time site statistic
* include/wget/wget.h: Added request_start, and response_end to wget_http_request_t, and wget_http_response_t respectively.
* libwget/http.c: New fields initialized/set with their corresponding values at the right time.
* stc/wget_host.h: Added timestamps to DOC for request timeframes.
* src/stats.c: Logic to calculate request_start and response_end for DOCs. Stats writing.
2017-11-07 13:18:28 -05:00
c420a12562 * include/wget/wget.h: Add some struct member documentation 2017-11-02 17:02:47 +01:00
01a08e2f3f Add support for RFC 7616 HTTP Digest Access Authentication
* docs/Makefile.am: Remove libwget-md5.3
* include/wget/wget.h: Remove wget_md5_printf_hex(),
  add wget_hash_printf_hex()
* libwget/Makefile.am: Rename md5.c to hash_printf.c
* libwget/hash_printf.c: New file with wget_hash_printf_hex()
* libwget/http.c (wget_http_add_credentials): Remove hardcoded MD5 algo
* tests/test-metalink.c: Use wget_hash_printf_hex()

RFC 7616 adds/replaces the MD5 digest algorithm with SHA-256.
2017-10-29 18:32:29 +01:00
031906108d Added regex filters (--accept-regex, --reject-regex, --regex-type)
* configure.ac: Added detection of libpcre and libpcre2
* include/wget/wget.h: Added regex_type defines
* src/options.c: Added the new options
* src/wget.c: Added regex code
* src/wget_options.h: Added the new options
* tests/test--accept.c: Added tests for the new options

This commit hasn't been copyright-assigned to the FSF.
2017-10-29 11:44:03 +01:00
f44de7d125 Rename WGET_HTML_PARSED_RESULT to wget_html_parsed_result_t
* examples/check_url_types.c: Likewise
* examples/print_html_urls.c: Likewise
* fuzz/libwget_html_url_fuzzer.c: Likewise
* include/wget/wget.h: Likewise
* libwget/html_url.c: Likewise
* src/wget.c: Likewise
2017-10-22 21:05:15 +02:00
8fb49619b7 Rename WGET_HTML_PARSED_URL to wget_html_parsed_url_t
* examples/check_url_types.c: Likewise
* examples/print_html_urls.c: Likewise
* include/wget/wget.h: Likewise
* libwget/html_url.c: Likewise
* src/wget.c: Likewise
2017-10-22 21:03:31 +02:00
bbf7429040 Rename WGET_PARSED_URL to wget_css_parsed_url_t
* examples/print_css_urls3.c: Likewise
* include/wget/wget.h: Likewise
* libwget/css_url.c: Likewise
2017-10-22 21:02:14 +02:00
fed4ae32c8 Rename ROBOTS to wget_robots_t
* fuzz/libwget_robots_parse_fuzzer.c: Rename ROBOTS to wget_robots_t
* include/wget/wget.h: Likewise
* libwget/robots.c: Likewise
* src/wget_host.h: Likewise
* unit-tests/test.c: Likewise
2017-10-22 20:54:42 +02:00
787c775e00 Replace ROBOTS_PATH by wget_string_t
* include/wget/wget.h: Remove struct ROBOTS_PATH
* libwget/robots.c: Replace ROBOTS_PATH by wget_string_t
* src/host.c: Likewise
* src/wget.c: Likewise
* unit-tests/test.c: Likewise
2017-10-22 20:50:04 +02:00
f64a41ac14 Add wget_strscpy()
* include/wget/wget.h: Add wget_strscpy()
* libwget/strscpy.c: New file
* libwget/Makefile.am: Add strscpy.c
* libwget/html_url.c: Use wget_strscpy() instead of wget_strlcpy()
* libwget/http.c: Likewise
* libwget/iri.c: Likewise
* libwget/metalink.c: Likewise
* libwget/ssl_gnutls.c: Likewise
* libwget/test_linking.c: Likewise
* src/job.c: Likewise
* src/plugin.c: Likewise
* src/wget.c: Likewise
2017-10-13 10:57:55 +02:00
29e241cad7 Fix usage of wget_global_init() and wget_http_get()
* examples/*.c: Use 0 instead of NULL as terminating param
* fuzz/main.c: Likewise
* include/wget/wget.h: Remove G_GNUC_WGET_NULL_TERMINATED from
  wget_global_init() and wget_http_get().
2017-10-09 16:56:53 +02:00
06ccbd81dc * include/wget/wget.h: Fix usage of G_GNUC_WGET_NONNULL for clang-cl (Windows) 2017-10-09 16:11:09 +02:00
33aa11c3bf Add GNU extensions to .netrc parsing
* include/wget/wget.h (wget_netrc_t): Add port and force
* libwget/netrc.c (wget_netrc_db_load): Parse port and force
2017-09-27 13:13:32 +02:00
6948deae02 Use type bool instead of char
* include/wget/wget.h: Use type bool instead of char
* libwget/bar.c: Likewise
* libwget/base64.c: Likewise
* libwget/cookie.c: Likewise
* libwget/encoding.c: Likewise
* libwget/hsts.c: Likewise
* libwget/http.h: Likewise
* libwget/http_highlevel.c: Likewise
* libwget/http_parse.c: Likewise
* libwget/ip.c: Likewise
* libwget/iri.c: Likewise
* libwget/logger.c: Likewise
* libwget/net.h: Likewise
* libwget/ocsp.c: Likewise
* libwget/tls_session.c: Likewise
* libwget/vector.c: Likewise
* src/plugin.c: Likewise
* src/wget_host.h: Likewise
* src/wget_job.h: Likewise
* src/wget_plugin.h: Likewise
* tests/test-plugin-dummy.c: Likewise
2017-09-22 13:08:49 +00:00
985b2a8747 Remove obsolete server code from library and test suite
* include/wget/wget.h: Remove wget_tcp_listen(), wget_tcp_accept(),
  wget_ssl_server_init(), wget_ssl_server_deinit(), wget_ssl_server_open(),
  wget_ssl_server_close().
* libwget/net.c: Remove wget_tcp_listen(), wget_tcp_accept(),
  remove tcp->passive,
  amend wget_tcp_tls_start() and wget_tcp_tls_stop().
* libwget/net.h: Remove tcp->passive.
* libwget/ssl_gnutls.c: Remove server variables, wget_ssl_server_init(),
  wget_ssl_server_deinit(), wget_ssl_server_open(), wget_ssl_server_close().
* tests/libtest.c: Remove FTP(S) code and obsolete test server code.
* tests/libtest.h: Remove FTP flags, structures, functions.
2017-09-20 14:34:56 +02:00
20c57943f1 * src/stats.c: Refactor stats code 2017-09-19 10:40:34 +05:30
2fdcf82d66 Add new format 'tree' for --stats-site
* include/wget/wget.h: Add WGET_STATS_FORMAT_TREE to wget_stats_format_t enum
* src/options.c (parse_stats): Accept format 'tree' for --stats-site switch
* src/stats.c (stats_print_tree): Print tree-ish o/p for format WGET_STATS_FORMAT_TREE
2017-09-19 10:40:34 +05:30
2821c151e6 Consolidate --stats-site CSV and JSON o/p
* src/stats.c: Consolidate print_csv() and print_json()
* src/stats.c: Consolidate print_site_stats_csv() and print_site_stats_json()
* src/wget_stats.h: Move stats_format_t enum to include/wget/wget.h
2017-09-19 10:40:34 +05:30
3a4d8a0afa Collect site stats only if --stats-site switch is supplied
* src/wget.c (wget_tcp_set_stats_site): Set 'stats-site' flag
* src/wget.c (add_statistics): Collect Site stats only if `stats_site` is set
* src/stats.c (stats_init): Call wget_tcp_set_stats_site if --stats-site is supplied
* include/wget/wget.h: Add wget_tcp_set_stats_site() prototype declaration
2017-09-19 10:40:34 +05:30
fdcc4a82ec Add docs
* libwget/http.c: Document wget_tcp_set_stats_server() and wget_tcp_get_stats_server()
* libwget/net.c: Document wget_tcp_set_stats_dns() and wget_tcp_get_stats_dns()
* libwget/ssl_gnutls.c: Document wget_tcp_set_stats_tls() and wget_tcp_get_stats_tls()
* libwget/ssl_gnutls.c: Document wget_tcp_set_stats_ocsp() and wget_tcp_get_stats_ocsp()
2017-09-19 10:40:34 +05:30
e3e770088d Assign enum values explicitly
* include/wget/wget.h: Likewise
* src/stats.c (stats_print_human): Remove commented code
2017-09-19 10:40:34 +05:30
c88d1018e3 Add port to DNS stats
* include/wget/wget.h: Add WGET_STAST_DNS_PORT to wget_stats_dns_t enum
* libwget/netc. (wget_tcp_resolve): store port in _stats_data_t struct
* src/wget_stats.h: Add 'port' to dns_stats_t struct
* src/stats.c (stats_callback): Collect port into dns_stats_t struct
* src/stats.c (stats_print_*): Print port
2017-09-19 10:40:34 +05:30
c0a7f7d7a8 Add parent child relationships and print them in tree-ish form
* include/wget/wget.h: Add prototype for wget_vector_deinit()
* libwget/vector.c: Add wget_vector_deinit() to free 'v->entry'
(can be used for vector maintaining references)
* src/host.c: Refactor tree_docs_add()
* src/host.c: Add hosts_hashmap_tree() and print_treeish() to print tree-ish o/p
* wget/host.h: Add 'root' and 'robot' to HOST struct
* src/wget_job.h (JOB struct): Add 'previous_robot_job' and 'clonned_robot_iri'
2017-09-19 10:40:34 +05:30
1535d9f3d1 Add --stats-site switch
* include/wget/wget.h: Add WGET_STATS_TYPE_SITE to wget_stats_type_t enum
* src/options.h: Increase stats_opts[] size to 5
* src/options.c: Add --stats-site
* src/wget_host.h: Add 'robot_iri' to DOC struct
* src/host.c: Add new functions print_site_stats(), hosts_hashmap() and host_docs_hashmap()
* src/stats.c (stats_print_human): Print site stats
* src/wget.c: Call host_add() as soon as scheme changes due to HSTS
* src/wget.c: Clone robot_iri
* src/wget_stats.h: Fix indentation
2017-09-19 10:40:34 +05:30
793844e65e Add WGET_STATS_HPKP_ERROR to handle HPKP error
* include/wget/wget.h: Add WGET_STATS_HPKP_ERROR to wget_hpkp_stats_t enum
* src/wget_stats.h (server_stats_t struct): Change datatype of 'hpkp' from char to wget_hpkp_stats_t
* libwget/ssl_gnutls.c (_cert_verify_hpkp): Store WGET_STATS_HPKP_ERROR for error
* src/stats.c (stats_server_hpkp): Return appropriate message depending on 'hpkp' value
2017-09-19 10:40:34 +05:30
f073658ed3 Collect --stats-server for unique servers(IPs) only
* src/wget_stats.h: Add member 'scheme' to server_stats_t struct
* src/stats.c (stats_callback): Collect 'scheme' in server_stats_t struct
* src/stats.c (stats_print_*): Print 'scheme'
* include/wget/wget.h: Add WGET_STATS_SERVER_SCHEME to wget_server_stats_t enum
* libwget/hashmap.c (wget_hashmap_contains): Add check for 'h' being non-NULL
* libwget/http.c: Add _host_hash() as hash function for 'hosts' hashmap
* libwget/http.c: Add _host_compare() as compare function for 'hosts' hashmap
* libwget/http.c: Add _free_host_entry() destructor for 'hosts' hashmap
* libwget/http.c (host_add): Add host to 'hosts' hashmap
2017-09-19 10:40:34 +05:30
c547e8dbbe * include/wget/wget.h: Set explicit enum values 2017-09-19 10:40:34 +05:30
d0b43d2e0f Add IP to --stats-server
* src/wget_stats.h: Add 'ip' to 'server_stats_t' struct
* src/stats.c (stats_callback): Collect IP
* src/stats.c (stats_print_*): Print IP
* src/stats.c (free_server_stats): Free 'ip'
* libwget/net.h (wget_tcp_st struct): Add 'ip'
* libwget/net.c (wget_tcp_connect): Store IP in tcp->ip
* libwget/http.c: Collect IP from conn->tcp->ip
2017-09-19 10:40:34 +05:30
7417303f7b Add HPKP_NEW to --stats-server
* src/wget_stats.h: Add hpkp_new to server_stats_t struct
* src/stats.c (stats_callback): Collect hpkp_new
* src/stats.c (stats_print): Print hpkp_new
* libwget/http.c (wget_http_get_response_cb): Collect hpkp_new stats
* include/wget/wget.h: Add WGET_STATS_SERVER_HPKP_NEW to wget_server_stats_t enum
2017-09-19 10:40:34 +05:30
adaa46ced7 Add --stats-ocsp option
* src/wget_stats.h: Add ocsp_stats_t struct
* src/stats.c: Add ocsp_stats_v vector to store OCSP stats
* src/stats.c: Add OCSP stats code in stats_init(), stats_callback() and stats_print()
* src/wget_options.h: Add stats_ocsp to struct config
* src/options.c: Add --stats-ocsp
* include/wget/wget.h: Add wget_ocsp_stats_t enum
* include/wget/wget.h: Add WGET_STATS_TYPE_OCSP to wget_stats_type_t enum
* libwget/ssl_gnutls.c: Add wget_tcp_set_stats_ocsp() and wget_tcp_get_stats_ocsp()
2017-09-19 10:40:34 +05:30
9dd43bec0c Add --stats-server option
* src/wget_stats.h: Add server_stats_t struct
* src/stats.c: Add server_stats_v vector to store server stats
* src/stats.c: Add server stats code in stats_init(), stats_callback and stats_print()
* src/stats.c: Add free_server_stats() destructor
* src/wget_options.h: Add stats_server to struct config
* src/options.c: Add --stats-server
* include/wget/wget.h: Add wget_server_stats_t and wget_hpkp_stats_t enums
* include/wget/wget.h: Add WGET_STATS_TYPE_SERVER to wget_stats_type_t enum
* libwget/http.c: Add wget_tcp_set_stats_server() and wget_tcp_get_stats_server()
* libwget/http_parse.c: Check for "Content-Security-Policy" header
* libwget/ssl_gnutls.c: Collect HPKP stats in wget_tcp_t struct
* libwget/net.h: Add hpkp to wget_tcp_st struct
2017-09-19 10:40:34 +05:30
61e4d1de97 Add --stats-dns and --stats-tls options
* src/wget_stats.h: Add dns_stats_t and tls_stats_t structs
* src/stats.c: Add stats_init(), stats_callback() and stats_print() functions
* src/stats.c: Add dns_stats_v and tls_stats_v vectors
* src/stats.c: Add free_tls_stats() and free_tls_stats() functions
* src/wget_options.h: Add stats_dns and stats_tls in config struct
* src/options.c: Add --stats-dns and --stats-tls
* src/wget.c: Add call to stats_init() and stats_print() functions
* src/Makefile.am: Add stats.c and wget_stats.h files
* include/wget/wget.h: Add prototypes for wget_tcp_set_stats_dns() and wget_tcp_set_stats_tls()
* include/wget/wget.h: Add prototypes for wget_tcp_get_stats_dns() and wget_tcp_get_stats_tls()
* include/wget/wget.h: Add wget_stats_type_t, wget_dns_stats_t and wget_tls_stats_t enums
* libwget/ssl_gnutls.c: Add wget_tcp_set_stats_tls() and wget_tcp_get_stats_tls()
* libwget/net.h: Add TLS stats in wget_tcp_st struct
* libwget/net.c: Add wget_tcp_set_stats_dns() and wget_tcp_get_stats_dns()
2017-09-19 10:40:34 +05:30
5ae6015c2c Fix clang warnings
* include/wget/wget.h: Add new function wget_ssl_set_config_object()
* libwget/ssl_gnutls.c: Likewise
* src/options.c: Use wget_ssl_set_config_object()
* libwget/ssl_gnutls.c (wget_ssl_write_timeout): Remove unreachable code
                       not required by syntax
* src/wget.c (downloader_thread): Likewise
* unit-tests/test.c (test_hpkp): Remove unnecessary variable with same
                                 name
2017-09-04 19:27:20 +05:30
98c8e410a8 Add plugin APIs for custom HSTS, HPKP and OCSP databases
* include/wget/wget.h: Add plugin API declarations
 * libwget/hsts.c: Make wget_hsts_db_t extensible
 * libwget/hpkp.c: Make wget_hpkp_db_t extensible
 * libwget/ocsp.c: Make wget_ocsp_db_t extensible
 * libwget/plugin.c: Add virtual functions for plugin API
 * src/plugin.c: Add plugin API implementation
 * src/wget_plugin.h: Likewise
 * src/option.c: Add code to call the implementation
 * src/wget.c: Likewise
 * tests/test-plugin-dummy: Add plugin with dummy databases for testing
 * tests/Makefile.am: Add target libplugindb.la
 * tests/test-plugin.c: Add tests for custom databases
 * unit-tests/test.c: Add tests for new HPKP functions
 * libwget/ssl_gnutls.c: Adapt to API changes
 * examples/http_multi_get.c: Likewise
 * fuzz/libwget_hpkp_fuzzer.c: Likewise
 * fuzz/libwget_hsts_fuzzer.c: Likewise
 * fuzz/libwget_ocsp_fuzzer.c: Likewise

This feature implemented as per the specifications at
https://gitlab.com/akash_rawal/wget2/wikis/Stage-4
2017-09-03 18:21:39 +02:00
81cada6b7d Add plugin APIs for intercepting downloaded files.
Merged from branch tmp-akash_rawal-stage3 into master

 * include/wget/wget.h: Add function declarations
 * libwget/plugin.c: Add virtual functions
 * configure.ac: Check for fmemopen()
 * src/plugin.c: Add implementation
 * src/wget_plugin.h: Likewise
 * src/wget.c: Add code that calls the implementation
 * tests/test-plugin-dummy.c (pluginapi): Add option 'parse-rot13',
   'only-rot13' and 'test-pp'
 * tests/test-plugin.c: Add tests
 * tests/libtest.c: Load files into dynamic memory instead of stack,
   enables testing with large files.

Plugin APIs for intercepting downloaded files have been implemented
as per specifications at https://gitlab.com/akash_rawal/wget2/wikis/Stage-3
2017-09-03 12:07:11 +02:00
072c1ab40b Do not print request body if it's an OCSP request
* include/wget/wget.h: Add 'debug_skip_body' flag to 'wget_http_request_t'
* libwget/ssl_gnutls.c: set 'debug_skip_body' flag if it's an OCSP request
* libwget/http.c: Do not print 'req->body' if 'debug_skip_body' is set
2017-08-31 19:57:41 +05:30
13e552441e Hide internal structures/defines from doxygen
* include/wget/wget.h: Use _ as prefix for internals
* libwget/atom_url.c: Likewise
* libwget/cookie.c: Likewise
* libwget/iri.c: Likewise
* libwget/net.c: Likewise
* libwget/rss_url.c: Likewise
* libwget/sitemap_url.c: Likewise
* src/wget_options.h: Likewise
2017-08-04 12:21:16 +02:00
480e917ada Fix off-by-one buffer read in wget_hpkp_pin_add()
* libwget/hpkp.c (wget_hpkp_pin_add): Fix pinsize value,
  (_compare_pin): Fix off-by-one buffer read
* libwget/base64.c (wget_base64_decode_alloc): Add outlen param
* include/wget/wget.h (wget_base64_decode_alloc): Likewise
* fuzz/libwget_base64_fuzzer.c: Add 3rd param to wget_base64_decode_alloc()

Found by local fuzzing
2017-07-30 16:12:54 +02:00
824c21036f Revert "Prevent tiny memory allocations when globbing"
This reverts commit 2d7fe3e9fc.

With the above patch, a tiny memory allocation is avoided, but in doing
so, it misses an important case. The glob(3) call never returns a
success when the file does not already exist at the given path.
2017-07-29 22:31:55 +02:00
45a5646025 Make wget_iri_set_scheme() update iri->uri
* include/wget/wget.h (wget_iri_st): Add field uri_allocated
* libwget/iri.c: Make wget_iri_set_scheme() update iri->uri
2017-07-25 22:05:11 +05:30
61eb10f4de Use C99 bool instead of unsigned int in IRI struct and code 2017-07-24 14:53:22 +02:00
112dfb7444 Change type of port numbers from char * to uint16_t
* include/wget/wget.h: Amend struct wget_iri_st,
  amend API
* libwget/hsts.c: Amend port type to uint16_t
* libwget/http.c: Likewise
* libwget/http.h: Likewise
* libwget/http_highlevel.c: Likewise
* libwget/http_parse.c: Likewise
* libwget/iri.c: Likewise
* libwget/net.c: Likewise
* src/blacklist.c: Likewise
* src/host.c: Likewise
* src/wget.c: Likewise
* src/wget_host.h: Likewise
* tests/libtest.c: Likewise
* unit-tests/test.c: Likewise
2017-07-24 13:13:50 +02:00