1Mon Jul 5 10:59:17 2004 Joe Orton <joe@manyfish.co.uk> 2 3 Add regression tests for trio of ne_compress.c bugs: 4 5 * compress.c (reader): Validate that a size=0 call comes only 6 after the expected response data, and use struct string. 7 (do_fetch): Pass a struct string to reader and adapt for failure 8 logic. 9 (auth_cb, retry_compress_helper, retry_compress, 10 retry_notcompress): New tests. 11 12Sun Jul 4 21:55:00 2004 Joe Orton <joe@manyfish.co.uk> 13 14 * utils.c (serve_sstring_slowly, serve_sstring): Moved from 15 sockets.c, renamed from serve_string_slowly, serve_sstring. 16 17 * sockets.c: All callers updated. 18 19Tue May 18 21:00:07 2004 Joe Orton <joe@manyfish.co.uk> 20 21 * ssl.c (fail_ssl_request): 22 * basic.c (do_range): Fix false negatives from gcc 23 -Wformat-security. 24 25Sun May 2 21:16:45 2004 Joe Orton <joe@manyfish.co.uk> 26 27 * util-tests.c (regress_dates): Add regression tests. 28 29Wed Apr 14 10:45:43 2004 Joe Orton <joe@manyfish.co.uk> 30 31 * props.c (regress, patch_regress): Add regression tests for 32 CAN-2004-0179 issues. 33 34Sun Feb 15 12:34:13 2004 Joe Orton <joe@manyfish.co.uk> 35 36 * makekeys.sh, openssl.conf: Create new utf8subj.cert, 37 bmpsubj.cert, t61subj.cert certificates. 38 39 * ssl.c (dname_readable): Test that ne_ssl_readable_dname always 40 gives back UTF-8. 41 42Thu Nov 13 20:33:44 2003 Joe Orton <joe@manyfish.co.uk> 43 44 * request.c (no_body_205): New test. 45 46Sat Oct 25 00:11:29 2003 Joe Orton <joe@manyfish.co.uk> 47 48 * ssl.c (fail_truncated_eof): Remove test. 49 50Tue Oct 21 20:29:46 2003 Joe Orton <joe@manyfish.co.uk> 51 52 * ssl.c (fail_tunnel, proxy_tunnel): Fix non-C89 code, 53 Radu Greab. 54 55Thu Oct 9 19:42:13 2003 Joe Orton <joe@manyfish.co.uk> 56 57 * socket.c (ssl_closure): Fix occassional spurious errors. 58 59Tue Oct 7 20:23:35 2003 Joe Orton <joe@manyfish.co.uk> 60 61 * ssl.c (ssl_server): Handle several requests if required. 62 (tunnel_header): New function. 63 (serve_tunnel): Fail with a 500 if the request included 64 an Authenticate header; take an ssl_server_args pointer 65 as userdata. 66 (fail_tunnel, proxy_tunnel): Adjust accordingly. 67 (apt_post_send): Adjust for 401 check. 68 (auth_tunnel_creds): New test. 69 70Wed Oct 1 00:30:25 2003 Joe Orton <joe@manyfish.co.uk> 71 72 * ssl.c (simple_sslv2): Regression test. 73 (ssl_server): Create SSL_CTX locally; optionally create an 74 SSLv2-only server. 75 (init_ssl): Do not create the SSL_CTX. 76 77Wed Sep 17 19:57:22 2003 Joe Orton <joe@manyfish.co.uk> 78 79 * ssl.c: Refactor around single SSL server function. 80 (ssl_server): Combination of do_ssl_response and old serve_* 81 functions. All callers updated. 82 83Sun Sep 14 12:27:22 2003 Joe Orton <joe@manyfish.co.uk> 84 85 * socket.c (write_reset, read_reset): Skip if no RESET was 86 returned. 87 88Sun Sep 14 11:01:08 2003 Joe Orton <joe@manyfish.co.uk> 89 90 * Makefile.in: Fix building the 'resolve' tool. 91 92Sat Sep 6 12:29:53 2003 Joe Orton <joe@manyfish.co.uk> 93 94 * makekeys.sh, openssl.conf: Generate altname5.cert with an IPv4 95 address in the subjectAltName attribute. 96 97 * ssl.c (ipaddr_altname): Test for IPv4 address in subjectAltName. 98 99Sat Sep 6 12:28:55 2003 Joe Orton <joe@manyfish.co.uk> 100 101 * Makefile.in: Clear the SUFFIXES list; use standard make syntax; 102 fix build of 'basic' on some platforms. 103 104Sat Aug 30 18:59:24 2003 Joe Orton <joe@manyfish.co.uk> 105 106 * Makefile.in: Rewrite to use libtool to build object files and 107 libtest. 108 109 * run.sh: Don't set LD_LIBRARY_PATH. 110 111Wed Jul 23 23:25:39 2003 Joe Orton <joe@manyfish.co.uk> 112 113 * compress.c (do_fetch): Check for response truncation 114 for success case. 115 (fail_corrupt1, fail_corrupt2): New tests. 116 117Sat Jun 21 12:59:49 2003 Joe Orton <joe@manyfish.co.uk> 118 119 * request.c (versions): Fix and enable test. 120 121Wed Jun 18 20:09:59 2003 Joe Orton <joe@manyfish.co.uk> 122 123 * request.c (is_alive): Adapt for new socket API. 124 125 * socket.c (do_connect, addr_connect): Likewise. 126 127Tue May 20 20:14:03 2003 Joe Orton <joe@manyfish.co.uk> 128 129 * ssl.c (cert_fingerprint): Fix for VPATH builds. 130 131Sat May 10 17:13:05 2003 Joe Orton <joe@manyfish.co.uk> 132 133 * xml.c (matches): Add regression test for prefix matching bug 134 fixed in 0.18.0. 135 136Sat Apr 26 19:22:29 2003 Joe Orton <joe@manyfish.co.uk> 137 138 * request.c (any_te_header): New function. 139 140Wed Apr 23 18:24:19 2003 Joe Orton <joe@manyfish.co.uk> 141 142 * stubs.c (stub_ssl): Test ne_ssl_cert_import, ne_ssl_cert_export, 143 ne_ssl_cert_write stubs. 144 145Wed Apr 23 14:05:38 2003 Joe Orton <joe@manyfish.co.uk> 146 147 * ssl.c (read_write): New function. 148 149Wed Apr 23 00:34:44 2003 Joe Orton <joe@manyfish.co.uk> 150 151 * ssl.c (cache_cert, verify_cache): New functions. 152 153Wed Apr 23 00:14:14 2003 Joe Orton <joe@manyfish.co.uk> 154 155 * ssl.c (any_ssl_request): Free the cert after passing it to 156 ne_ssl_trust_cert. 157 158Tue Apr 22 23:24:33 2003 Joe Orton <joe@manyfish.co.uk> 159 160 * string-tests.c (unbase64): Improve coverage. 161 162Tue Apr 22 20:25:15 2003 Joe Orton <joe@manyfish.co.uk> 163 164 * ssl.c (import_export, flatten_pem, cert_compare): New functions. 165 166Tue Apr 22 18:32:43 2003 Joe Orton <joe@manyfish.co.uk> 167 168 * string-tests.c (b64_check, unbase64): New functions. 169 (base64): Use b64_check. 170 171Tue Apr 22 15:54:04 2003 Joe Orton <joe@manyfish.co.uk> 172 173 * string-tests.c (base64): Test decoding binary data which 174 contains bytes with the high bit set. 175 176Tue Apr 22 14:18:03 2003 Joe Orton <joe@manyfish.co.uk> 177 178 * string-tests.c (base64): Moved here... 179 180 * util-tests.c (base64): ...from here. 181 182Tue Apr 22 13:17:48 2003 Joe Orton <joe@manyfish.co.uk> 183 184 * ssl.c (just_serve_string, fail_not_ssl): New functions. 185 186Tue Apr 22 13:09:13 2003 Joe Orton <joe@manyfish.co.uk> 187 188 * stubs.c (stub_ssl): Test ne_ssl_cert_validity stub. 189 190Tue Apr 22 11:35:10 2003 Joe Orton <joe@manyfish.co.uk> 191 192 * request.c (versions): Run test as XFAIL. 193 194Tue Apr 22 11:33:43 2003 Joe Orton <joe@manyfish.co.uk> 195 196 * util-tests.c (version_string): New function. 197 198Tue Apr 22 09:23:27 2003 Joe Orton <joe@manyfish.co.uk> 199 200 * ssl.c (check_validity, cert_validity): New functions. 201 202Mon Apr 21 19:45:39 2003 Joe Orton <joe@manyfish.co.uk> 203 204 * util-tests.c (digest_md5): Replace ne_md5_buffer. 205 (md5): Use digest_md5; test 500-byte string. 206 207Mon Apr 21 18:38:02 2003 Joe Orton <joe@manyfish.co.uk> 208 209 * xml.c (fail_parse): Call ne_xml_parse with length=0 finish 210 parse. 211 212Mon Apr 21 17:18:45 2003 Joe Orton <joe@manyfish.co.uk> 213 214 * props.c: Add tests for ne_207.h interface and ne_simple_propfind 215 from ne_props.h. 216 217 * xml.c: Add tests for new XML interface. 218 219 * Makefile.in: Run props tests before lock since the latter is 220 implemented using the former. 221 222Mon Apr 7 22:27:18 2003 Joe Orton <joe@manyfish.co.uk> 223 224 * stubs.c (stub_ssl): Test for ne_ssl_cert_identity stub. 225 226Mon Apr 7 22:17:56 2003 Joe Orton <joe@manyfish.co.uk> 227 228 * ssl.c (cert_fingerprint): Renamed from fingerprint. 229 (check_identity, cert_identities): New functions. 230 231Sun Apr 6 20:18:30 2003 Joe Orton <joe@manyfish.co.uk> 232 233 * stubs.c (stub_ssl): Adjust for new clicert API. 234 235Sun Apr 6 20:12:48 2003 Joe Orton <joe@manyfish.co.uk> 236 237 * ssl.c (dname_compare): Renamed from comparisons. 238 (dname_readable): New function. 239 240 * makekeys.sh: Create justmail.cert. 241 242Sun Apr 6 20:00:18 2003 Joe Orton <joe@manyfish.co.uk> 243 244 * ssl.c (keypw_prompt): Removed function. 245 (init, load_client_cert, client_cert_provided): Adapt for new 246 clicert API. 247 (ccert_unencrypted): New function. 248 249Fri Apr 4 22:34:12 2003 Joe Orton <joe@manyfish.co.uk> 250 251 * request.c (fail_request_with_error): Refactored from 252 fail_request; check for a particular error string. 253 (fail_request): Use fail_request_with_error. 254 (invalid_response_gives_error): New function. 255 (fail_long_header): Use it. 256 (fail_corrupt_chunks): New function. 257 258Sat Mar 29 14:39:20 2003 Joe Orton <joe@manyfish.co.uk> 259 260 * ssl.c (comparisons): New function. 261 262 * stubs.c (stub_ssl): Test ne_ssl_dname_cmp. 263 264Sat Mar 29 13:58:37 2003 Joe Orton <joe@manyfish.co.uk> 265 266 * makekeys.sh: Generate noclient.p12. 267 268 * ssl.c (load_client_cert): Test ne_ssl_clicert_name. 269 270 * stubs.c (stub_ssl): Check for ne_ssl_clicert_name stub. 271 272Sat Mar 29 13:31:35 2003 Joe Orton <joe@manyfish.co.uk> 273 274 * ssl.c (load_client_cert): Test ne_ssl_clicert_owner. 275 276Fri Mar 28 22:13:55 2003 Joe Orton <joe@manyfish.co.uk> 277 278 * ssl.c (fingerprint): New function. 279 280 * stubs.c (stub_ssl): Check for ne_ssl_cert_digest stub. 281 282Wed Mar 26 22:52:15 2003 Joe Orton <joe@manyfish.co.uk> 283 284 * ssl.c (fail_missing_CN): New function. 285 286 * makekeys.sh: Generate missingcn.cert. 287 288 * openssl.conf: Allow commonName to be omitted from CSR. 289 290Wed Mar 26 22:41:48 2003 Joe Orton <joe@manyfish.co.uk> 291 292 * ssl.c (load_server_certs): Renamed from load_ca; test loading 293 non-existent file. 294 295Wed Mar 26 20:38:08 2003 Joe Orton <joe@manyfish.co.uk> 296 297 * stubs.c (stub_ssl): Updated for new SSL interface. 298 299Tue Mar 25 20:32:07 2003 Joe Orton <joe@manyfish.co.uk> 300 301 Update tests for changes to SSL interface: 302 303 * socket.c (init_ssl): Use ne_ssl_context_create, 304 ne_ssl_cert_read, ne_ssl_ctx_trustcert. 305 (begin): Use ne_sock_connect_ssl. 306 307 * ssl.c (serve_ssl_chained, trust_default_ca, load_client_cert, 308 check_dname, check_cert_dnames, check_cert, check_chain, 309 parse_chain, cc_check_dnames, cc_provided_dnames): New functions. 310 (serve_ccert): Always trust SERVER_CERT; optionally call 311 SSL_CTX_set_client_CA_list. 312 (any_ssl_request, load_ca, fail_truncated_eof): Use 313 ne_ssl_cert_read and ne_ssl_trust_cert. 314 (keypw_prompt): Fail if userdata is NULL. 315 (fail_load_ccerts, load_pkcs12_ccert, load_pem_ccert, check_DNs): 316 Removed functions. 317 (parse_cert): Use check_cert. 318 (client_cert_provided, client_cert_pkcs12): Rewritten for new API. 319 320 * makekeys.sh: Generate calist.pem, unclient.p12. 321 322Wed Mar 12 22:36:27 2003 Joe Orton <joe@manyfish.co.uk> 323 324 * redirect.c (simple): Fold in tests for 30[237] redirects for 325 better coverage. 326 (no_redirect): Another test for _location returning NULL. 327 328Wed Mar 12 22:29:45 2003 Joe Orton <joe@manyfish.co.uk> 329 330 * redirect.c (process_redir): Factored out from check_redir. 331 (no_redirect): New function. 332 333Sun Mar 9 17:46:37 2003 Joe Orton <joe@manyfish.co.uk> 334 335 * lock.c (fail_discover): New function. 336 337Sat Mar 1 10:53:58 2003 Joe Orton <joe@manyfish.co.uk> 338 339 * uri-tests.c (authinfo): Removed. 340 (escapes): Test nothing-to-escape and invalid URI cases. 341 (compares): Gain 100% branch coverage in ne_path_compare. 342 (default_port): Test unknown scheme case. 343 (parse): Test authinfo here, and some edge cases. 344 (unparse): Fill in port if default. 345 346Sat Mar 1 09:20:42 2003 Joe Orton <joe@manyfish.co.uk> 347 348 * socket.c (multi_init): New function. 349 350Sat Mar 1 08:04:09 2003 Joe Orton <joe@manyfish.co.uk> 351 352 * string-tests.c (cleaner): New function. 353 354Wed Feb 26 22:13:14 2003 Joe Orton <joe@manyfish.co.uk> 355 356 * request.c (fail_eof_chunk, fail_eof_badclen): New tests. 357 358Wed Feb 26 21:54:39 2003 Joe Orton <joe@manyfish.co.uk> 359 360 * util-tests.c (support): New function. 361 (bad_sl, accept_sl): More status-lines. 362 363Tue Feb 25 21:06:18 2003 Joe Orton <joe@manyfish.co.uk> 364 365 * ssl.c (do_ssl_response): Fail if response contains 366 "Proxy-Authorization" header. 367 (apt_post_send, apt_creds, auth_proxy_tunnel): New functions. 368 369Thu Nov 28 21:25:01 2002 Joe Orton <joe@manyfish.co.uk> 370 371 * request.c (te_over_clength2): New test. 372 373Sun Nov 17 18:59:04 2002 Joe Orton <joe@manyfish.co.uk> 374 375 * socket.c (addr_make_v4, addr_make_v6, addr_compare): New 376 functions. 377 378Fri Oct 11 00:49:01 2002 Joe Orton <joe@manyfish.co.uk> 379 380 * props.c (regress): Moved from regress.c:propfind_segv; add 381 regression test for ne_props.c segfault fixed in rev 1.83. 382 383 * regress.c: Removed. 384 385Tue Oct 8 20:06:55 2002 Joe Orton <joe@manyfish.co.uk> 386 387 * xml.c (matches): Add tests that entities in attribute values are 388 dereferenced by the XML parser. 389 390Fri Oct 4 17:10:19 2002 Joe Orton <joe@manyfish.co.uk> 391 392 * request.c (no_body_bad_clength, no_body_empty_clength): New 393 tests. 394 (expect_no_body): Use better paths in the requests. 395 396Tue Sep 24 21:27:33 2002 Joe Orton <joe@manyfish.co.uk> 397 398 * request.c (fail_long_header, versions, hook_create_req): New 399 functions. 400 401Tue Sep 17 21:08:17 2002 Joe Orton <joe@manyfish.co.uk> 402 403 * openssl.conf (neonca): Make 'countryName' optional in CA policy. 404 (reqDN.CNfirst): New section. 405 406 * makekeys.sh: Generate 'cnfirst.cert', which has commonName as 407 first attribute in subject DN. 408 409 * ssl.c (commonName_first): New function. 410 411Tue Sep 10 21:11:18 2002 Joe Orton <joe@manyfish.co.uk> 412 413 * request.c (fail_double_lookup): New function. 414 415Sun Aug 25 23:16:33 2002 Joe Orton <joe@manyfish.co.uk> 416 417 * ssl.c (do_ssl_response): Add 'unclean' argument. 418 (all callers changed). 419 (serve_response_unclean, empty_truncated_eof, fail_truncated_eof): 420 New functions. 421 422Sun Aug 25 19:16:00 2002 Joe Orton <joe@manyfish.co.uk> 423 424 * socket.c (resolve_numeric): Test ne_addr_print too. 425 426Sun Aug 25 13:39:37 2002 Joe Orton <joe@manyfish.co.uk> 427 428 * resolve.c: New file. 429 430Sun Aug 25 11:25:12 2002 Joe Orton <joe@manyfish.co.uk> 431 432 * request.c (is_alive): Update for new ne_addr_* interface. 433 434Sun Aug 25 08:31:16 2002 Joe Orton <joe@manyfish.co.uk> 435 436 * socket.c (serve_truncate, ssl_truncate): New functions. 437 438Sun Aug 25 08:28:17 2002 Joe Orton <joe@manyfish.co.uk> 439 440 * socket.c (do_connect): New function; use new 441 ne_sock_connect/ne_addr interface. 442 (begin) [SOCKET_SSL, !SOCKET_SSL]: Use do_connect. 443 (resolve_numeric): Adjust for new ne_addr interface. 444 (resolve_ipv6): Disable test. 445 446Sat Aug 24 08:50:06 2002 Joe Orton <joe@manyfish.co.uk> 447 448 * request.c (fail_statusline): New function. 449 450Fri Aug 23 22:52:38 2002 Joe Orton <joe@manyfish.co.uk> 451 452 * ssl.c (init): FAILHARD if initialization fails. 453 454Wed Aug 21 13:29:58 2002 Joe Orton <joe@manyfish.co.uk> 455 456 * uri-tests.c (null_uri): Removed test. 457 (parse): More tests including IPv6 address tests; use ONCMP macro. 458 (failparse): New function. 459 (unparse): Add URI with IPv6 address. 460 461Wed Aug 21 13:28:37 2002 Joe Orton <joe@manyfish.co.uk> 462 463 * socket.c (resolve_ipv6): New function. 464 465Mon Aug 19 16:59:46 2002 Joe Orton <joe@manyfish.co.uk> 466 467 * socket.c (resolve): Adapt for new ne_addr_resolve interface. 468 (resolve_numeric): New test. 469 470 * request.c (is_alive): Use new ne_addr_resolve interface. 471 472Mon Aug 19 16:57:53 2002 Joe Orton <joe@manyfish.co.uk> 473 474 * socket.c (begin): Fix handling of connect failure. 475 (TO_BEGIN): Handle errors from to_begin properly. 476 477Sun Aug 18 23:37:34 2002 Joe Orton <joe@manyfish.co.uk> 478 479 * string-tests.c (str_errors): Check return value and behaviour 480 when error string is truncated, an 481 482Sun Aug 18 23:31:51 2002 Joe Orton <joe@manyfish.co.uk> 483 484 * util-tests.c (str_errors): Moved to... 485 486 * string-tests.c (str_errors): here. 487 488Sun Aug 18 23:11:28 2002 Joe Orton <joe@manyfish.co.uk> 489 490 * string-tests.c (strnzcpy): New function. 491 492Sun Aug 18 08:18:24 2002 Joe Orton <joe@manyfish.co.uk> 493 494 * ssl.c (caseless_match): New function. 495 496 * makekeys.sh: Create caseless.cert. 497 498Sun Aug 18 08:12:32 2002 Joe Orton <joe@manyfish.co.uk> 499 500 * ssl.c (notdns_altname): New function. 501 502 * makekeys.sh: Create altname4.cert. 503 504 * openssl.conf (altExt4): New section. 505 506Sun Aug 18 07:42:30 2002 Joe Orton <joe@manyfish.co.uk> 507 508 * ssl.c (multi_commonName): New function. 509 510 * openssl.conf (req): Use distinguished_name section as 511 specificied by $REQDN. 512 (reqDN.doubleCN): New section. 513 514 * makekeys.sh: Set $REQDN; create twocn.cert. 515 516Sun Aug 18 00:47:19 2002 Joe Orton <joe@manyfish.co.uk> 517 518 * ssl.c (accept_signed_cert): New function, factored out from 519 simple. 520 (simple): Use accept_signed_cert. 521 (subject_altname, two_subject_altname, two_subject_altname2): 522 New function. 523 524 * openssl.conf: Add extension sections altExt, altExt2, altExt3. 525 526 * makekeys.sh: Generate altname.cert, altname2.cert, 527 altname3.cert. 528 529Sat Aug 17 18:41:42 2002 Joe Orton <joe@manyfish.co.uk> 530 531 * makekeys.sh (csr_fields): New function; generate output for 532 `openssl req'. 533 534Sat Aug 17 18:27:36 2002 Joe Orton <joe@manyfish.co.uk> 535 536 * makekeys.sh: Add CA and REQ variables to simplify OpenSSL 537 invocation. Pass -config to req rather than relying on installed 538 default configuration. 539 540 * openssl.conf: Add `req' and `reqDN' sections to allow use with 541 `openssl req' command. Add CA basic constraint extention to 542 certificates used. 543 544Sat Aug 10 10:42:57 2002 Joe Orton <joe@manyfish.co.uk> 545 546 * makekeys.sh: Use openssl binary as ${OPENSSL}. 547 548 * Makefile.in: Pick up OPENSSL from configure, and pass it through 549 to makekeys.sh. 550 551Sat Aug 10 10:18:15 2002 Joe Orton <joe@manyfish.co.uk> 552 553 * socket.c (begin): Don't use run-time initialization. 554 555 * request.c (s_progress): Fix warnings on FreeBSD. 556 557Mon Aug 5 21:08:24 2002 Joe Orton <joe@manyfish.co.uk> 558 559 * ssl.c (ccert_provider, client_cert_provided): New functions. 560 (fail_load_ccerts): Enable function. 561 562Sun Aug 4 22:32:43 2002 Joe Orton <joe@manyfish.co.uk> 563 564 * request.c (serve_abort, retry_after_abort): New functions. 565 566Sun Aug 4 13:28:47 2002 Joe Orton <joe@manyfish.co.uk> 567 568 * request.c (continued_header): New function. 569 570Sun Aug 4 12:54:52 2002 Joe Orton <joe@manyfish.co.uk> 571 572 * socket.c [SOCKET_SSL] (ssl_closure): New function; use instead 573 of read_reset, write_reset for SOCKET_SSL build. 574 575Sun Aug 4 12:27:34 2002 Joe Orton <joe@manyfish.co.uk> 576 577 Build socket.c twice, once for testing over SSL connections: 578 579 * Makefile.in (socket-ssl.o, socket-ssl): New targets. 580 (SSL_TESTS): Include socket-ssl target. 581 582 * socket.c [SOCKET_SSL] (init_ssl, wrap_serve): New functions. 583 [SOCKET_SSL] (begin): Alternate implementation. 584 585Sat Aug 3 22:20:59 2002 Joe Orton <joe@manyfish.co.uk> 586 587 * session.c (privates): New function. 588 589Sat Aug 3 22:20:14 2002 Joe Orton <joe@manyfish.co.uk> 590 591 * auth.c (fail_auth_cb, tunnel_regress): New function. 592 593Sat Aug 3 22:12:48 2002 Joe Orton <joe@manyfish.co.uk> 594 595 * auth.c (forget_regress): New function. 596 597Sun Jul 28 12:24:02 2002 Joe Orton <joe@manyfish.co.uk> 598 599 * lock.c (lock_timeout, submit_test, lock_shared): Use ne_concat, 600 not CONCAT? macros. 601 602 * ssl.c (init, fail_expired, fail_notvalid): Likewise. 603 604Thu Jul 25 00:04:47 2002 Joe Orton <joe@manyfish.co.uk> 605 606 * string-tests.c (buf_concat, buf_concat2, buf_concat3): Renamed 607 from concat, concat1, concat3). 608 (concat): New function. 609 610Sun Jul 14 11:42:03 2002 Joe Orton <joe@manyfish.co.uk> 611 612 * util-tests.c (versioning): New function. 613 614Thu Jul 11 17:24:29 2002 Joe Orton <joe@manyfish.co.uk> 615 616 * request.c (no_headers): New function. 617 618Wed Jul 10 22:58:01 2002 Joe Orton <joe@manyfish.co.uk> 619 620 * utils.c (any_2xx_request_body): New function. 621 622Wed Jul 10 22:44:12 2002 Joe Orton <joe@manyfish.co.uk> 623 624 * request.c (ptimeout_eof, ptimeout_eof2, close_not_retried, 625 serve_close2): New functions. 626 (abort_respbody): Rejoin child earlier for reliable results. 627 628Sun Jul 7 12:17:11 2002 Joe Orton <joe@manyfish.co.uk> 629 630 * socket.c (expect_eof): Better error reporting. 631 (good_close): Split from finish(). 632 (finish): Use good_close. 633 (expect_write_closed, write_reset, read_reset): Add tests that 634 an ECONNRESET is treated as a SOCK_CLOSED failure. 635 636Sun Jul 7 08:38:12 2002 Joe Orton <joe@manyfish.co.uk> 637 638 * utils.c (serve_response): Use discard_body(). 639 640Sun Jul 7 08:28:56 2002 Joe Orton <joe@manyfish.co.uk> 641 642 * socket.c (serve_expect, full_write, small_writes, large_writes, 643 echo_server, echo_expect, echo_lines): New functions. 644 645Sat Jul 6 13:11:33 2002 Joe Orton <joe@manyfish.co.uk> 646 647 * request.c (serve_eof, fail_early_eof, fail_eof_continued, 648 fail_eof_headers): New functions. 649 650Sat Jul 6 08:58:17 2002 Joe Orton <joe@manyfish.co.uk> 651 652 * request.c (serve_100_once, expect_100_once): New functions. 653 654Fri Jul 5 21:43:58 2002 Joe Orton <joe@manyfish.co.uk> 655 656 * auth.c (username): Use the correct spelling of Aladdin. 657 (auth_hdr): Simplify debug messages. 658 (auth_serve): Fail if no Authorization header is given. 659 (basic): Check for response status. 660 661Fri Jul 5 21:41:02 2002 Joe Orton <joe@manyfish.co.uk> 662 663 * utils.c (any_2xx_request): New function. 664 665Sun Jun 30 17:10:59 2002 Joe Orton <joe@manyfish.co.uk> 666 667 * request.c (fail_noserver): Factor out from host_not_found. 668 (fail_lookup): Equivalent to old host_not_found. 669 (fail_connect, abort_respbody): New function. 670 671Sun Jun 30 14:32:32 2002 Joe Orton <joe@manyfish.co.uk> 672 673 * request.c (fail_chunksize): New function. 674 675Sun Jun 30 10:39:17 2002 Joe Orton <joe@manyfish.co.uk> 676 677 * request.c (test_persist): Factor out from persist; take 678 response and response body as arguments. 679 (persist_http11): New function, equivalent to old persist. 680 (persist_chunked, persist_http10): New functions. 681 682Sun Jun 30 10:25:07 2002 Joe Orton <joe@manyfish.co.uk> 683 684 * utils.c (serve_response): Factor out from single_serve_string, 685 many_serve_string. 686 (single_serve_string, many_serve_string): Use serve_response. 687 688Sun Jun 30 09:13:55 2002 Joe Orton <joe@manyfish.co.uk> 689 690 * request.c (expect_response, persist, persist_timeout, 691 multi_header): Rely on the fact that the test framework 692 will reap the server. 693 (expect_no_body, no_body_304, no_body_204, no_body_HEAD, 694 no_body_chunks): New functions. 695 696Tue Jun 25 23:05:42 2002 Joe Orton <joe@manyfish.co.uk> 697 698 * request.c (trailing_header): New function. 699 700Sun Jun 23 23:00:03 2002 Joe Orton <joe@manyfish.co.uk> 701 702 * ssl.c (no_verify): Fix sixth argument to any_ssl_request. 703 704Sun Jun 23 15:21:06 2002 Joe Orton <joe@manyfish.co.uk> 705 706 * Makefile.in (grind): New target. 707 708 * run.sh: Respect $HARNESS. 709 710Sun Jun 23 15:20:38 2002 Joe Orton <joe@manyfish.co.uk> 711 712 * props.c: New file. 713 714Sun Jun 23 09:37:10 2002 Joe Orton <joe@manyfish.co.uk> 715 716 * makekeys.sh: Ignore failure from `hostname -[sdf]' commands, as 717 appropriate tests are skipped on failure. 718 719Sun Jun 23 08:33:50 2002 Joe Orton <joe@manyfish.co.uk> 720 721 * request.c (host_not_found): Use any_request(); simplify. 722 (proxy_no_resolve): New function. 723 724Sun Jun 16 11:40:19 2002 Joe Orton <joe@manyfish.co.uk> 725 726 * ssl.c (do_ssl_response): Succeed if connection is closed 727 by client after negotiation. 728 (serve_tunnel, fail_tunnel, proxy_tunnel): New functions. 729 730Mon Jun 10 21:18:03 2002 Joe Orton <joe@manyfish.co.uk> 731 732 * redirect.c (check_redir): Await server child before returning. 733 734Sun Jun 9 13:05:25 2002 Joe Orton <joe@manyfish.co.uk> 735 736 * socket.c (DECL): Don't use run-time initialization. 737 (single_read, single_peek, small_reads, read_and_peek, line_closure, 738 larger_read, line_toolong): Use DECL, as last declaration. 739 740Sun Jun 9 13:03:36 2002 Joe Orton <joe@manyfish.co.uk> 741 742 * compress.c (reader, do_fetch): Check that inflated data is of 743 expected length. 744 745Sun Jun 9 11:40:54 2002 Joe Orton <joe@manyfish.co.uk> 746 747 * redirect.c (struct redir_args): Add 'path' field. 748 (any_request): Use path in Request-URI. 749 (simple, redir_303, non_absolute): Fill in path. 750 (relative_1, relative_2): New functions. 751 752Tue Jun 4 16:56:08 2002 Joe Orton <joe@manyfish.co.uk> 753 754 * uri-tests.c (parents): Improve ne_path_parent tests. 755 756Mon Jun 3 18:22:31 2002 Joe Orton <joe@manyfish.co.uk> 757 758 * cookies.c: New file. 759 760Sun Jun 2 10:06:42 2002 Joe Orton <joe@manyfish.co.uk> 761 762 * basic.c (dav_capabilities): New function. 763 764Sat Jun 1 10:39:04 2002 Joe Orton <joe@manyfish.co.uk> 765 766 * socket.c (to_begin, to_end, peek_timeout, read_timeout, 767 readline_timeout, fullread_timeout): New functions. 768 769Sat Jun 1 10:38:13 2002 Joe Orton <joe@manyfish.co.uk> 770 771 * request.c (read_timeout): Use sleepy_server. 772 (hung_server): Removed. 773 774Sat Jun 1 10:32:45 2002 Joe Orton <joe@manyfish.co.uk> 775 776 * utils.c (sleepy_server): New function. 777 778Thu May 30 20:00:40 2002 Joe Orton <joe@manyfish.co.uk> 779 780 * socket.c (finish): New function, factored out from common code. 781 (small_reads, read_and_peek, larger_read): Use it. 782 (line_simple, line_closure, line_empty, line_toolong, line_mingle, 783 line_chunked): New functions. 784 785Sun May 26 14:54:52 2002 Joe Orton <joe@manyfish.co.uk> 786 787 * request.c (fill_uri, match_hostport, hostports): Moved functions 788 to session.c. 789 790 * session.c: New file. 791 792Fri May 24 08:14:21 2002 Joe Orton <joe@manyfish.co.uk> 793 794 * request.c (match_hostport, hostports): New functions. 795 796Tue May 21 21:29:25 2002 Joe Orton <joe@manyfish.co.uk> 797 798 * redirect.c: New file. 799 800Sun May 19 18:25:48 2002 Joe Orton <joe@manyfish.co.uk> 801 802 * auth.c, lock.c, regress.c, socket.c, ssl.c, utils.c, utils.h: 803 Update for socket API change; s/sock_/ne_sock_/, 804 s/SOCK_/NE_SOCK_/. 805 806Wed May 8 19:41:24 2002 Joe Orton <joe@manyfish.co.uk> 807 808 * ssl.c (do_ssl_response): Take response body as parameter; all 809 callers changed. 810 (serve_eof, simple_eof): New functions. 811 812Wed May 8 17:17:27 2002 Joe Orton <joe@manyfish.co.uk> 813 814 * socket.c: New file. 815 816 * sock-tests.c: Removed file. 817 818 * Makefile.in: Updated accordingly. 819 820Wed May 8 11:53:35 2002 Joe Orton <joe@manyfish.co.uk> 821 822 * request.c (host_not_found): New function. 823 824Wed May 1 21:41:02 2002 Joe Orton <joe@manyfish.co.uk> 825 826 * uri-tests.c (parse): New function. 827 (simple, simple_ssl): Adjust for ne_uri_parse port default. 828 829Tue Apr 23 21:39:09 2002 Joe Orton <joe@manyfish.co.uk> 830 831 * request.c (read_timeout): Better diagnostic for test failure 832 cases. 833 834Sun Apr 14 12:00:19 2002 Joe Orton <joe@manyfish.co.uk> 835 836 * basic.c (content_type): Updated to reflect default charset 837 ISO-8859-1 for text/ media types. 838 839Sun Apr 7 17:35:21 2002 Joe Orton <joe@manyfish.co.uk> 840 841 * run.sh: Set MALLOC_CHECK_ so glibc's heap corruption detection 842 is enabled. 843 844Sun Apr 7 17:30:37 2002 Joe Orton <joe@manyfish.co.uk> 845 846 * compress.c (do_fetch): Reset 'failed' flag to zero each time. 847 848Wed Apr 3 20:16:43 2002 Joe Orton <joe@manyfish.co.uk> 849 850 * request.c (NO_BODY): Renamed from NOBODY (all callers changed). 851 (empty_header, ignore_header_ws, ignore_header_ws2): New tests. 852 (ignore_header_ws3): Renamed from ignore_header_spaces. 853 854Tue Apr 2 21:09:33 2002 Joe Orton <joe@manyfish.co.uk> 855 856 * request.c (expect_header_value): New function. 857 (ignore_header_case, ignore_header_spaces, 858 ignore_header_tabs): New tests. 859 860Mon Mar 25 21:51:24 2002 Joe Orton <joe@manyfish.co.uk> 861 862 * lock.c (multi_lock_response, lock_shared): New function. 863 (lock_compare): Factored out from discover_results. 864 (discover, lock_timeout, submit_test): Adjust for lock API 865 changes. 866 867Mon Mar 25 21:36:55 2002 Joe Orton <joe@manyfish.co.uk> 868 869 * ssl.c (fail_ssl_request): Check failure bits against 870 NE_SSL_FAILMASK. 871 872Sun Mar 10 22:07:48 2002 Joe Orton <joe@manyfish.co.uk> 873 874 * stubs.c (stub_decompress, sd_reader): New function. 875 876Sun Mar 10 21:39:29 2002 Joe Orton <joe@manyfish.co.uk> 877 878 * lock.c (activelock): New function, factored out from 879 lock_response. 880 (lock_response): Use activelock; adjust argument types. 881 (make_lock): Adjusted for lock_response arg changes. 882 (discard_response, serve_discovery, discover_result, discover): 883 New functions. 884 885Wed Mar 6 22:22:04 2002 Joe Orton <joe@manyfish.co.uk> 886 887 * lock.c (submit_test): Handle failures gracefully. 888 889Wed Mar 6 21:23:27 2002 Joe Orton <joe@manyfish.co.uk> 890 891 * lock.c (submit_test): Update to expect an absoluteURI in If: 892 headers. 893 894Wed Mar 6 21:17:37 2002 Joe Orton <joe@manyfish.co.uk> 895 896 * uri-tests.c (unparse): New function. 897 898Tue Mar 5 22:59:37 2002 Joe Orton <joe@manyfish.co.uk> 899 900 * uri-tests.c (cmp): Checks for case-insensitive comparison, and 901 empty path, "/" equivalence. 902 903Mon Mar 4 01:07:03 2002 Joe Orton <joe@manyfish.co.uk> 904 905 * request.c (blank_response): Add test for potential segfault 906 in strip_eol (would fail if run under Electric Fence). 907 908Sun Mar 3 20:50:01 2002 Joe Orton <joe@manyfish.co.uk> 909 910 * lock.c (make_lock, store_single, store_several, got_if_header, 911 serve_verify_if, do_request, submit_test, if_simple, 912 if_under_infinite, if_infinite_over, if_child, if_covered_child): 913 New tests. 914 915 (lock_timeout): Adjusted for API changes. 916 917Sun Mar 3 15:29:05 2002 Joe Orton <joe@manyfish.co.uk> 918 919 * uri-tests.c (cmp_differ, cmp): New functions. 920 921Sun Mar 3 11:08:36 2002 Joe Orton <joe@manyfish.co.uk> 922 923 * request.c (fill_uri): New function. 924 925Sun Feb 17 21:31:21 2002 Joe Orton <joe@manyfish.co.uk> 926 927 * ssl.c (fqdn_match): Removed test. 928 929Sun Feb 17 20:32:16 2002 Joe Orton <joe@manyfish.co.uk> 930 931 * makekeys.sh: Create keypair for client cert. 932 933 * ssl.c (do_ssl_response, any_ssl_request, all callers thereof): 934 Better error handling. 935 (serve_ccert, load_pem_ccert, keypw_prompt, load_pkcs12_ccert, 936 fail_load_ccerts, client_cert_pem, client_cert_pkcs12): New 937 functions. 938 939Sun Feb 17 11:54:19 2002 Joe Orton <joe@manyfish.co.uk> 940 941 * basic.c (do_range): Factored out from 942 get_range/fail_range_length. 943 (get_range, fail_range_length): Use do_range. 944 (fail_range_units, fail_range_notrange, fail_range_unsatify): New 945 tests. 946 947Sun Feb 17 11:36:00 2002 Joe Orton <joe@manyfish.co.uk> 948 949 * basic.c (get_range, fail_range_length): New functions. 950 951Sat Feb 16 23:29:40 2002 Joe Orton <joe@manyfish.co.uk> 952 953 * xml.c: New file. 954 955 * Makefile.in (DAV_TESTS): Add xml tests. 956 957Sat Feb 16 15:26:27 2002 Joe Orton <joe@manyfish.co.uk> 958 959 * compress.c (do_fetch): Rename from fetch(); add 'expect_fail' 960 paramater. (fetch): Re-implement using do_fetch. 961 (fail_trailing, fail_bad_csum, fail_truncate): New functions. 962 963 * Makefile.in (trailing.gz, truncated.gz, badcsum.gz): New helper 964 files. 965 966Thu Feb 14 19:09:42 2002 Joe Orton <joe@manyfish.co.uk> 967 968 * request.c (everywhere): Simplify use of expect_response. 969 970Thu Feb 14 19:05:48 2002 Joe Orton <joe@manyfish.co.uk> 971 972 * request.c (ignore_bad_headers): New function. 973 974Mon Feb 11 22:06:40 2002 Joe Orton <joe@manyfish.co.uk> 975 976 * makekeys.sh: If the hostname command is clever enough to give 977 FQDN, hostname, domainname, then create wildcard.cert; cert with a 978 wildcard commonName. 979 980 * ssl.c (wildcard_match): New function 981 982Mon Feb 11 21:55:52 2002 Joe Orton <joe@manyfish.co.uk> 983 984 * ssl.c (any_ssl_request): Take session pointer, don't 985 initialize here. (DEFSESS): New macro. 986 (everywhere): Use DEFSESS rather than passing pointer-to- 987 session pointer. 988 989Mon Feb 11 20:44:44 2002 Joe Orton <joe@manyfish.co.uk> 990 991 * ssl.c (fqdn_match): Test for FQDN matching against non-qualified 992 FQDN. 993 (makekeys.sh): Create server cert with FQDN. 994 995Sun Feb 10 12:36:55 2002 Joe Orton <joe@manyfish.co.uk> 996 997 * request.c (chunk_oversize): New function. 998 999Sat Feb 9 21:12:47 2002 Joe Orton <joe@manyfish.co.uk> 1000 1001 * request.c (reason_phrase): New function. 1002 1003Sat Feb 9 16:50:58 2002 Joe Orton <joe@manyfish.co.uk> 1004 1005 * request.c (read_timeout, hung_server): New functions. 1006 1007Thu Feb 7 22:58:31 2002 Joe Orton <joe@manyfish.co.uk> 1008 1009 * ssl.c (cache_verify, no_verify, count_vfy): New functions. 1010 1011Thu Feb 7 19:39:33 2002 Joe Orton <joe@manyfish.co.uk> 1012 1013 * ssl.c (any_ssl_request): Take server function as argument: all 1014 callers changed. 1015 (fail_ssl_request): Renamed from failreq; uses any_ssl_request. 1016 1017Wed Feb 6 20:43:32 2002 Joe Orton <joe@manyfish.co.uk> 1018 1019 * ssl.c (load_ca): New function. 1020 1021Wed Feb 6 20:36:15 2002 Joe Orton <joe@manyfish.co.uk> 1022 1023 * ssl.c (any_ssl_request): Make ca_cert and verify_fn arguments 1024 optional. 1025 (trustall): Removed function. 1026 (simple): Use the CA cert; no need for a verify function. 1027 (parse_cert): Don't give a CA cert, force use of verify function. 1028 (failreq): Bug fix, don't trust server cert as CA. 1029 (fail_wrongCN, fail_notvalid, fail_expired): Pass server cert 1030 as CA cert server cert is self-signed. 1031 1032Tue Feb 5 20:33:42 2002 Joe Orton <joe@manyfish.co.uk> 1033 1034 * ssl.c (fail_untrusted_ca, fail_self_signed): New tests. 1035 (fail_serve): New function. 1036 (failreq, any_ssl_request): Take ca cert argument. 1037 (check_DNs, trustall, get_failures): Adjust for new verify 1038 callback interface. 1039 1040Sat Feb 2 14:18:11 2002 Joe Orton <joe@manyfish.co.uk> 1041 1042 * ssl.c (do_ssl_response): Factored out from serve_ssl. 1043 (serve_ssl): Use do_ssl_response. 1044 (serve_scache, session_cache): New functions. 1045 1046Thu Jan 31 21:09:58 2002 Joe Orton <joe@manyfish.co.uk> 1047 1048 * Makefile.in (ca-stamp): New target. 1049 1050 * makekeys.sh: New helper script. 1051 1052 * ssl.c (parse_cert, fail_wrongCN, fail_expired, fail_notvalid): 1053 New tests. 1054 (any_ssl_request, trustall, check_DNs, failreq): New auxiliaries. 1055 1056Thu Jan 31 20:42:38 2002 Joe Orton <joe@manyfish.co.uk> 1057 1058 * wrongcn.pem, notvalid.pem, expired.pem, server.key: New files. 1059 1060 * Makefile.in: Remove targets to generate certs. 1061 1062Wed Jan 30 21:15:33 2002 Joe Orton <joe@manyfish.co.uk> 1063 1064 * Makefile.in (wrongcn.pem): New target. 1065 1066Wed Jan 30 19:58:18 2002 Joe Orton <joe@manyfish.co.uk> 1067 1068 * string-tests.c: Updated for ne_buffer API change. 1069 1070Sat Jan 26 11:23:34 2002 Joe Orton <joe@manyfish.co.uk> 1071 1072 * Makefile.in: Pick up appropriate TESTS, HELPERS from configure. 1073 (ssltests*, davtests*): Remove crud. 1074 1075 * compress.c: Presume zlib support present if built. 1076 1077Sun Jan 20 23:29:37 2002 Joe Orton <joe@manyfish.co.uk> 1078 1079 * ssl.c: New file. 1080 1081 * Makefile.in (ssltests-no, ssltests-yes, server.pem, server.key): 1082 New targets. 1083 (check): Conditionally run SSL tests. 1084 1085Sun Jan 20 13:20:56 2002 Joe Orton <joe@manyfish.co.uk> 1086 1087 * Makefile.in (davtests-no, davtests-yes): Separate test programs 1088 which require DAV support; only run if DAV is enabled. 1089 1090 * Makefile.in (test): Pass SRCDIR env var through to run.sh. 1091 1092 * run.sh: Pass SRCDIR as argv[1] to test programs. 1093 1094 * compress.c (init): New function. Use 'newsfn' global for 1095 filename of NEWS file. 1096 1097Sun Jan 20 13:06:40 2002 Joe Orton <joe@manyfish.co.uk> 1098 1099 * Makefile.in: Fixes for VPATH build 1100 1101Mon Jan 14 01:58:39 2002 Joe Orton <joe@manyfish.co.uk> 1102 1103 * basic.c (content_type): Add harsher charset handling tests. 1104 1105Sun Jan 13 14:01:57 2002 Joe Orton <joe@manyfish.co.uk> 1106 1107 * lock.c (lock_timeout): Use make_session. 1108 1109 * acl.c (test_acl): Use make_session. 1110 1111 * auth.c (basic, retries): Use make_session. 1112 1113Sun Jan 13 14:01:13 2002 Joe Orton <joe@manyfish.co.uk> 1114 1115 * utils.c (make_session): New function. 1116 1117Sun Jan 13 14:00:34 2002 Joe Orton <joe@manyfish.co.uk> 1118 1119 * basic.c (content_type): Rename ctype to ct; check if charset is 1120 unexpectedly set. 1121 1122Sun Jan 13 13:58:07 2002 Joe Orton <joe@manyfish.co.uk> 1123 1124 * basic.c: New file. 1125 1126 * Makefile.in: Add `basic' test suite. 1127 1128Mon Jan 7 22:05:33 2002 Joe Orton <joe@manyfish.co.uk> 1129 1130 * Makefile.in: Don't pass CFLAGS to CC when linking. 1131 1132Mon Jan 7 21:46:03 2002 Joe Orton <joe@manyfish.co.uk> 1133 1134 * lock.c: New file. 1135 1136 * Makefile.in: Add 'lock' to TESTS, build lock. 1137 1138Mon Jan 7 21:17:21 2002 Joe Orton <joe@manyfish.co.uk> 1139 1140 * skeleton.c: Add skeleton test suite. 1141 1142Tue Jan 1 21:47:09 2002 Joe Orton <joe@manyfish.co.uk> 1143 1144 * Makefile.in: Use CPPFLAGS correctly. 1145 1146Sun Dec 9 14:02:50 2001 Joe Orton <joe@manyfish.co.uk> 1147 1148 * string-tests.c (ONCMP): New macro. (everywhere): Use it. 1149 (grow): Add ne_buffer_grow test. 1150 1151Sun Dec 9 13:12:27 2001 Joe Orton <joe@manyfish.co.uk> 1152 1153 * string-tests.c (concat2, concat3): New ne_buffer_concat tests. 1154 1155Sat Dec 1 18:35:29 2001 Joe Orton <joe@manyfish.co.uk> 1156 1157 * utils.c (any_request): Don't set the error context. 1158 1159Sat Dec 1 12:21:48 2001 Joe Orton <joe@manyfish.co.uk> 1160 1161 * auth.c (retry_failure, retry_fail_cb, retry_fail_serve): New 1162 functions. 1163 1164Tue Nov 27 21:24:22 2001 Joe Orton <joe@manyfish.co.uk> 1165 1166 * request.c (s_progress, provide_progress, send_progress): New 1167 functions. 1168 1169Sun Nov 18 19:11:23 2001 Joe Orton <joe@manyfish.co.uk> 1170 1171 * auth.c (send_response): New function. (auth_serve): Simplify 1172 using send_response. (retry_serve, retry_cb, retries): New 1173 functions. 1174 1175Sat Nov 17 22:32:29 2001 Joe Orton <joe@manyfish.co.uk> 1176 1177 * auth.c (auth_serve, basic): Simplify, use a persistent 1178 connection and any_request() to work with --disable-dav builds. 1179 1180Sat Nov 17 22:30:43 2001 Joe Orton <joe@manyfish.co.uk> 1181 1182 * utils.c (any_request): New function. 1183 1184Sun Oct 28 19:38:05 2001 Joe Orton <joe@manyfish.co.uk> 1185 1186 * Makefile.in: Use explicit link rules. 1187 1188Fri Oct 26 20:08:33 2001 Joe Orton <joe@manyfish.co.uk> 1189 1190 * request.c (persist_timeout): Test behaviour when connection 1191 closes after between 1 and 10 requests. 1192 1193Fri Oct 26 20:04:27 2001 Joe Orton <joe@manyfish.co.uk> 1194 1195 * utils.c (many_serve_string): New function. 1196 1197Sun Oct 7 17:48:53 2001 Joe Orton <joe@manyfish.co.uk> 1198 1199 * utils.c: New file. 1200 1201 * request.c (single_serve_string): Moved to utils.c. 1202 1203 * Makefile.in: Link utils.o into all libtest.a. Move libtest.a 1204 into this directory. 1205 1206Sun Oct 7 15:01:47 2001 Joe Orton <joe@manyfish.co.uk> 1207 1208 * request.c (persist, persist_timeout, serve_twice, is_alive): New 1209 functions. (closed_connection): Avoid race condition. 1210 1211Sat Oct 6 14:33:42 2001 Joe Orton <joe@manyfish.co.uk> 1212 1213 * request.c (prepare_request, finish_request): Renamed from 1214 make_request, destroy_request. (skip_interim_1xx, skip_many_1xx, 1215 skip_1xx_hdrs): New functions. 1216 1217Wed Oct 3 00:03:33 2001 Joe Orton <joe@manyfish.co.uk> 1218 1219 * request.c (fail_request): Optionally include a request body, and 1220 optionally presume the server runs "forever". (all callers 1221 changed). (serve_close, closed_connection): New function. 1222 1223Sat Sep 29 14:08:16 2001 Joe Orton <joe@manyfish.co.uk> 1224 1225 * compress.c (fetch): Update for new decompression API. 1226 1227Sat Sep 29 11:21:56 2001 Joe Orton <joe@manyfish.co.uk> 1228 1229 * compress.c: New file. 1230 1231 * Makefile.in: Build compress test, and some its helpers. Add 1232 -lneon to LIBS, and pick up NEON_CFLAGS. 1233 1234Thu Sep 27 20:31:51 2001 Joe Orton <joe@manyfish.co.uk> 1235 1236 * utils.h: New file. 1237 1238 * request.c: Moved ONREQ() into utils.h 1239 1240Mon Aug 27 00:34:56 2001 Joe Orton <joe@manyfish.co.uk> 1241 1242 * regress.c: New file. 1243 1244Mon Aug 27 00:33:13 2001 Joe Orton <joe@manyfish.co.uk> 1245 1246 * request.c (discard_request): Moved into common/child.c. 1247 (make_request, destroy_request): Convenience functions. 1248 (serve_non_http, not_http): New test. 1249 1250Sun Jun 24 22:15:46 2001 Joe Orton <joe@manyfish.co.uk> 1251 1252 * test.[ch], child.[ch]: Moved into 'common' subdir. 1253 1254 * Makefile.in: Updated likewise. 1255 1256Tue Jun 19 22:00:06 2001 Joe Orton <joe@manyfish.co.uk> 1257 1258 * util-tests.c (parse_dates): Test date parsers. 1259 1260Sun Jun 10 17:36:11 2001 Joe Orton <joe@manyfish.co.uk> 1261 1262 * request.c (infinite_headers, unbounded_headers): New test. 1263 1264Sun Jun 10 16:38:53 2001 Joe Orton <joe@manyfish.co.uk> 1265 1266 * child.c [HAVE_PIPE]: Use a pipe between child and parent to know 1267 when the child is ready to accept connections. Avoids boring 1268 sleep()ing. 1269 1270Fri Jun 8 21:19:35 2001 Joe Orton <joe@manyfish.co.uk> 1271 1272 * tests.c (segv, main): Remove SEGV handler in favour of useful 1273 core dumps. 1274 1275Mon Jun 4 01:15:52 2001 Joe Orton <joe@manyfish.co.uk> 1276 1277 * child.c (server_socket): Set socket family correctly. 1278 1279Thu May 31 08:58:41 2001 Joe Orton <joe@manyfish.co.uk> 1280 1281 * util-tests.c (md5_alignment): New test for MD5 alignment issue 1282 on Sparc. 1283 1284Thu May 31 00:40:43 2001 Joe Orton <joe@manyfish.co.uk> 1285 1286 * child.c (minisleep): Just sleep for a second anyway. 1287 1288Thu May 31 00:19:16 2001 Joe Orton <joe@manyfish.co.uk> 1289 1290 * child.c (server_socket): Casts for bind and setsockopt arguments. 1291 1292Thu May 31 00:02:21 2001 Joe Orton <joe@manyfish.co.uk> 1293 1294 * request.c (send_bodies): Test callback-provided request bodies. 1295 1296Wed May 30 22:37:08 2001 Joe Orton <joe@manyfish.co.uk> 1297 1298 * tests.c (child_segv): New function. (in_child): Install 1299 different SEGV handler. (segv): Sleep so the re-raised SEGV 1300 signal gets handled and we dump core. 1301 1302Wed May 30 19:24:32 2001 Joe Orton <joe@manyfish.co.uk> 1303 1304 * request.c (send_bodies): New test for sending request bodies. 1305 1306Wed May 16 21:19:49 2001 Joe Orton <joe@manyfish.co.uk> 1307 1308 * request.c (expect_response): Renamed, fold together 1309 single_request and do_get_request. (all callers changed) 1310 1311Wed May 16 20:59:19 2001 Joe Orton <joe@manyfish.co.uk> 1312 1313 * request.c (construct_get, run_request): New functions. 1314 (fold_headers, fold_many_headers, multi_header): New tests. 1315 1316Sat May 12 17:37:36 2001 Joe Orton <joe@manyfish.co.uk> 1317 1318 * server.c: Renamed from http-tests.c. 1319 1320Sat May 12 17:35:05 2001 Joe Orton <joe@manyfish.co.uk> 1321 1322 * child.c (minisleep): New function. (spawn_server, reap_server): 1323 New functions. (server_child): Call in_child. 1324 1325Sat May 12 17:33:57 2001 Joe Orton <joe@manyfish.co.uk> 1326 1327 * tests.c (main): Open two log files for debugging messages. 1328 (in_child): Switch to debug using child log. 1329 1330Sat May 12 11:18:18 2001 Joe Orton <joe@manyfish.co.uk> 1331 1332 * tests.c (main): Call sock_init. (segv): Re-raise SEGV signal 1333 after printing message. 1334 1335Mon May 7 10:38:50 2001 Joe Orton <joe@manyfish.co.uk> 1336 1337 * request.c (chunk_syntax_1, chunk_syntax_2, chunk_syntax_3, 1338 chunk_syntax_4, chunk_syntax_5): Split down from chunk_syntax. 1339 1340Mon May 7 10:37:38 2001 Joe Orton <joe@manyfish.co.uk> 1341 1342 * util-tests.c (base64): Update for ne_base64() changes. Add 1343 tests for binary data. 1344 1345Sun May 6 23:55:36 2001 Joe Orton <joe@manyfish.co.uk> 1346 1347 * tests.h (ON): Use global buffer 'on_err_buf'. Make 'name' 1348 variable public. 1349 1350Sun May 6 23:53:06 2001 Joe Orton <joe@manyfish.co.uk> 1351 1352 * request.c (single_serve_string): General version of 1353 single_serve_*. (single_request): Pass in expected response body. 1354 (single_get_*): Use new single_request/single_serve_string. 1355 (chunk_syntax): Add some tests for chunk syntax. 1356 1357Sun May 6 22:29:36 2001 Joe Orton <joe@manyfish.co.uk> 1358 1359 * child.c, child.h: New files, split down from request.c. 1360 1361Sun May 6 21:53:28 2001 Joe Orton <joe@manyfish.co.uk> 1362 1363 * request.c (spawn_server): Sleep for a while to let the server 1364 get going. (do_request): Use passed parameters when creating 1365 request. 1366 1367Sun May 6 21:34:27 2001 Joe Orton <joe@manyfish.co.uk> 1368 1369 * request.c (spawn_server): Use callback to handle the server side 1370 of connection. (single_request): New function. (single_get_eof, 1371 single_get_clength, single_get_chunked): New functions. 1372 (reap_server): New function. 1373 1374Sun May 6 20:02:32 2001 Joe Orton <joe@manyfish.co.uk> 1375 1376 * request.c: New file. 1377 1378Wed May 2 12:08:53 2001 Joe Orton <joe@manyfish.co.uk> 1379 1380 * string-tests.c (token1, token2, nulls, empty, quoted, badquotes, 1381 shave, combo): New tests for ne_token and ne_shave. 1382 1383Wed May 2 12:04:52 2001 Joe Orton <joe@manyfish.co.uk> 1384 1385 * string-tests.c: Updated for sbuffer -> ne_buffer changes. 1386 1387Wed May 2 01:08:45 2001 Joe Orton <joe@manyfish.co.uk> 1388 1389 * Makefile.in (check): Alias for test goal. 1390 1391Wed May 2 01:08:36 2001 Joe Orton <joe@manyfish.co.uk> 1392 1393 * tests.c (segv): Disable SEGV handler once handling it. 1394 1395Sun Apr 29 14:57:59 2001 Joe Orton <joe@manyfish.co.uk> 1396 1397 * uri-tests.c (slash): Check behaviour of passing zero-length URI. 1398 1399Sun Apr 29 13:43:59 2001 Joe Orton <joe@manyfish.co.uk> 1400 1401 * Makefile.in (clean): New target. (libtest.a): Depend on libneon 1402 to force rebuilds when necessary. (all): Build but don't test. 1403 1404Sun Apr 29 13:41:13 2001 Joe Orton <joe@manyfish.co.uk> 1405 1406 * util-tests.c: Add status line with leading garbage. 1407 1408Sun Apr 29 13:39:53 2001 Joe Orton <joe@manyfish.co.uk> 1409 1410 * util-tests.c (status_lines): Add some tests for invalid status 1411 lines too. 1412 1413Sun Apr 29 13:38:31 2001 Joe Orton <joe@manyfish.co.uk> 1414 1415 * tests.c (main): Use basename(argv[0]) as suite name. Fail if no 1416 tests are in the functions vector. 1417 1418Sun Apr 29 11:06:45 2001 Joe Orton <joe@manyfish.co.uk> 1419 1420 * tests.c (segv): New function. (main): Add SIGSEGV handler. 1421 1422Fri Apr 27 00:00:12 2001 Joe Orton <joe@manyfish.co.uk> 1423 1424 * util-tests.c (base64): New test. 1425 1426Thu Apr 26 22:39:44 2001 Joe Orton <joe@manyfish.co.uk> 1427 1428 * uri-tests.c (just_hostname, just_path, null_uri): New tests. 1429 1430Thu Apr 26 22:03:58 2001 Joe Orton <joe@manyfish.co.uk> 1431 1432 * util-tests.c (md5): Test of MD5 functions. 1433 1434Mon Apr 23 23:08:02 2001 Joe Orton <joe@manyfish.co.uk> 1435 1436 * http-tests.c (simple_head): Add HEAD test. 1437 1438Mon Apr 23 22:49:52 2001 Joe Orton <joe@manyfish.co.uk> 1439 1440 * http-tests.c (simple_get): Check for EOF after reading response 1441 body of HTTP/1.0 GET request. 1442 1443 (null_resource): New function, test for 404 on null resource. 1444 1445 1446