Sun Feb 17 21:31:21 2002  Joe Orton  <joe@manyfish.co.uk>

	* ssl.c (fqdn_match): Removed test.

Sun Feb 17 20:32:16 2002  Joe Orton  <joe@manyfish.co.uk>

	* makekeys.sh: Create keypair for client cert.

	* ssl.c (do_ssl_response, any_ssl_request, all callers thereof):
	Better error handling.
	(serve_ccert, load_pem_ccert, keypw_prompt, load_pkcs12_ccert,
	fail_load_ccerts, client_cert_pem, client_cert_pkcs12): New
	functions.

Sun Feb 17 11:54:19 2002  Joe Orton  <joe@manyfish.co.uk>

	* basic.c (do_range): Factored out from
	get_range/fail_range_length.
	(get_range, fail_range_length): Use do_range.
	(fail_range_units, fail_range_notrange, fail_range_unsatify): New
	tests.

Sun Feb 17 11:36:00 2002  Joe Orton  <joe@manyfish.co.uk>

	* basic.c (get_range, fail_range_length): New functions.

Sat Feb 16 23:29:40 2002  Joe Orton  <joe@manyfish.co.uk>

	* xml.c: New file.

	* Makefile.in (DAV_TESTS): Add xml tests.

Sat Feb 16 15:26:27 2002  Joe Orton  <joe@manyfish.co.uk>

	* compress.c (do_fetch): Rename from fetch(); add 'expect_fail'
	paramater.  (fetch): Re-implement using do_fetch.
	(fail_trailing, fail_bad_csum, fail_truncate): New functions.

	* Makefile.in (trailing.gz, truncated.gz, badcsum.gz): New helper
	files.

Thu Feb 14 19:09:42 2002  Joe Orton  <joe@manyfish.co.uk>

	* request.c (everywhere): Simplify use of expect_response.

Thu Feb 14 19:05:48 2002  Joe Orton  <joe@manyfish.co.uk>

	* request.c (ignore_bad_headers): New function.

Mon Feb 11 22:06:40 2002  Joe Orton  <joe@manyfish.co.uk>

	* makekeys.sh: If the hostname command is clever enough to give
	FQDN, hostname, domainname, then create wildcard.cert; cert with a
	wildcard commonName.

	* ssl.c (wildcard_match): New function

Mon Feb 11 21:55:52 2002  Joe Orton  <joe@manyfish.co.uk>

	* ssl.c (any_ssl_request): Take session pointer, don't
	initialize here.  (DEFSESS): New macro.
	(everywhere): Use DEFSESS rather than passing pointer-to-
	session pointer.	

Mon Feb 11 20:44:44 2002  Joe Orton  <joe@manyfish.co.uk>

	* ssl.c (fqdn_match): Test for FQDN matching against non-qualified
	FQDN.
	(makekeys.sh): Create server cert with FQDN.

Sun Feb 10 12:36:55 2002  Joe Orton  <joe@manyfish.co.uk>

	* request.c (chunk_oversize): New function.

Sat Feb  9 21:12:47 2002  Joe Orton  <joe@manyfish.co.uk>

	* request.c (reason_phrase): New function.

Sat Feb  9 16:50:58 2002  Joe Orton  <joe@manyfish.co.uk>

	* request.c (read_timeout, hung_server): New functions.

Thu Feb  7 22:58:31 2002  Joe Orton  <joe@manyfish.co.uk>

	* ssl.c (cache_verify, no_verify, count_vfy): New functions.

Thu Feb  7 19:39:33 2002  Joe Orton  <joe@manyfish.co.uk>

	* ssl.c (any_ssl_request): Take server function as argument: all
	callers changed.
	(fail_ssl_request): Renamed from failreq; uses any_ssl_request.

Wed Feb  6 20:43:32 2002  Joe Orton  <joe@manyfish.co.uk>

	* ssl.c (load_ca): New function.

