Commit Graph

30 Commits

Author SHA1 Message Date
15ba1db248 Update copyrights 2023-08-31 12:57:30 +02:00
7f2db0c398 Fix status code for 5xx errors
* src/wget.c (process_response_header): Set EXIT_STATUS_REMOTE on 5xx.
* tests/test-i-https.c: New test to check 503 behavior.
* tests/test-wget-1.c: Likewise.
2022-07-01 18:19:42 +02:00
3dc7f71098 Update copyright year 2022-02-25 17:46:43 +01:00
22162f82b2 Update copyright year 2021-01-22 21:58:38 +01:00
59d9ecd9c0 * Update copyright year to 2020 2020-01-10 00:33:02 +01:00
5d72533570 Fix license of all tests
All the tests in tests/ are part of Wget2 the binary, not libwget. Fix
the license and copyright information accordingly.

* tests/libtest.c: libwget -> Wget. LGPLv3+ -> GPLv3+
* tests/test--accept.c: Same
* tests/test--filter-mime-type.c: Same
* tests/test--follow-tags.c: Same
* tests/test--https-enforce-hard1.c: Same
* tests/test--https-enforce-hard2.c: Same
* tests/test--https-enforce-hard3.c: Same
* tests/test--https-enforce-soft1.c: Same
* tests/test--https-enforce-soft2.c: Same
* tests/test--https-enforce-soft3.c: Same
* tests/test--page-requisites.c: Same
* tests/test--post-file.c: Same
* tests/test--save-content-on.c: Same
* tests/test--spider-r.c: Same
* tests/test-E-k.c: Same
* tests/test-auth-basic.c: Same
* tests/test-auth-digest.c: Same
* tests/test-bad-chunk.c: Same
* tests/test-base.c: Same
* tests/test-c-r.c: Same
* tests/test-chunked.c: Same
* tests/test-compression.c: Same
* tests/test-cut-dirs.c: Same
* tests/test-cut-get-vars.c: Same
* tests/test-directory-clash.c: Same
* tests/test-ftp.c: Same
* tests/test-ftps.c: Same
* tests/test-gpg-bad.c: Same
* tests/test-gpg-invalid.c: Same
* tests/test-gpg-missing.c: Same
* tests/test-gpg-save-failed.c: Same
* tests/test-gpg-styles.c: Same
* tests/test-gpg-valid.c: Same
* tests/test-gpg-verify-no-file.c: Same
* tests/test-gzip.c: Same
* tests/test-i-http.c: Same
* tests/test-i-https.c: Same
* tests/test-idn-cmd.c: Same
* tests/test-idn-meta.c: Same
* tests/test-idn-robots.c: Same
* tests/test-include-and-exclude-directories.c: Same
* tests/test-iri-disabled.c: Same
* tests/test-iri-forced-remote.c: Same
* tests/test-iri-list.c: Same
* tests/test-iri-percent.c: Same
* tests/test-iri-subdir.c: Same
* tests/test-iri.c: Same
* tests/test-k.c: Same
* tests/test-limit-rate-http2.c: Same
* tests/test-limit-rate.c: Same
* tests/test-meta-robots.c: Same
* tests/test-metalink.c: Same
* tests/test-np.c: Same
* tests/test-ocsp-server.c: Same
* tests/test-ocsp-stap.c: Same
* tests/test-p-nc.c: Same
* tests/test-parse-css.c: Same
* tests/test-parse-html-css.c: Same
* tests/test-parse-rss.c: Same
* tests/test-plugin-dummy.c: Same
* tests/test-plugin-failure.c: Same
* tests/test-plugin-interception.c: Same
* tests/test-plugin-nonexistance.c: Same
* tests/test-plugin.c: Same
* tests/test-post-handhshake-auth.c: Same
* tests/test-redirection.c: Same
* tests/test-restrict-ascii.c: Same
* tests/test-robots.c: Same
* tests/test-stats-dns.c: Same
* tests/test-stats-ocsp.c: Same
* tests/test-stats-server.c: Same
* tests/test-stats-site.c: Same
* tests/test-stats-tls.c: Same
* tests/test-timestamping.c: Same
* tests/test-unlink.c: Same
* tests/test-wget-1.c: Same
2019-11-02 16:10:19 +01:00
4b9edbad2d Update Copyright statements to be compatible with update-copyright module 2019-09-10 23:41:56 +02:00
a4dac96cf3 Update cfg.mk. Add comments for future
* cfg.mk: Multiple changes.
  (sc_GPL_version): Don't exclude all files when only one has a parsing
  issue
  (sc_po_check): Tests should always output English. Their output is for
  developers, not users
  (sc_prohibit_magic_number_exit): tests/test-plugin.c has a parsing
  issue that has been reported to gnulib. Others should be checked.
  (sc_trailing_blank): Fixed the relevant files instead of ignoring them
  (sc_two_space_separator_in_usage): Doesn't seem to trigger on removal
  (sc_prohibit_empty_lines_at_EOF): Same
  (sc_prohibit_sprintf): Same
  (sc_prohibit_printf): Re-arrange within file
  (sc_prohibit_free): Same
  (sc_prohibit_alloc): Same
  (sc_gettext_printf): Same
