Commit Graph

38 Commits

Author SHA1 Message Date
abaa0f6b66 Update POTFILES 2023-11-18 18:45:35 +00:00
368deb9fcc Update POTFILES.in 2021-01-10 19:40:17 +01:00
da54466d7b SSL/TLS: Add OpenSSL support
* configure.ac: Add --with-ssl=[no,openssl,gnutls], remove --without-gnutls
* libwget/Makefile.am: Add ssl_openssl.c
* libwget/ssl_openssl.c: New file
* po/POTFILES.in: Add libwget/ssl_openssl.c
2019-08-29 22:36:35 +02:00
1cd8338171 * libwget/netrc.c: Code cleanup 2019-08-15 11:08:13 +02:00
59710768c6 Split hpkp.c into hpkp_db.c, hpkp.c and hpkp.h
* libwget/Makefile.am: Add hpkp.h and hpkp_db.c
* libwget/hpkp.c: Move HPKP database code to hpkp_db.c
* libwget/hpkp.h: New file
* libwget/hpkp_db.c: New file
2019-08-14 17:44:50 +02:00
b587b666ae Split cookie.c into cookie_parse.c, cookie.c and cookie.h
* libwget/Makefile.am: Add cookie.h and cookie_parse.c
* libwget/cookie.c: Move cookie parsing code to cookie_parse.c
* libwget/cookie.h: New file
* libwget/cookie_parse.c: New file
2019-08-14 17:44:50 +02:00
5230e1d165 Rewrite Site statistics --stats-site
* fuzz/Makefile.am: Remove ../src/stats_site.o
* include/wget/wget.h: Remove wget_stats_type_t
* po/POTFILES.in. Remove src/stats.c
* src/Makefile.am: Remove stats_site.c
* src/options.c (parse_stats_all): Remove site stats code,
  (init): Add DNS stats code,
  (deinit): Cleanup dns stats code
* src/stats.c: Remove file
* src/stats_site.c: iFix for new stats code
* src/wget.c (main): stats_print -> site_stats_print,
  (add_statistics): config.stats_site -> config.stats_site_args,
  (process_response): Likewise
* src/wget_options.h (struct config): Remove stats_site, add stats_site_args
* src/wget_stats.h: Remove stats_opt_t,
  remove stats_print_func_t,
  remove stats_callback_setter_t,
  remove struct stats_opts,
  remove stats_site_opts,
  rename stats_init -> site_stats_init,
  rename stats_exit -> site_stats_exit,
  rename stats_print -> site_stats_print
* unit-tests/Makefile.am: Remove ../src/stats.o
2019-06-21 15:43:34 +02:00
b6c2f5f75c Put resolver/dns code into own source file
* docs/Makefile.am: Add libwget-dns.3 man page
* examples/batch_loader.c: Remove call to wget_tcp_set_dns_timeout()
* examples/check_url_types.c: Use wget_dns_set_timeout()
* include/wget/wget.h: Add wget_dns_ API
* libwget/Makefile.am: Add dns.c
* libwget/dns.c: New file
* libwget/init.c: Use wget_dns_set_caching()
* libwget/net.c: Remove DNS functions
* libwget/net.h (wget_tcp_st): Add dns member
* po/POTFILES.in: Add libwget/dns.c
* src/options.c: Use new DNS API
* src/stats.c: Add some checks
* src/stats_dns.c: Use wget_dns_get_stats()
2019-06-21 13:10:47 +02:00
2c7634c051 Initial implementation of WolfSSL as TLS backend
* README.md: Mention WolfSSL
* configure.ac: Check for WolfSSL
* libwget/Makefile.am: Conditionally add WolfSSL to libwget
* libwget/ssl_wolfssl.c: New file with WolfSSL implementation
* po/POTFILES.in: Add libwget/ssl_wolfssl.c

./configure --without-gnutls --with-wolfssl
2019-06-04 13:07:20 +02:00
58588e7a48 Support XDG Desktop Specification for config files
Adds functionality to Wget2 to support the XDG Base Directory
Specification[1]. Also marks as deprecated the old location of the
config file.

* docs/wget2.md: Explicitly mark `$HOME/.wget2rc` as deprecated.
* po/potfiles.in: utils.c now has a translateable stirng
* src/options.c(read_config): Use bool instead of int
(get_config_files): Now takes config_home and user_home as input.
`user_home` is only temporary and will be removed once support for
~/.wget2rc is removed.
(get_xdg_data_home): Derives the location where the data files are to be
stored according to [1].
(get_xdg_config_home): Derives the location where the config files are
to be stored according to [1].
(init): Store all the data files in $XD_DATA_HOME
* src/wget.c(mkdir_path): Move function to utils.c
* src/utils.c(mkdir_path): Move function from wget.c. Can now handle
  both file and directory paths.
* src/utils.h: Add declaration for mkdir_path