Wed Feb  6 20:36:15 2002  Joe Orton  <joe@manyfish.co.uk>

	* ssl.c (any_ssl_request): Make ca_cert and verify_fn arguments
	optional.
	(trustall): Removed function.
	(simple): Use the CA cert; no need for a verify function.
	(parse_cert): Don't give a CA cert, force use of verify function.
	(failreq): Bug fix, don't trust server cert as CA.
	(fail_wrongCN, fail_notvalid, fail_expired): Pass server cert
	as CA cert server cert is self-signed.

Tue Feb  5 20:33:42 2002  Joe Orton  <joe@manyfish.co.uk>

	* ssl.c (fail_untrusted_ca, fail_self_signed): New tests.
	(fail_serve): New function.
	(failreq, any_ssl_request): Take ca cert argument.
	(check_DNs, trustall, get_failures): Adjust for new verify
	callback interface.

Sat Feb  2 14:18:11 2002  Joe Orton  <joe@manyfish.co.uk>

	* ssl.c (do_ssl_response): Factored out from serve_ssl.
	(serve_ssl): Use do_ssl_response.
	(serve_scache, session_cache): New functions.

Thu Jan 31 21:09:58 2002  Joe Orton  <joe@manyfish.co.uk>

	* Makefile.in (ca-stamp): New target.

	* makekeys.sh: New helper script.

	* ssl.c (parse_cert, fail_wrongCN, fail_expired, fail_notvalid):
	New tests.
	(any_ssl_request, trustall, check_DNs, failreq): New auxiliaries.

Thu Jan 31 20:42:38 2002  Joe Orton  <joe@manyfish.co.uk>

	* wrongcn.pem, notvalid.pem, expired.pem, server.key: New files.

	* Makefile.in: Remove targets to generate certs.

Wed Jan 30 21:15:33 2002  Joe Orton  <joe@manyfish.co.uk>

	* Makefile.in (wrongcn.pem): New target.

Wed Jan 30 19:58:18 2002  Joe Orton  <joe@manyfish.co.uk>

	* string-tests.c: Updated for ne_buffer API change.

Sat Jan 26 11:23:34 2002  Joe Orton  <joe@manyfish.co.uk>

	* Makefile.in: Pick up appropriate TESTS, HELPERS from configure.
	(ssltests*, davtests*): Remove crud.

	* compress.c: Presume zlib support present if built.

Sun Jan 20 23:29:37 2002  Joe Orton  <joe@manyfish.co.uk>

	* ssl.c: New file.

	* Makefile.in (ssltests-no, ssltests-yes, server.pem, server.key):
	New targets.
	(check): Conditionally run SSL tests.

Sun Jan 20 13:20:56 2002  Joe Orton  <joe@manyfish.co.uk>

	* Makefile.in (davtests-no, davtests-yes): Separate test programs
	which require DAV support; only run if DAV is enabled.

	* Makefile.in (test): Pass SRCDIR env var through to run.sh.

	* run.sh: Pass SRCDIR as argv[1] to test programs.

	* compress.c (init): New function.  Use 'newsfn' global for
	filename of NEWS file.

Sun Jan 20 13:06:40 2002  Joe Orton  <joe@manyfish.co.uk>

	* Makefile.in: Fixes for VPATH build

Mon Jan 14 01:58:39 2002  Joe Orton  <joe@manyfish.co.uk>

	* basic.c (content_type): Add harsher charset handling tests.

Sun Jan 13 14:01:57 2002  Joe Orton  <joe@manyfish.co.uk>

	* lock.c (lock_timeout): Use make_session. 

	* acl.c (test_acl): Use make_session.

	* auth.c (basic, retries): Use make_session.

Sun Jan 13 14:01:13 2002  Joe Orton  <joe@manyfish.co.uk>

	* utils.c (make_session): New function.

Sun Jan 13 14:00:34 2002  Joe Orton  <joe@manyfish.co.uk>

	* basic.c (content_type): Rename ctype to ct; check if charset is
	unexpectedly set.