* docs/DoxygenLayout.xml: Remove trailing whitespaces
* docs/libwget.doxy.in: Same
* tests/libtest.c: Don't internationalize test suite strings
* tests/test-*.c: Use EXIT_FAILURE and EXIT_SUCCESS instead of 1 and 0
2019-09-10 23:02:05 +02:00
a22040b427 OpenSSL: Fix CRL checking
Check CRLs properly on the OpenSSL backend. CRLs were previously bypassed
because OpenSSL's internal certificate verification function was being overridden.

We need to provide our own verification callback for HPKP and OCSP, but this callback is now
introduced later in the verification chain, so that it does no longer override OpenSSL's checks.

This commit also re-enables a CRL test on OpenSSL, which would previously only run on the GnuTLS backend.

* libwget/ssl_openssl.c (openssl_init): Register verification callback, rather than revocation one.
  (_openssl_revocation_check_fn): Adhere to verification callback interface.
* tests/test-i-https.c: Enable CRL test for OpenSSL (but keep it disabled for wolfSSL)

Signed-off-by: Ander Juaristi <a@juaristi.eus>
2019-09-02 16:16:18 +02:00
05399bbf69 * tests/test-i-https.c: CRL test only for GnuTLS 2019-08-29 22:36:35 +02:00
38f577ebaa Making failing tests work on Second Pass
* tests/test--https-enforce-soft3.c:
* tests/test-bad-chunk.c:
* tests/test-chunked.c:
* tests/test-limit-rate.c:
* tests/test-post-handshake-auth.c: Skipped for Second Pass

* tests/test-i-https.c: Added '--no-ca-certificate' in options for expected failure for h2

* tests/test-idn-cmd.c:
* tests/test-idn-meta.c:
* tests/test-idn-robots.c: Dynamic port replacement for http/https proxies

* tests/test-iri.c:
* tests/test-parse-css.c:
* tests/test-parse-html-css.c: Dynamic port replacement for hostname
2019-07-29 19:18:06 +00:00
9f0fc8124e * tests/test-i-https.c: Skip CRL test for WolfSSL 2019-06-04 13:08:30 +02:00
cdb3600791 Update copyrigght to 2019 2019-01-02 12:42:53 +01:00
3688ffb941 Update copyright to 2018 2018-04-30 20:52:11 +02:00
615bef51e9 Use Feature Flags to SKIP unsupported tests
* tests/libtest.{c,h}: Add support for feature flags during test
startup. Check if Wget2 is compiled with the feature and conditionally
SKIP the tests
* tests/test-*.c: Pass the right feature flags for each test. MHD for
HTTP, FTP for FTP, IDN and PLUGIN when applicable
2017-09-18 11:28:40 +02:00
c6ee3d79ad Fix syntax-check 'sc_prohibit_have_config_h'
* cfg.mk: Remove sc_prohibit_have_config_h from local-checks-to-skip
* libwget/*.c: Include <config.h> unconditionally
* src/*.c: Likewise
* tests/*.c: Likewise
2017-04-30 22:01:34 +02:00
b4e151272c Fix VPATH issue for test suite
* tests/Makefile.am: Set SRCDIR to $(abs_srcdir)
* tests/libtest.c: Remove '../' in front of SRCDIR
* tests/test-i-https.c: Likewise

Reported-by: Akash Rawal
2017-03-30 11:53:03 +02:00
ec396c577f Fix URLs to HTTPS where possible 2017-02-28 15:31:30 +01:00
dd3c2f63b2 Updated copyright year for all relevant files 2016-01-25 13:06:21 +01:00
35a2a3a07c Skip HTTPS tests when no HTTPS available
* tests/test-i-https.c: Skip test when no HTTPS available
2016-01-07 15:10:05 +01:00
0f8e49128a Transfer copyright to Free Software Foundation, Inc. 2015-09-22 11:50:06 +02:00
c6b0e461a1 Transform Mget into Wget 2015-09-19 22:54:38 +02:00
0821d67313 Fix filename when charset conversion fails #2 2015-08-28 16:05:02 +02:00
a7d9d4fcf3 Add FTPS server to test suite 2015-07-11 10:01:36 +02:00
42bc281945 fixed Mget return value for HTTPS failures 2015-02-24 10:52:22 +01:00
4cb4e8930e updated tests/certs (old certs expired on 11.2.2015) 2015-02-22 18:34:30 +01:00
3c9580bf2e fix loading/saving OCSP cache 2015-01-09 12:38:00 +01:00
f7ed86f044 make HTTPS tests work with GnuTLS 2.12 2014-02-16 21:09:49 +01:00
3e66d70ffc fixed HTTPS testing to succeed distcheck 2014-02-14 16:56:38 +01:00
c52a20c716 added HTTPS server code for the test suite 2014-02-12 17:12:50 +01:00