Age | Commit message (Collapse) | Author |
|
commit 71979f16430eb6a8efb89040655c6aca0e8e5854
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Thu Oct 15 21:09:59 2015 +0200
Adjust indentation of --no-use-server-timestamps in help output
* src/main.c: Adjust indentation of --no-use-server-timestamps
commit 4ad201a7e70d973846a39c09c137dd02dd0d3d48
Author: Ander Juaristi <ajuaristi@gmx.es>
Date: Tue Sep 22 21:10:38 2015 +0200
Added --convert-file-only option
* src/convert.c (convert_links_in_hashtable, convert_links):
test for CO_CONVERT_BASENAME_ONLY.
(convert_basename): new function.
* src/convert.h: new constant CO_CONVERT_BASENAME_ONLY.
* src/init.c, src/main.c, src/options.h: new option "--convert-file-only".
* doc/wget.texi: updated documentation.
Reviewed-by: Gabriel Somlo <somlo@cmu.edu>
commit 3608c3001ceadfed6fbfa6243d0c6fae88b669e8
Author: Darshit Shah <darnir@gmail.com>
Date: Sun Oct 11 00:37:01 2015 +0530
Fix Test-ftp-pasv-not-supported.px
* tests/Test-ftp-pasv-not-supported.px: We do *NOT* expect any
downloaded files. Also, do not negate the Test response.
The test originally expected a downloaded file, but this is not
true. As a result, the test would fail and return exit code 1. This
was presumably the reason why the test result was negated before
returning to the shell. Fix this issue, so that the test runs
correctly without any hacks.
commit d484b141742b012b60cd05cdd9466fc58c832106
Author: Darshit Shah <darnir@gmail.com>
Date: Mon Sep 28 20:53:48 2015 +0530
Fix make distcheck failures in Perl SSL Tests
* tests/Makefile.am: Add valgrind-suppressions-ssl to EXTRA_DIST
* tests/Test-proxied-https-auth-keepalive.px: Find valgrind in
correct path during make distcheck
* tests/Test-proxied-https-auth.px: Same
commit b8ee3705713f53352966630c85d06f491c03c480
Author: christian fafard <cfaf@hotmail.com>
Date: Mon Oct 12 09:50:18 2015 +0200
Skip HTTPS perl tests if IO::Socket::SSL not installed
* tests/Test-proxied-https-auth-keepalive.px: Skip test if perl module
IO::Socket::SSL is not installed (trivial change).
* tests/Test-proxied-https-auth.px: Skip test if perl module
IO::Socket::SSL is not installed (trivial change).
|
|
commit f5a63e31006ed02f5de4bb8d947bc7b755bb81fe
Author: Ander Juaristi <ajuaristi@gmx.es>
Date: Mon Oct 5 23:03:45 2015 +0200
Fix potential race condition
* src/hsts.c (hsts_read_database): get an open file handle
instead of a file name.
(hsts_store_dump): get an open file handle
instead of a file name.
(hsts_store_open): open the file and pass the open file handle.
(hsts_store_save): lock the file before the read-merge-dump
process.
Reported-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
commit 077e89781985f4c1383b6f3860c2d69691ae54ae
Author: Ander Juaristi <ajuaristi@gmx.es>
Date: Wed Oct 7 21:25:41 2015 +0200
Fix HSTS merge bug
* src/hsts.c (hsts_store_merge): call hsts_new_entry() if the entry
does not exist in the database.
When merging the existing HSTS database on disk with the one on memory,
the entries that were on disk but not on memory were ignored. Thus,
only the existing entries were merged. This behavior was only triggered
when more than one Wget processes were using the same HSTS database
simultaneously. This commit fixes the bug by adding the new entries
to the on-memory database if they were not found there.
commit 1e7ccfe2750c2e337bf7c0a4bfb33efe6e75e0c4
Author: Giuseppe Scrivano <gscrivan@redhat.com>
Date: Mon Sep 28 13:12:35 2015 +0200
testenv/Test--rejected-log.py: Remove trailing white spaces
commit 26fadc55c27547b95d7f1709c6a6248395f62cd9
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Mon Sep 28 12:00:33 2015 +0200
Handle TLS rehandshakes in GnuTLS code
* src/gnutls.c: New static function _do_handshake()
* src/gnutls.c (wgnutls_read_timeout): Handle rehandshake
* src/gnutls.c (wgnutls_write): Handle rehandshake
* src/gnutls.c (ssl_connect_wget): Move handshake code into _do_handshake()
Fixes #46061
commit e51076e6832d651c8b614de03c81576918fcb2f7
Author: Darshit Shah <darnir@gmail.com>
Date: Tue Sep 22 16:38:40 2015 +0530
Add tests for missing qop in digest auth
* testenv/test-auth-both.py: Add qop parameter for digest auth
* testenv/test-auth-digest.py: Same
* testenv/conf/authentication.py: Support additional parameters for
authentication
* testenv/servers/http/http_server.py: Same
commit c387db645184877d1236ef4dd76da1e5671ec561
Author: Darshit Shah <darnir@gmail.com>
Date: Tue Sep 22 16:36:40 2015 +0530
Do not test for impossible qop value
* http.c (digest_authentication_encode): Wget already errors out if
qop != "auth". Then it makes no sense to test for qop == "auth-int"
later on. Currently, Wget does not support the "auth-int" qop value
and till nobidy requests, it may remain so.
commit 12dfc03116f63f53d05761d3847061b7e6ca6fd6
Author: Darshit Shah <darnir@gmail.com>
Date: Tue Sep 22 15:41:22 2015 +0530
Fix #46024. Support RFC 2069 Digest Authentication
* http.c (digest_authentication_encode): Some servers are still
using the obsolete RFC 2069 Digest Authentication. Allow Digest
authentication without the qop parameter for this.
Reported-by: Andreas Longwitz <longwitz@incore.de>
|
|
commit 3ea0beec6fabe67e7789d4164886e035fed15a6d
Author: Darshit Shah <darnir@gmail.com>
Date: Mon Sep 21 19:41:38 2015 +0530
Revert "Disable progress bar when wget is backgrounded (trivial patch)"
This reverts commit e6247325633d7d0007906f88d573a3bfa37307a7.
commit b50300a7a2b1df4832d02af40ec7b50559afdc42
Author: Giuseppe Scrivano <gscrivan@redhat.com>
Date: Sun Sep 20 15:15:12 2015 +0200
NEWS: cite FTPS support
|
|
commit f8901af4e02d69c1d8cbedc5d344269d54a73498
Author: Ander Juaristi <ajuaristi@gmx.es>
Date: Thu Aug 27 16:32:36 2015 +0200
Added support for FTPS
* doc/wget.texi: updated documentation to reflect the new FTPS functionality.
* src/ftp-basic.c (ftp_greeting): new function to read the server's greeting.
(ftp_login): greeting code was previously here. Moved to ftp_greeting to
support FTPS implicit mode.
(ftp_auth): wrapper around the AUTH TLS command.
(ftp_ccc): wrapper around the CCC command.
(ftp_pbsz): wrapper around the PBSZ command.
(ftp_prot): wraooer around the PROT command.
* src/ftp.c (get_ftp_greeting): new static function.
(init_control_ssl_connection): new static function to start SSL/TLS on the
control channel.
(getftp): added hooks to support FTPS commands (RFCs 2228 and 4217).
(ftp_loop_internal): test for new FTPS error codes.
* src/ftp.h: new enum 'prot_level' with available FTPS protection levels +
prototypes of previous functions. New flag for enum 'wget_ftp_fstatus' to track
whether the data channel has some security mechanism enabled or not.
* src/gnutls.c (struct wgnutls_transport_context): new field 'session_data'.
(wgnutls_close): free GnuTLS session data before exiting.
(ssl_connect_wget): save/resume SSL/TLS session.
* src/http.c (establish_connection): refactor ssl_connect_wget call.
(metalink_from_http): take into account SCHEME_FTPS as well.
* src/init.c, src/main.c, src/options.h: new command line/wgetrc options.
(main): in recursive downloads, check for SCHEME_FTPS as well.
* src/openssl.c (struct openssl_transport_context): new field 'sess'.
(ssl_connect_wget): save/resume SSL/TLS session.
* src/retr.c (retrieve_url): check new scheme SCHEME_FTPS.
* src/ssl.h (ssl_connect_wget): refactor. New parameter of type 'int *'.
* src/url.c. src/url.h: new scheme SCHEME_FTPS.
* src/wget.h: new FTPS error codes.
* src/metalink.h: support FTPS scheme.
commit e6247325633d7d0007906f88d573a3bfa37307a7
Author: Christian Neukirchen <chneukirchen@gmail.com>
Date: Tue Sep 8 16:29:18 2015 +0200
Disable progress bar when wget is backgrounded (trivial patch)
* src/progress.c (create_image): progress only when in foreground
Sometimes I start wget, but the remote site is too slow, so I rather
want to run it in background, however when I simply use job control
for that, wget will keep spewing the progress bar all over my
terminal. I have found the SIGHUP/SIGUSR1 feature to redirect output
to a log file, but I think the following small patch is even more
useful, since the progress bar will simply resume when wget is
foregrounded again (also, the final message is still printed to the
terminal in any case):
commit f2cb6e050a28bb6c1e3a99a119360d4fd656fe62
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Thu Sep 3 20:40:21 2015 -0700
Add information about libmetalink and GnuPG
* README.checkout: Optional dependencies and URL references.
commit 84b9abbf3c789e371bc8d41bd2d2d89cabb8fbc2
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Tue Sep 1 23:33:12 2015 -0700
Do not free Metalink structure if not initialized
* src/main.c (main): Move metalink_delete to the conditional block.
commit 58917dcde14222fdbe98bef0d54e23c9722c8d8c
Author: Ander Juaristi <ajuaristi@gmx.es>
Date: Tue Aug 18 00:45:36 2015 +0200
Updated HSTS documentation
* doc/wget.texi: updated HSTS documentation.
Reported-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
commit ab47d9fa3a8c38bc14b1901ad5d9ef39bb6e837b
Author: Ander Juaristi <ajuaristi@gmx.es>
Date: Sat Aug 8 19:40:49 2015 +0200
Extra debug traces for HSTS.
* src/main.c (load_hsts, save_hsts): added DEBUGP() calls to signal
reads and saves of the HSTS database file.
commit 187edb604a517e6a4ebf84096fab762fac0a2e03
Author: Darshit Shah <darnir@gmail.com>
Date: Mon Aug 31 21:04:54 2015 +0530
Fix coding style violation in last commit
* http.c (test_parse_range_header): Declare loop variable
explicitly. Not in gnu99 standard.
|
|
commit b06fca60ac0dd001cc2203e593d24beebab1631b
Author: Darshit Shah <darnir@gmail.com>
Date: Sat Aug 29 23:08:39 2015 +0530
Add unit test for parse_content_range() method
* http.c (test_parse_range_header): New function to test the
function for parsing the HTTP/1.1 Content-Range header.
* test.[ch]: Same
* http.c (parse_content_range): Fix parsing code. Fail on scenarios
mentioned in rfc 7233.
commit c809398e8c16285a6b3e5de195ae98735ee1f4bf
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sun Aug 30 14:17:47 2015 +0200
Fix null pointer dereference
* src/metalink.c (gpg_skip_verification):
Check output_stream before fclose
commit 88a1a79bc13175ae04db2d58195d3b67a34b2981
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sun Aug 30 13:13:05 2015 +0200
Fix leaks found by Coverity
* src/http.c (parse_strict_transport_security): Free c_max_age
(open_output_stream): Fix indentation
* src/iri.c (locale_to_utf8): Free new
commit 398699c438889582d354b9e5411fd1201472d3e5
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat Aug 29 22:35:29 2015 +0200
Fix two leaks foudn by Coverity
* src/http.c (gethttp): Do not leak 'message'.
* src/main.c (format_and_print_line): Do not leak 'line_dup'.
commit d3504b92613a50b2bb480dd30bd181a99741f8c6
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat Aug 29 22:15:34 2015 +0200
Fix resource leak discovered by Coverity
* src/retr.c (retrieve_url): Don't leak local_file.
commit 6b5acff56617bcf8b5c7b525640fd64522176400
Author: Darshit Shah <darnir@gmail.com>
Date: Sat Aug 29 22:52:49 2015 +0530
Fix memory leaks in unit-test
* hsts.c (get_hsts_store_filename): Free the homedir value
(close_hsts_test_store): Actually free the store struct too
(test_hsts_new_entry): Pass store to close_hsts_test_store()
(test_hsts_url_rewrite_superdomain): Same
(test_hsts_url_rewrite_congruent): Same
(test_hsts_read_database): Same and homedir and store filename
* http.c (test_parse_content_disposition): Free the returned
filename
* url.c (test_append_uri_pathel): Free allocated string
|
|
commit 5c4489db9b084b361da38df45e91793e0b04cc23
Author: Darshit Shah <darnir@gmail.com>
Date: Sat Aug 29 09:45:13 2015 +0530
Fix mixed-indentation in http.c
* http.c: Fix mix indentation. Visual change only.
commit 7bed9a6f8f106d88737284850941f9aa6d21a13b
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Aug 26 10:35:57 2015 +0200
Suppress debug output when strings may contain password
* iri.c (do_conversion): Do not print out converted strings if they
contain an '@'. That could be an URL with embedded password.
Fixes #45825
|
|
|
|
commit d080a70a3a62626ef3490a19b532c981c0f616f6
Author: Ander Juaristi <ajuaristi@gmx.es>
Date: Wed Aug 26 12:35:02 2015 +0200
Fix resource leak.
* src/http.c (parse_strict_transport_security): Freed memory to avoid resource leak.
Comply with GNU coding style.
commit 2d2ddb25d81103d8366e385901e0940539c63c07
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Sat Aug 22 22:32:15 2015 +0200
Fix typo in NEWS
* NEWS: Change typo --accept-reject into --accept-regex
Reported-by: grarpamp <grarpamp@gmail.com>
commit 030c3379d198fca9a3138554e6fdd3a3be8482e9
Author: Jookia <166291@gmail.com>
Date: Sat Aug 22 02:29:05 2015 +1000
Clarify that links are being converted.
* src/convert.c: Add 'links in' after 'Converted %d' and 'Converting %s'.
commit d3d8de8223603dac54d2bc756330aa8c02188b83
Author: Jookia <166291@gmail.com>
Date: Sat Aug 22 01:41:44 2015 +1000
Removed useless TODOs.
* testenv/Test--reject-log.py: Remove TODOs.
|
|
commit e04c5989ff482e1fd1e6ee9defae94c95893d5bd
Author: Miquel Llobet <mllobet.cm@gmail.com>
Date: Sun Mar 15 21:48:27 2015 +0100
Fixed #44516 -o- not logging to stdout
src/log.c (log_init): check for hypen on filename, set stdout
commit 12bae50b28fa20f9ffa3d5b0e88f4ebf51fa6864
Author: Daniele Calore <daniele.calore@tin.it>
Date: Sun Aug 16 00:16:12 2015 +0530
Fix #40426: Allow -r -O- only if FILE is regular
* main.c: added check of "-r -O FILE" option combination
allow only if FILE is a regular file (bug #40426)
commit f71887bbe58acc0246e162cd2c4345ecbc9d92f2
Author: Darshit Shah <darnir@gmail.com>
Date: Sat Aug 15 15:43:33 2015 +0530
Fix var name conflicts with math.h and wingdi.h
* src/recur.c (reject_reason): Rename all enum members to WG_RR_xx.
* src/recur.c (retrieve_tree, download_child,
write_reject_log_reason): Same
|
|
commit 84c405e69018074bcc3facf760decbf92cfc8898
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Aug 14 10:17:52 2015 +0200
Let bootstrap/autoreconf work without GPGME installed
* configure.ac: Check for existance of AM_PATH_GPGME
commit 075d7556964f5a871a73c22ac4b69f5361295099
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Aug 11 16:48:08 2015 +0200
Fix IP address exposure in FTP code
* src/ftp.c (getftp): Do not use PORT when PASV fails.
* tests/FTPServer.px: Add pasv_not_supported server flag.
* tests/Makefile.am: Add Test-ftp-pasv-not-supported.px
* tests/Test-ftp-pasv-not-supported.px: New test
Fix IP address exposure when automatically falling back from
passive mode to active mode (using the PORT command). A behavior that
may be used to expose a client's privacy even when using a proxy.
|
|
commit 7578e47d4957b019d90bbe77bcab98113a8923bc
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Aug 7 14:03:00 2015 +0200
Fix C89 compliancy in HSTS test code
* src/hsts.c (test_hsts_new_entry):
Move variable assignment before code
commit 3a708f7ef84c0c875c990a315bca610dae2d8f40
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Aug 7 13:27:37 2015 +0200
Fix C89 compliancy in latest code
* src/recur.c: Declare variables before code
(write_reject_log_url):
Use const keyword where appropriate
Use the 'default' switch statement
Use xfree() instead of free()
Renamed variable f -> fp
(write_reject_log_reason):
Use const keyword where appropriate
Use the 'default' switch statement
Renamed variable f -> fp
Renamed variable r -> reason
commit 474935665e3c2ca648556b093fe20e70a3b2b5e8
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Fri Aug 7 13:24:14 2015 +0200
Remove redundant definition of _GNU_SOURCE
* src/warc.c: Remove definition of _GNU_SOURCE
_GNU_SOURCE is already defined in config.h
commit f8519b52f0b93a48652534d705e7aa690ec0af01
Author: Giuseppe Scrivano <gscrivan@redhat.com>
Date: Fri Aug 7 08:32:34 2015 +0200
NEWS: update
commit 98272d2c8de7602f0bf393538047d40102f0b351
Author: Jookia <166291@gmail.com>
Date: Fri Aug 7 07:58:30 2015 +1000
Rewrite the --rejected-log test using the new framework.
* tests/Test--rejected-log.px: Remove old test.
* testenv/Test--rejected-log.py: Create new test.
commit 7e5079c40f2cc0e66122ed86e17c3589b960a534
Author: Jookia <166291@gmail.com>
Date: Fri Aug 7 07:51:16 2015 +1000
Replace variables before comparing expected files.
* expected_files.py: Use formatted_content instead of file.content.
commit e4db00d74d7c8ade43e57f39344d8505d607308a
Author: Jookia <166291@gmail.com>
Date: Fri Jul 31 23:41:36 2015 +1000
Add option to write URL rejections to a tab-delimited CSV log.
* main.c: Add "--rejected-log" option.
* init.c: Add "rejectedlog" command.
* options.h: Add "rejected_log" parameter string.
* wget.texi: Add brief documentation on new --rejected-log option.
* recur.c: Optionally log details of URLs not traversed.
Add reject_reason enum.
(download_child_p -> download_child): Return a reject_reason.
(descend_redirect_p -> descend_redirect): Return a reject_reason.
(retrieve_tree): Support logging reasons for rejection.
Add write_reject_log_header that writes a CSV format header to a file.
Add write_reject_log_url that writes a url struct to a file in CSV format.
Add write_reject_log_reason that writes the URL and parent URL as well as the
rejection reason to a CSV file.
* Test--rejected-log.px: Add a basic test for the --rejected-log command.
* tests/Makefile.am: Run Test--rejected-log.px.
This allows you to figure out why URLs are being rejected and some context
around it. CSV is used as the output format since it can be used easily parsed,
it's delimited by tabs instead of commas to allow using all (quoted) URL
characters and includes column names which may be used for compatibility.
commit 670eb924e75730ed612e0f8b96a8bcd17d392d3e
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Aug 4 17:41:54 2015 +0200
Fix memory leak in HSTS code
* src/main.c (get_hsts_database): Free 'home' variable
commit 5d55018ce6909342d6c08b4937279cc366e3e289
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Aug 4 17:24:59 2015 +0200
void uninitialized variable in metalink code
* src/metalink.c: Init retr_err with METALINK_MISSING_RESOURCE
* src/wget.h: Add enum METALINK_MISSING_RESOURCE
|
|
commit 4e56a910013de2b7dcd378a97ad63be4c8fa53c4
Author: Darshit Shah <darnir@gmail.com>
Date: Fri Jul 24 23:52:43 2015 +0530
Fix function name collision with OpenSSL library
* src/utils.[ch], src/http.c, src/metalink.c: Rename function
hex_to_string() to wg_hex_to_string sine it collides with a
similarly named function in OpenSSL Library.
commit 595f219a17a4981c86b47b224167eb4a341db507
Author: Darshit Shah <darnir@gmail.com>
Date: Fri Jul 24 23:42:20 2015 +0530
Fix configure options for metalink
* configure.ac: Ensure metalink support can be properly disabled
commit b6e242cd6f13f3a5a57f9a92bebfb21d8d840143
Author: Alex Henrie <alexhenrie24@gmail.com>
Date: Fri Jul 10 10:50:08 2015 -0600
Make the filename marquee a proper marquee
* src/progress.c: Start the marquee in the middle of the available space
and do not restart it until all of the text has scrolled out of view.
commit 207006ef25bab95d161d4b403fdaa20acdf51705
Author: Giuseppe Scrivano <gscrivan@redhat.com>
Date: Mon Jul 20 16:30:48 2015 +0200
NEWS: cite HSTS
commit 843634db59e188051ea5140a4b44726b710c34b5
Author: Giuseppe Scrivano <gscrivan@redhat.com>
Date: Mon Jul 20 16:29:05 2015 +0200
Fix metalink tests
testenv/Test-metalink-http.py: initialize HTTP test server
testenv/Test-metalink-xml.py: initialize HTTP test server
commit 54058d2b18780e660d79a3cc9109ae098237590f
Author: Ander Juaristi <ajuaristi@gmx.es>
Date: Sun Jul 5 20:04:42 2015 +0200
Enhancements in testsuite engine + new HSTS test.
* testenv/Makefile.am: added new test 'Test-hsts.py'.
* testenv/Test-hsts.py: new test for HSTS.
* testenv/conf/domains.py: new hook to override domain list.
* testenv/test/base_test.py: (__init__): new optional parameter
for tests 'req_protocols'.
(get_domain_addr): set the instance variables 'addr' and 'port'.
Return address as an array (domain, port) instead of string.
(gen_cmd_line): take into account domain and port.
* testenv/test/http_test.py (__init__): new optional parameter
'req_protocols'.
(setup): new function. Call to server_setup() decoupled from
begin() and moved here.
(begin): call to superclass to maintain backward compatibility.
Removed call to server_setup().
This patch adds a new parameter to the test suite called 'req_protocols',
and a new function called 'setup'. The ability for tests to be able to set some
extra parameters such as the actual requested protocols (with 'req_protocols')
became obvious when support for HSTS was added to Wget, where the requested URI
and the actual executed URI do not have to be the same. This new parameter is optional
and if not specified, the test suite behaves as before. Also, the new function 'setup'
is provided as a means to start the test HTTP server, but not launch the test yet
(this is done when calling 'begin', as usual), in case we want to query the address
and port in which the test server listens. If 'setup' is not called, it is automatically
invoked when calling 'begin'. With these measures, we preserve backward-compatibility with
existing tests.
commit b60131a399b1215674e5728e0e77f8fe8e07d6fe
Author: Ander Juaristi <ajuaristi@gmx.es>
Date: Wed Jul 1 00:21:05 2015 +0200
Added support for HSTS.
* Makefile.am: Added new source files hsts.c and hsts.h.
* http.c (parse_strict_transport_security): new function for STS header
parsing.
(gethttp): update the HSTS store.
* http.h: new include "hsts.h".
* init.c: new options --hsts and --hsts-file.
* main.c (get_hsts_database, load_hsts, save_hsts): new functions.
New options --no-hsts and --hsts-file added to help.
(main): load and save HSTS store.
* options.h: new variables for supporting --hsts and --hsts-file.
* retr.c (retrieve_url): rewrite the URI according to the HSTS policy before
entering http_loop.
* test.c, test.h: new unit tests for HSTS.
* utils.c, utils.h (countchars): new function.
* wget.h: new preprocessor check.
* hsts.c, hsts.h: new files with the HSTS engine implementation.
Added support for HTTP Strict Transport Security (HSTS), as defined by RFC
6797.
commit fc8a545bfdf642d15131ef9620e5fc793a3d9841
Author: Giuseppe Scrivano <gscrivan@redhat.com>
Date: Mon Jul 20 15:50:29 2015 +0200
NEWS: cite metalink support
commit 9e12b8ca39302a3ea8cdd8e258a12cd1e6544aa5
Author: Giuseppe Scrivano <gscrivan@redhat.com>
Date: Mon Jul 20 15:37:52 2015 +0200
fix compiler warnings
* src/utils.h: Include <stdlib.h>
* src/recur.c: Include "exits.h"
commit 4c3043d19d36539689c0b7c67464413cf8b36583
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Fri Jul 3 00:27:24 2015 +0200
Test preferred location in Metalink-over-HTTP test case.
* testenv/Test-metalink-http.py: Ensure preferred location is handled
properly.
commit 6064f21c66b8494de3c3383e857730a1490e00b2
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Fri Jul 3 00:21:35 2015 +0200
Geolocation support for Metalink resources.
* doc/wget.text: Add information about --preferred-location.
* src/init.c: Add --preferred-location option.
* src/main.c (option_data): Handle --preferred-location argument.
(main): Sort resources based on location if requested.
* src/metalink.c (metalink_res_cmp): Compare based on location if
priority and preference are equal.
* src/options.h (options): Add preferred_location option.
commit 97389a7497047d42c2841a53d94846a721857683
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Thu Jul 2 00:16:12 2015 +0200
Support at most one file signature. Adapt comments to libmetalink 0.13.
* src/metalink.c (retrieve_from_metalink): Add comment about new
libmetalink version. Do not iterate over signatures - support just one.
commit 225a87d4a2204006d6633af0a0e293c2c6322055
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Fri Jun 26 02:09:51 2015 +0200
Move some Metalink-related code from http.c to metalink.c.
* src/http.c: Move find_key_value, has_key, find_key_values.
* src/metalink.c: To here.
* src/metalink.h: Make them non-static and add prototypes here.
commit 92a889b2785c31e5ff8bdd8264a03b906cfa7692
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Tue Jun 23 17:51:32 2015 +0200
Unit test for find_key_values.
* src/http.c: Add test_find_key_values.
* src/test.c (main): Run new test.
* src/test.h: Add test_find_key_values.
commit 1113e7853466903fc0cbfefecc5c7169446c0976
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Tue Jun 23 16:46:39 2015 +0200
Unit test for has_key.
* src/http.c: Add test_has_key.
* src/test.c (main): Run new test.
* src/test.h: Add test_has_key.
commit 70cbd59ed6684e12cdc6ce1e10f122ff3608c411
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Tue Jun 23 16:36:21 2015 +0200
Unit test for find_key_value.
* src/http.c: Add test_find_key_value.
* src/test.c (main): Run new test.
* src/test.h: Add test_find_key_value.
commit 0e7aff7623e8158d04736546e2cb3ec35b05f2d6
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Fri Jun 19 14:31:16 2015 +0200
Test case for Metalink over HTTP.
* testenv/Test-metalink-http.py: New test.
* testenv/Makefile.am: Add to test list.
commit 792dd09a873464c7b24cf962b0b3e633d67477d2
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Mon Jun 22 20:46:01 2015 +0200
Support multiple headers with same name in Python test suite.
* testenv/README: Describe how to use repeated header name.
* testenv/server/http/http_server.py (finish_headers): Send all
values from list if the header value is a Python list.
commit a4f5ced797b41605a37320756a82f9313516b5fa
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Mon Jun 15 12:13:46 2015 +0200
Test case for Metalink in XML.
* testenv/Test-metalink-xml.py: New test.
* testenv/Makefile.am: Add file for automake.
commit 05c30c3b1bf1671d1ea0d0af8966190285507f29
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Mon Jun 15 11:47:51 2015 +0200
Start HTTP test only when calling begin().
* testenv/test/http_test.py: Move self.do_test() from __init__ to
begin().
commit 37b58e3976c02acc90f86e0f65e19b14e2ea9269
Author: Hubert Tarasiuk <hubert.tarasiuk@gmail.com>
Date: Sat May 30 23:51:55 2015 +0200
Metalink support.
* bootstrap.conf: Add crypto/sha256
* configure.ac: Look for libmetalink and GPGME
* doc/wget.texi: Add --input-metalink and --metalink-over-http
options description.
* po/POTFILES.in: Add metalink.c
* src/Makefile.am: Add new translation unit (metalink.c)
* src/http.c (http_stat): Add metalink field.
(free_stat): Free metalink field.
(find_key_value): Find value of given key in header string.
(has_key): Check if token exists in header string.
(find_key_values): Find all key=value pairs in header string.
(metalink_from_http): Obtain Metalink metadata from HTTP response.
(gethttp): Call metalink_from_http if requested.
(http_loop): Request Metalink metadata from HTTP response if should be.
Fall back to regular download if no Metalink metadata found.
* src/init.c: Add --input-metalink and --metalink-over-http options
* src/main.c (option_data): Handle --input-metalink and
--metalink-over-http cmd arguments.
(print_help): Print --input-metalink option description.
(main): Retrieve files from Metalink file
* src/metalink.c (retrieve_from_metalink): Download files described by
metalink.
(metalink_res_cmp): Comparator for resources priority-sorting.
* src/metalink.h: Create header for metalink.c
(RES_TYPE_SUPPORTED): Define supported resources media.
(DEFAULT_PRI): Default mirror priority for Metalink over HTTP.
(VALID_PRI_RANGE): Valid priority range.
* src/options.h (options): Add input_metalink option and metalink_over_http
options.
* src/utils.c (hex_to_string): Convert binary data to ASCII-hex.
* src/utils.h (hex_to_string): Add prototype.
* src/wget.h: Add metalink-related error enums
Add METALINK_METADATA flag for document type.
commit 80303366aeb158f1780e4ff5acec8e9df7db83df
Author: Romain Bentz <romain.bentz@dataiku.com>
Date: Wed Jun 10 10:46:12 2015 +0200
Add NULL value check to fix #45289
* src/recur.c (retrieve_tree): Check return value of url_parse()
commit bd0ffcf8bc51174904f3f5a4716b2e2b2e768aa1
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Jul 14 07:54:03 2015 +0200
Let HTTPS tests XFAIL when no TLS support configured
* configure.ac: Export WITH_SSL for use in Makefile.am
* testenv/Makefile.am: Add HTTPS tests to XFAIL_TESTS when !WITH_SSL
Reported-by: Ander Juaristi <ajuaristi@gmx.es>
commit 25c9b462bf44ec3d1435000db33c135135ff3482
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Wed Jul 1 15:54:26 2015 +0200
Change function params to const in src/iri.[ch]
* iri.h, iri.c: Added const attribute for params of parse_charsset(),
check_encoding_name(), idn_encode(), idn_decode(),
remote_to_utf8(), set_uri_encoding(), set_content_encoding().
commit 77f5a27e6506970c00b96570b6783c49582eacd7
Author: Tim Rühsen <tim.ruehsen@gmx.de>
Date: Tue Jun 30 09:55:14 2015 +0200
Work around a libidn <= 1.30 vulnerability
* src/iri.c: Add _utf8_is_valid() to check UTF-8 sequences before
passing them to idna_to_ascii_8z().
commit ae58d8a78b3531a330970fba2787d528d63dd83f
Author: Ángel González <keisial@gmail.com>
Date: Sat Jun 27 21:32:48 2015 +0200
Fix wgetrc filename creation for Windows
* init.c/wgetrc_file_name: Remove obsolete code in WINDOWS code path
Reported-by: Gisle Vanem <gvanem@yahoo.no>
|
|
2015-06-16 Darshit Shah <darnir@reniac.com>
Add valgrind suppression files for HTTPS tests
* testenv/test/base_test.py: Use Valgrind SSL suppressions file for
tests
* testenv/valgrind-suppression-ssl, tests/valgrind-suppression-ssl:
Add new suppression files to suppress OpenSSL errors in valgrind
* tests/test-proxied-https-auth.px: Use the valgrind SSL
suppressions file for the test
* tests/test-proxied-https-auth-keepalive.px: Same
2015-06-15 Darshit Shah <darnir@reniac.com>
contrib/check-hard: Indentation and spacing cleanup
* contrib/check-hard: Reduce the amount of text output to the
screen. Also implement some indentation and whitespace cleanups.
2015-06-15 Tim Rühsen <tim.ruehsen@gmx.de>
Fix usage of CFLAGS in contrib/check-hard
* contrib/check-hard: Set CFLAGS per command line instead of using export.
'make distcheck' changes CFLAGS. So using ./configure -C together with
exported CFLAGS fails. Setting CFLAGS per command line works smoothly.
2015-06-14 Tim Rühsen <tim.ruehsen@gmx.de>
Move test_* function protoypes from test.c to test.h
* src/test.c: Remove test_* function prototypes, make tests_run static
* src/test.h: Add test_* function protoypes
|
|
|