Sun Jan 13 13:58:07 2002  Joe Orton  <joe@manyfish.co.uk>

	* basic.c: New file.

	* Makefile.in: Add `basic' test suite.

Mon Jan  7 22:05:33 2002  Joe Orton  <joe@manyfish.co.uk>

	* Makefile.in: Don't pass CFLAGS to CC when linking.

Mon Jan  7 21:46:03 2002  Joe Orton  <joe@manyfish.co.uk>

	* lock.c: New file.

	* Makefile.in: Add 'lock' to TESTS, build lock.

Mon Jan  7 21:17:21 2002  Joe Orton  <joe@manyfish.co.uk>

	* skeleton.c: Add skeleton test suite.

Tue Jan  1 21:47:09 2002  Joe Orton  <joe@manyfish.co.uk>

	* Makefile.in: Use CPPFLAGS correctly.

Sun Dec  9 14:02:50 2001  Joe Orton  <joe@manyfish.co.uk>

	* string-tests.c (ONCMP): New macro.  (everywhere): Use it.
	(grow): Add ne_buffer_grow test.

Sun Dec  9 13:12:27 2001  Joe Orton  <joe@manyfish.co.uk>

	* string-tests.c (concat2, concat3): New ne_buffer_concat tests.

Sat Dec  1 18:35:29 2001  Joe Orton  <joe@manyfish.co.uk>

	* utils.c (any_request): Don't set the error context.

Sat Dec  1 12:21:48 2001  Joe Orton  <joe@manyfish.co.uk>

	* auth.c (retry_failure, retry_fail_cb, retry_fail_serve): New
	functions.

Tue Nov 27 21:24:22 2001  Joe Orton  <joe@manyfish.co.uk>

	* request.c (s_progress, provide_progress, send_progress): New
	functions.

Sun Nov 18 19:11:23 2001  Joe Orton  <joe@manyfish.co.uk>

	* auth.c (send_response): New function.  (auth_serve): Simplify
	using send_response.  (retry_serve, retry_cb, retries): New
	functions.

Sat Nov 17 22:32:29 2001  Joe Orton  <joe@manyfish.co.uk>

	* auth.c (auth_serve, basic): Simplify, use a persistent
	connection and any_request() to work with --disable-dav builds.

Sat Nov 17 22:30:43 2001  Joe Orton  <joe@manyfish.co.uk>

	* utils.c (any_request): New function.

Sun Oct 28 19:38:05 2001  Joe Orton  <joe@manyfish.co.uk>

	* Makefile.in: Use explicit link rules.

Fri Oct 26 20:08:33 2001  Joe Orton  <joe@manyfish.co.uk>

	* request.c (persist_timeout): Test behaviour when connection
	closes after between 1 and 10 requests.

Fri Oct 26 20:04:27 2001  Joe Orton  <joe@manyfish.co.uk>

	* utils.c (many_serve_string): New function.

Sun Oct  7 17:48:53 2001  Joe Orton  <joe@manyfish.co.uk>

	* utils.c: New file.

	* request.c (single_serve_string): Moved to utils.c.

	* Makefile.in: Link utils.o into all libtest.a. Move libtest.a
	into this directory.

Sun Oct  7 15:01:47 2001  Joe Orton  <joe@manyfish.co.uk>

	* request.c (persist, persist_timeout, serve_twice, is_alive): New
	functions.  (closed_connection): Avoid race condition.

Sat Oct  6 14:33:42 2001  Joe Orton  <joe@manyfish.co.uk>

	* request.c (prepare_request, finish_request): Renamed from
	make_request, destroy_request.  (skip_interim_1xx, skip_many_1xx,
	skip_1xx_hdrs): New functions.

Wed Oct  3 00:03:33 2001  Joe Orton  <joe@manyfish.co.uk>

	* request.c (fail_request): Optionally include a request body, and
	optionally presume the server runs "forever".  (all callers
	changed).  (serve_close, closed_connection): New function.

Sat Sep 29 14:08:16 2001  Joe Orton  <joe@manyfish.co.uk>

	* compress.c (fetch): Update for new decompression API.

Sat Sep 29 11:21:56 2001  Joe Orton  <joe@manyfish.co.uk>

	* compress.c: New file.

	* Makefile.in: Build compress test, and some its helpers.  Add
	-lneon to LIBS, and pick up NEON_CFLAGS.

Thu Sep 27 20:31:51 2001  Joe Orton  <joe@manyfish.co.uk>

	* utils.h: New file.

	* request.c: Moved ONREQ() into utils.h

Mon Aug 27 00:34:56 2001  Joe Orton  <joe@manyfish.co.uk>

	* regress.c: New file.

Mon Aug 27 00:33:13 2001  Joe Orton  <joe@manyfish.co.uk>

	* request.c (discard_request): Moved into common/child.c.
	(make_request, destroy_request): Convenience functions.
	(serve_non_http, not_http): New test.

Sun Jun 24 22:15:46 2001  Joe Orton  <joe@manyfish.co.uk>

	* test.[ch], child.[ch]: Moved into 'common' subdir.

	* Makefile.in: Updated likewise.

Tue Jun 19 22:00:06 2001  Joe Orton  <joe@manyfish.co.uk>

	* util-tests.c (parse_dates): Test date parsers.

Sun Jun 10 17:36:11 2001  Joe Orton  <joe@manyfish.co.uk>

	* request.c (infinite_headers, unbounded_headers): New test.

Sun Jun 10 16:38:53 2001  Joe Orton  <joe@manyfish.co.uk>

	* child.c [HAVE_PIPE]: Use a pipe between child and parent to know
	when the child is ready to accept connections.  Avoids boring
	sleep()ing.

Fri Jun  8 21:19:35 2001  Joe Orton  <joe@manyfish.co.uk>

	* tests.c (segv, main): Remove SEGV handler in favour of useful
	core dumps.

Mon Jun  4 01:15:52 2001  Joe Orton  <joe@manyfish.co.uk>

	* child.c (server_socket): Set socket family correctly.

Thu May 31 08:58:41 2001  Joe Orton  <joe@manyfish.co.uk>

	* util-tests.c (md5_alignment): New test for MD5 alignment issue
	on Sparc.

Thu May 31 00:40:43 2001  Joe Orton  <joe@manyfish.co.uk>

	* child.c (minisleep): Just sleep for a second anyway.

Thu May 31 00:19:16 2001  Joe Orton  <joe@manyfish.co.uk>

	* child.c (server_socket): Casts for bind and setsockopt arguments.

Thu May 31 00:02:21 2001  Joe Orton  <joe@manyfish.co.uk>

	* request.c (send_bodies): Test callback-provided request bodies.

Wed May 30 22:37:08 2001  Joe Orton  <joe@manyfish.co.uk>

	* tests.c (child_segv): New function.  (in_child): Install
	different SEGV handler.  (segv): Sleep so the re-raised SEGV
	signal gets handled and we dump core.

Wed May 30 19:24:32 2001  Joe Orton  <joe@manyfish.co.uk>

	* request.c (send_bodies): New test for sending request bodies.

Wed May 16 21:19:49 2001  Joe Orton  <joe@manyfish.co.uk>

	* request.c (expect_response): Renamed, fold together
	single_request and do_get_request.  (all callers changed)

Wed May 16 20:59:19 2001  Joe Orton  <joe@manyfish.co.uk>

	* request.c (construct_get, run_request): New functions.
	(fold_headers, fold_many_headers, multi_header): New tests.

Sat May 12 17:37:36 2001  Joe Orton  <joe@manyfish.co.uk>

	* server.c: Renamed from http-tests.c.

Sat May 12 17:35:05 2001  Joe Orton  <joe@manyfish.co.uk>

	* child.c (minisleep): New function.  (spawn_server, reap_server):
	New functions.  (server_child): Call in_child.

Sat May 12 17:33:57 2001  Joe Orton  <joe@manyfish.co.uk>

	* tests.c (main): Open two log files for debugging messages.
	(in_child): Switch to debug using child log.

Sat May 12 11:18:18 2001  Joe Orton  <joe@manyfish.co.uk>

	* tests.c (main): Call sock_init.  (segv): Re-raise SEGV signal
	after printing message.

Mon May  7 10:38:50 2001  Joe Orton  <joe@manyfish.co.uk>

	* request.c (chunk_syntax_1, chunk_syntax_2, chunk_syntax_3,
	chunk_syntax_4, chunk_syntax_5): Split down from chunk_syntax.

Mon May  7 10:37:38 2001  Joe Orton  <joe@manyfish.co.uk>

	* util-tests.c (base64): Update for ne_base64() changes.  Add
	tests for binary data.

Sun May  6 23:55:36 2001  Joe Orton  <joe@manyfish.co.uk>

	* tests.h (ON): Use global buffer 'on_err_buf'.  Make 'name'
	variable public.

Sun May  6 23:53:06 2001  Joe Orton  <joe@manyfish.co.uk>

	* request.c (single_serve_string): General version of
	single_serve_*.  (single_request): Pass in expected response body.
	(single_get_*): Use new single_request/single_serve_string.
	(chunk_syntax): Add some tests for chunk syntax.

Sun May  6 22:29:36 2001  Joe Orton  <joe@manyfish.co.uk>

	* child.c, child.h: New files, split down from request.c.

Sun May  6 21:53:28 2001  Joe Orton  <joe@manyfish.co.uk>

	* request.c (spawn_server): Sleep for a while to let the server
	get going.  (do_request): Use passed parameters when creating
	request.

Sun May  6 21:34:27 2001  Joe Orton  <joe@manyfish.co.uk>

	* request.c (spawn_server): Use callback to handle the server side
	of connection.  (single_request): New function.  (single_get_eof,
	single_get_clength, single_get_chunked): New functions.
	(reap_server): New function.

Sun May  6 20:02:32 2001  Joe Orton  <joe@manyfish.co.uk>

	* request.c: New file.

Wed May  2 12:08:53 2001  Joe Orton  <joe@manyfish.co.uk>

	* string-tests.c (token1, token2, nulls, empty, quoted, badquotes,
	shave, combo): New tests for ne_token and ne_shave.

Wed May  2 12:04:52 2001  Joe Orton  <joe@manyfish.co.uk>

	* string-tests.c: Updated for sbuffer -> ne_buffer changes.

Wed May  2 01:08:45 2001  Joe Orton  <joe@manyfish.co.uk>

	* Makefile.in (check): Alias for test goal.

Wed May  2 01:08:36 2001  Joe Orton  <joe@manyfish.co.uk>

	* tests.c (segv): Disable SEGV handler once handling it.

Sun Apr 29 14:57:59 2001  Joe Orton  <joe@manyfish.co.uk>

	* uri-tests.c (slash): Check behaviour of passing zero-length URI.

Sun Apr 29 13:43:59 2001  Joe Orton  <joe@manyfish.co.uk>

	* Makefile.in (clean): New target.  (libtest.a): Depend on libneon
	to force rebuilds when necessary.  (all): Build but don't test.

Sun Apr 29 13:41:13 2001  Joe Orton  <joe@manyfish.co.uk>

	* util-tests.c: Add status line with leading garbage.

Sun Apr 29 13:39:53 2001  Joe Orton  <joe@manyfish.co.uk>

	* util-tests.c (status_lines): Add some tests for invalid status
	lines too.

Sun Apr 29 13:38:31 2001  Joe Orton  <joe@manyfish.co.uk>

	* tests.c (main): Use basename(argv[0]) as suite name.  Fail if no
	tests are in the functions vector.

Sun Apr 29 11:06:45 2001  Joe Orton  <joe@manyfish.co.uk>

	* tests.c (segv): New function.  (main): Add SIGSEGV handler.

Fri Apr 27 00:00:12 2001  Joe Orton  <joe@manyfish.co.uk>

	* util-tests.c (base64): New test.

Thu Apr 26 22:39:44 2001  Joe Orton  <joe@manyfish.co.uk>

	* uri-tests.c (just_hostname, just_path, null_uri): New tests.

Thu Apr 26 22:03:58 2001  Joe Orton  <joe@manyfish.co.uk>

	* util-tests.c (md5): Test of MD5 functions.

Mon Apr 23 23:08:02 2001  Joe Orton  <joe@manyfish.co.uk>

	* http-tests.c (simple_head): Add HEAD test.

Mon Apr 23 22:49:52 2001  Joe Orton  <joe@manyfish.co.uk>

	* http-tests.c (simple_get): Check for EOF after reading response
	body of HTTP/1.0 GET request.

	(null_resource): New function, test for 404 on null resource.


