Commit Graph

80 Commits

Author SHA1 Message Date
Ander Juaristi b60131a399 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.
2015-07-20 15:55:57 +02:00
Hubert Tarasiuk 37b58e3976 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.
2015-07-20 15:30:39 +02:00
Giuseppe Scrivano 16f1fb1d1f maint: update copyright year ranges to include 2015 2015-03-09 16:32:01 +01:00
Friedrich Haubensak 0a4826f4a1 Add support for older versions of flex (tiny change)
E.g. flex 2.5.4 (Solaris 10) does not like a space after -o.
2014-12-11 15:18:57 +01:00
Tim Rühsen 94447e31a6 Replace compatibility functions by gnulib functions 2014-12-05 11:57:28 +01:00
Tim Ruehsen 5d3b52d0b8 Remove gettext.h from Makefile.am 2014-11-28 21:39:31 +01:00
Pär Karlsson 1853e425f5 Added missing version.h to Makefile.am 2014-11-26 09:27:47 +01:00
Darshit Shah c6b750061a Add extern declaration for version.c strings 2014-11-22 17:26:06 +05:30
Giuseppe Scrivano e5cb0f77e6 Revert "Replace @VAR@ in Makefile.am files with $VAR"
This reverts commit d1ab00cab4.

Conflicts:
	tests/Makefile.am
2014-10-28 10:42:50 +01:00
Giuseppe Scrivano ebda24eb69 Remove tab-space indentation 2014-06-28 17:53:42 +02:00
Giuseppe Scrivano d1ab00cab4 Replace @VAR@ in Makefile.am files with $VAR 2014-06-12 18:49:15 +02:00
Gijs van Tulder e3820953b2 Add support for WARC files. 2011-11-04 22:25:00 +01:00
Giuseppe Scrivano c79ff7f47a Fix a build error detected MacOS and NetBSD. 2011-08-18 14:00:57 +02:00
Giuseppe Scrivano a73e3a914e Don't invoke hg to set version string. 2011-08-11 10:26:43 +02:00
Giuseppe Scrivano 87a176daa7 Use futimens instead of utimes. 2011-04-19 12:33:46 +02:00
Giuseppe Scrivano 1cba1a7659 Fix openssl detection under Windows. 2011-04-04 00:13:53 +02:00
Giuseppe Scrivano 2f6aa1d741 mass change: update copyright years. 2011-01-01 13:19:37 +01:00
Giuseppe Scrivano 8405493e1d gnutls: fix build under mingw32. 2010-10-23 13:50:31 +02:00
Giuseppe Scrivano 5cc1525e65 Generate the `build_info.c' file under the build directory. 2010-06-10 10:03:17 +02:00
Giuseppe Scrivano c702d99f7b Use the gnulib snprintf module. 2010-05-27 13:59:46 +02:00
Giuseppe Scrivano 58a9721edf Use the gnulib md5 module. 2010-05-16 01:34:17 +02:00
Giuseppe Scrivano ffbba2e6b9 Fix some build issues 2010-05-15 22:58:57 +02:00
Giuseppe Scrivano 293008f682 Mass update copyright years. 2010-05-08 21:56:15 +02:00
Giuseppe Scrivano 5a97871f5d Fix unit tests build in a VPATH. 2010-05-07 13:10:09 +02:00
Giuseppe Scrivano 8234d9866a Add directory with generated gnulib files. 2010-05-07 10:15:14 +02:00
Giuseppe Scrivano 63f280a030 Copy build_info.c.in only if we are working in a VPATH. 2010-05-07 09:51:35 +02:00
Giuseppe Scrivano 57a46fed5d Generate build_info.c in the builddir not in the srcdir. 2010-05-06 23:13:24 +02:00
Micah Cowan 186ee6d0ff build_info.pl improvements, advertise large-file support. 2009-10-09 02:02:39 -07:00
Micah Cowan 663b1b3367 imported patch windows 2009-09-22 18:43:02 -07:00
Micah Cowan a40256c1a9 More reliable Mercurial node ids. 2009-09-22 16:55:35 -07:00
Micah Cowan ba2a0b871a Backout release-specific changes. 2009-09-22 10:24:07 -07:00
Micah Cowan 780d1e674b imported patch one-dot-twelve 2009-09-22 09:39:49 -07:00
Micah Cowan c794a7e826 Don't require Perl for user builds. 2009-09-04 10:16:49 -07:00
Micah Cowan ab4c3117d1 Rearrange SOURCES order, add gettext.h for dist. 2009-09-03 09:43:59 -07:00
Micah Cowan b014f8fae9 Improved exit status handling. 2009-08-27 23:08:58 -07:00
Micah Cowan ba909b24ec Add dependency for version.c on configure.ac. 2009-07-05 11:09:59 -07:00
Micah Cowan efd514c825 Fixes for when IRIs are disabled. 2009-07-03 22:36:14 -07:00
Micah Cowan 9ef8e738a4 Make sure we link against libiconv when necessary. 2009-07-03 13:04:51 -07:00
Steven Schubiger af100a3c3e Generate build_info.c automatically. 2009-07-01 23:59:57 +02:00
Micah Cowan 4f3dd68173 Merge with mainline. 2009-06-25 01:14:11 -07:00
Micah Cowan 259c560166 Make distcheck happy. 2009-06-14 01:41:44 -07:00
Micah Cowan 1cc32c3014 Fix unportable echo -n. 2009-04-20 10:37:27 -07:00
Micah Cowan 090f1596ae Automated merge. 2008-08-28 01:21:59 -07:00
Micah Cowan 123f5c3966 Dependency improvements (but still needs some work). 2008-08-22 17:14:31 -07:00
Saint Xavier b30a0dd817 Automated merge. 2008-07-20 21:45:09 +02:00
Micah Cowan 54df044c06 Fix merge of src/Makefile.am 2008-07-11 16:36:09 -07:00
Micah Cowan 2e2ac6ad2f Merge current tip with CSS stuff. 2008-07-11 16:30:51 -07:00
Saint Xavier d3007f1b3a Automated merge. 2008-06-26 18:10:16 +02:00
Micah Cowan 8aef7c1f04 version.c string token concatenation. 2008-06-22 11:39:13 -07:00
Saint Xavier ed558a83f6 The prefered way is to avoid #ifdef flooding, so take it that way. Introduce iri.c and iri.h for achieving it 2008-06-19 22:07:03 +02:00