7504915fe1
Add markdown files to online docs
...
* .gitlab-ci.yml: Create docs with Debian unstable.
* docs/Makefile.am: Create wget2_doxygen.md.
* docs/libwget.doxy.in: Update to doxygen 1.9.1,
add *.md files, exclude wget2.md.
docs/wget2.md is Github flavored markdown - Doxygen doesn't
render it very well.
2022-02-27 19:22:08 +01:00
374d5d6183
* gitlab-ci.yml: Switch off git CA verification on FreeBSD globally
2022-02-27 18:19:25 +01:00
f61d7ec4d5
* gitlab-ci.yml: Switch off git CA verification on FreeBSD
2022-02-27 18:16:30 +01:00
64234eeef2
* libwget/http.c (wget_http_get_response_cb): Extend error messages with URL
2022-02-27 18:12:03 +01:00
b3fb1a3758
* cfg.mk: Skip sc_indent in 'make syntax-check'
2022-02-25 19:17:39 +01:00
2370be9273
* libwget/ssl_openssl.c (print_openssl_time): Use _() around error message
2022-02-25 19:17:10 +01:00
215facd4e2
Fix storage files in help text and in the docs
...
* docs/wget2.md: Fix ~/.wget-* to $XDG_DATA_HOME/wget/.wget-*
* src/options.c: Likewise.
2022-02-25 19:02:44 +01:00
336a22b1ac
Fix copyright statements
2022-02-25 17:56:49 +01:00
3dc7f71098
Update copyright year
2022-02-25 17:46:43 +01:00
95c1f90edd
* libwget/dns.c (wget_dns_cache_ip): Put '' around host/ip in error message
2022-02-20 19:14:46 +01:00
be4e2deaf9
Fix -k/--convert-links fragment
...
* src/wget.c (convert_link_file_only): Use wget_debug_printf instead of wget_info_printf,
(convert_links): Add fragment.
* tests/test-k.c: Add fragment to test.
2022-02-20 19:05:46 +01:00
72f48aaa1f
Properly escape URLs with -k/--convert-links
...
* src/wget.c (convert_link_whole): Use wget_iri_escape_path() instead of wget_buffer_strcat().
* tests/test-k.c (main): Add test of URL with query part including escaped characters.
2022-02-20 18:32:54 +01:00
954c3c19b6
* tests/test--*.c: Rename to test-*.c
2022-02-19 18:44:50 +01:00
20a6046fca
Fix issue reported by scan-build
...
* include/wget/wget.h: /// -> //.
* libwget/netrc.c (unescape_password): Check wget_malloc() return against NULL.
* libwget/xml.c (wget_xml_parse_file): Likewise.
2022-02-19 14:35:40 +01:00
f9491cae37
* unit-tests/test.c (test_cookies): Fix false reporting of a PSL error
2022-02-19 13:44:17 +01:00
66d24458d0
Fix --directory-prefix with --content-disposition
...
* src/blacklist.c (get_local_filename): Remove static from definition.
* src/wget_blacklist.h (get_local_filename): Add declaration.
* src/wget.c (process_response): Use get_local_filename() to process
the filename from Content-Disposition,
(get_header): Likewise.
* tests/Makefile.am: Add new test file test-directory-prefix.c.
* tests/test-directory-prefix.c: New test file.
2022-02-18 19:57:14 +01:00
97afd2138d
Allow spaces and \ escaping in passwords in .netrc
...
This is Wget1.x compatible.
* docs/wget2.md: Document the new behavior.
* libwget/netrc.c (wget_netrc_db_load): Amended the code to allow \ and "".
* unit-tests/test.c (test_netrc): Add tests.
2022-02-13 19:27:42 +01:00
9d37263609
* src/wget.c (prepare_file): Use wget_strdup instead of wget_asprintf
2022-01-23 19:00:45 +01:00
1c84c4127b
Fix obscure Windows (Win11) recv() issue (returns 0 without a reason)
...
* libwget/http.c (wget_http_get_response_cb): Continue HTTP/2 loop if recv()
return 0.
Fixes https://github.com/rockdaboot/wget2/issues/256
2022-01-21 17:57:46 +01:00
849b54eeed
* libwget/http.c (wget_http_get_response_cb): Amend debug output [skip ci]
2022-01-19 18:41:33 +01:00
8908e8f3b0
* contrib/mingw.static: Add build instructions for zlib-ng [skip ci]
2022-01-19 17:51:11 +01:00
c1bcb3d356
* contrib/mingw.static: Add build instructions for nghttp2 [skip ci]
2022-01-19 14:25:12 +01:00
7e11dfc3b0
* unit-tests/test.c (test_cookies): Check wget_cookie_db_load_psl() return value
2022-01-18 11:15:44 +01:00
08d1e96681
* src/options.c: Unlink output document when --unlink is given
2022-01-09 13:55:08 +01:00
d1ff6143f7
WolfSSL: Fix buffer overflow in SHA512 hashing
...
* libwget/hashfile.c (wget_hash_deinit, WOLFSSL): Include wolfssl/options.h.
2022-01-09 13:44:18 +01:00
7846a3d6c5
Fix deflate decompression when server omits the header
...
* libwget/decompressor.c (gzip_decompress): Retry decompression without header
2022-01-07 12:25:07 +01:00
104ea7431d
* libwget/Makefile.am: Remove -no-whole-archive (due to the previous commit reversion)
2022-01-03 14:27:56 +01:00
89b45801f8
Revert "build: Use -Wl,--no-whole-archive"
...
This reverts commit acfa50d31c .
2022-01-03 14:21:45 +01:00
54bbe8e12d
OpenSSL: OCSP: Be more realistic with update times
2022-01-02 14:26:25 +01:00
55de5534d9
* gnulib: Update due to busybox sed issue
2022-01-02 14:16:33 +01:00
911fb791fd
* .gitlab-ci.yml: Use Debian testing for the pages runner
2022-01-01 20:05:31 +01:00
daba3a2094
* libwget/ssl_wolfssl.c: Comment out unneeded code
2022-01-01 19:02:31 +01:00
d3fcdf51ee
* libwget/ssl_wolfssl.c (wget_ssl_open): Fix memory leak
2022-01-01 18:42:54 +01:00
c5e393f818
* tests/valgrind-suppressions: Suppress glibc false positive in dynnamic loading
2022-01-01 18:42:06 +01:00
974d1f1dbc
* tests/libtest.c (wget_test): Add --gen-suppressions=all to valgrind options
2022-01-01 18:41:23 +01:00
dde1956c2c
* gnulib: Update
2022-01-01 18:08:02 +01:00
d563c363b1
* .gitlab-ci.yml: Use DEBIAN_TESTING_BUILD for Full+VPATH/Debian
2022-01-01 18:04:22 +01:00
1d260ecfef
Add support for unquoted HTML attribute values
...
* libwget/xml.c (getHTMLValue): New function.
(getValue): Call getHTMLValue if parsing HTML.
* tests/test-base.c: Use an unquoted HREF value to trigger the new code.
2022-01-01 17:55:36 +01:00
8c0d48fc6a
* libwget/ssl_gnutls.c (check_ocsp_response): Print issue and update time
2022-01-01 17:38:48 +01:00
da11916b57
* libwget/ssl_openssl.c: Code cleanup
2022-01-01 15:44:35 +01:00
8019021604
* libwget/ssl_openssl.c (check_ocsp_response): Fix OCSP checks
2022-01-01 15:27:47 +01:00
f84b838ade
* libwget/ssl_openssl.c: Use SHA-1 for OCSP signature
2021-12-30 19:17:59 +01:00
5c38bb0a25
* libwget/ssl_openssl.c: Continue after OCSP failed other than REVOKED
2021-12-30 19:03:29 +01:00
2b26d53b8d
* libwget/ssl_openssl.c (read_ocsp_uri_from_certificate): Free string stack after use
2021-12-30 18:50:19 +01:00
8e2589030d
* libwget/ssl_openssl.c (read_ocsp_uri_from_certificate): Rewrite implementation of OCSP URI retrieval
2021-12-30 17:23:08 +01:00
1a0d1de4de
* .gitlab-ci.yml: Use Debian stable instead of Debian stretch
2021-12-30 16:47:44 +01:00
408f2220c1
* libwget/ssl_openssl.c (check_cert_chain_for_ocsp): Fix number of ignored OCSP responses
2021-12-30 16:41:53 +01:00
d93f7ff71a
openssl: Do not check max time in stapled OCSP
2021-12-30 12:28:13 +01:00
0945d4d6a2
* src/utils.c: Enable debug logs if mkdir() fails, except for errno=EEXIST
2021-12-29 13:28:16 +01:00
78b0caa472
* src/utils.c: Reduce debugging for calls to mkdir()
2021-12-29 13:20:18 +01:00