[1]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
2019-03-26 22:31:12 +01:00
c3bca15ae1 * po/POTFILES.in: Add libwget/error.c 2018-08-21 12:01:30 +02:00
313c7725d7 * po/POTFILES.in: Remove libwget/html_url.c 2018-05-07 12:29:55 +02:00
Jay
847ffed69d error handling in XML parsing
* include/wget/wget.h: removed nonnull attribute and defined error code
* libwget/metalink.c: wget_metalink_parse returns null if XML is malformed
* libwget/xml.c: added coditions to detect malformed XML in parseXML
* po/POTFILES.in: localization support for metalink.c
2018-03-08 16:54:45 +01:00
a39519afbd Fix stats and add docs for stats
* docs/wget2.md: Extend docs for --stats-*
* include/wget/wget.h: Rename WGET_STATS_TLS_TCP_PROTO to WGET_STATS_TLS_HTTP_PROTO,
  add WGET_STATS_OCSP_STAPLING.
* libwget/ssl_gnutls.c: add stapling stats member, cleanup variables
* po/POTFILES.in: Remove rsrc/stats_server.c
* src/stats_dns.c: Cleanup
* src/stats_ocsp.c: Add stapling to stats
* src/stats_server.c: Cleanup
* src/stats_site.c: Rename STATS_SCHEME_* to STATS_METHOD_*
* src/stats_tls.c: Cleanup
* src/wget_stats.h: Remove memory alloc from NULL_TO_DASH()
2018-02-22 14:33:04 +01:00
ed20ef8ed4 Remove tree statistics
* docs/wget2.md: Remove 'tree' format from --stats-site
* po/POTFILES.in: Remove src/stats_site.c
* src/host.c: Remove host_docs, tree_docs
* src/job.c: Add a unique ID for each job
* src/stats.c: Remove TREE stuff
* src/stats_dns.c: Likewise
* src/stats_ocsp.c: Likewise
* src/stats_server.c: Likewise
* src/stats_tls.c: Likewise
* src/stats_site.c: Likewise,
  add site_stats_t, cleanup CSV and HUMAN output
* src/wget.c: Set job ID and ParentID, remove TREE stuff
* src/wget_host.h: Remove TREE stuff
* src/wget_job.h: add id and parent_id to struct JOB
* src/wget_stats.h: Add json_stats
* tests/stats-test-util.h: Remove TREE test
We decided to provide an external tool to generate TREE and other
formatted output from Wget2's CSV output.
2018-02-22 14:33:04 +01:00
0fa88ecc9d Move Site stats code to own source file 2018-02-22 14:33:03 +01:00
aa2bfc0365 * po/POTFILES.in: Remove lib/openat-die.c 2018-02-14 15:20:41 +01:00
75cab6754e Make strings translatable for error_printf()
* libwget/*.c: Likewise
* src/*.c: Likewise
* po/POTFILES.in: Add source files
2018-01-11 13:11:36 +01:00
a32662935e * po/POTFILES.in: Add src/stats.c 2018-01-10 21:50:05 +01:00
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
7601e5b8a8 * po/POTFILES.in: Add lib/regcomp.c 2017-12-04 14:40:34 +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
6215ea21ed * po/POTFILES.in: Add libwget/http_parse.c 2017-06-18 21:52:14 +02:00
2b92113606 * po/POTFILES.in: Update (syntax-check) 2017-04-29 19:57:51 +02:00
b231cf824d * po/POTFILES.in: libwget/compat.c -> libwget/strlcpy.c 2016-04-03 22:19:38 +02:00
da6ac3d144 Update po/POTFILES.in
* po/POTFILES.in: Add src/bar.c and src/options.c,
  Remove libwget/printf.c
2016-01-11 15:02:30 +01:00
c6b0e461a1 Transform Mget into Wget 2015-09-19 22:54:38 +02:00
2029cc5144 removed css_tokenizer.c from po/POTFILES.in 2014-10-07 20:40:18 +02:00
fa92cc7a23 fixed man page generation and make distcheck 2014-02-07 17:12:49 +01:00
77fc55e65e updated gettext 2014-02-03 11:19:59 +01:00
b755144959 fixed 'make distcheck' 2014-01-12 22:14:31 +01:00
c2a7f36dce fix po/POTFILES.in 2013-10-22 12:11:14 +02:00
2cae25b0fa update po/POTFILES.in 2013-10-22 12:08:17 +02:00
acb1872cd6 getstream.c example now handles Shoutcast metainfo 2013-04-07 21:54:27 +02:00
3ceeb36a47 fix make distcheck 2013-01-13 21:42:15 +01:00
3852fd508f more stuff moved into libmget 2013-01-11 17:58:47 +01:00
95f4251302 more stuff moved into libmget 2013-01-10 17:55:03 +01:00
0e4972eb53 more auto* stuff 2013-01-03 12:05:27 +01:00