summaryrefslogtreecommitdiff
path: root/test/compress.c
Commit message (Collapse)AuthorAgeFilesLines
* * src/ne_ssl.h (ne_ssl_clicert_import): New function.joe2011-06-231-19/+2
| | | | | | | | | | | | | | | | | | | | | * src/ne_openssl.c (parse_client_cert): Factor out from ne_ssl_clicert_read. (ne_ssl_clicert_read): Reimplement using above. (ne_ssl_clicert_import): New function. * src/ne_gnutls.c (ne_ssl_clicert_import): Factor out from ne_ssl_clicert_read. (ne_ssl_clicert_import): Reimplement using above. * test/utils.c (file_to_buffer): Move to here... * test/compress.c (file2buf): ... from here. (do_fetch): Use it. * test/ssl.c (clicert_import): New test. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1847 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/utils.c (double_serve_sstring): New function.joe2008-04-031-36/+39
| | | | | | | | * test/compress.c (retry_notcompress, retry_compress_helper, retry_compress):Use double_serve_sstring. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1439 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Forward-port the compression-vs-retry fix by using the new ne_unhook_*joe2006-02-251-2/+2
| | | | | | | | | | | | | | | functions: * src/ne_compress.c (gz_pre_send): New function. (ne_decompress_reader): Don't initialize all context state here; register pre_send hook. (ne_decompress_destroy): Unregister hook; move function lower in module. * test/compress.c: retry_compress is no longer XFAIL. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@942 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * Makefile.in (install-tests): New target.joe2005-06-291-4/+1
| | | | | | | | | | | | | | | * configure.in: Add --enable-install-tests to support test suite installation; only add -no-install to TEST_LDFLAGS if not given. * test/Makefile.in (install, random.txt): New targets. (LINK): Use TEST_LDFLAGS. (ZLIB_HELPERS): Add random.txt. * test/compress.c (init): Use random.txt in pwd rather than trying to find NEWS from the srcdir. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@648 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Merge r627, r629, r631 from 0.25.x branch:joe2005-06-221-0/+56
| | | | | | | | | | | | | | | | | | | | * src/ne_auth.c (ah_post_send): Print auth_hdr safely. Remove unused SAFELY macro. * src/ne_compress.c (process_footer): Don't invoke reader callback with len=0 here as well when end-of-response is really reached. (do_inflate): Do pass on the reader callback return value. * test/compress.c (reader): Catch multiple invocations with len=0. (retry_accept): Reset the reader state. (reader_abort, compress_abort): New functions. * src/ne_xml.c (end_element): Use NE_DBG_XML debug channel for consistency. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@636 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/compress.c: Fix signedness warning.joe2005-02-281-1/+1
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@506 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/compress.c (tests): retry_notcompress passes sincejoe2005-01-211-1/+1
| | | | | | | response-header-handling fixes. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@435 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/compress.c (do_fetch): Do call ne_decompress_destroy still.joe2004-10-311-0/+1
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@344 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Update ne_decompress interface to handle errors by aborting thejoe2004-10-251-9/+34
| | | | | | | | | | | | | | | | | | | response rather than returning errors via ne_decompress_destroy. * src/ne_compress.c (struct ne_decompress_s): Remove NE_Z_ERROR state. (parse_header, do_inflate): Don't set error state. (gz_reader): Do truncated response handling properly at end-of-response. Don't set state to NE_Z_ERROR on error cases, just return failure and abort the response. (ne_decompress_destroy): Return void, do no error handling here. * test/compress.c (reader): Abort on failure. (do_fetch): Handle errors returned via ne_request_dispatch rather than ne_decompress_destroy. (fail_trailing_1b, fail_empty, notcomp_empty): New tests. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@336 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Allow response body callbacks to return an error:joe2004-10-111-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | * src/ne_request.h (ne_block_reader): Return error code. * src/ne_request.c (ne_read_response_block): Fail with -1 if a reader callback returns an error. * src/ne_xml.c (ne_xml_parse_v): Return 0 (for the moment). * src/ne_basic.c (get_to_fd): Return error. * src/ne_compress.c (gz_reader): Return 0 (mostly), or pass through. * src/ne_auth.c (auth_body_reader): Return 0. * test/compress.c (reader): Return error. * test/request.c (collector): Return 0. (abortive_reader, abort_reader): New functions. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@308 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Merge trunk up to current neon CVS HEAD.joe2004-10-021-19/+154
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@256 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Import neon-0.24.1.joe2004-10-021-2/+17
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/branches/0.24.x@244 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Import neon 0.24.0 to begin 0.24.x branch.joe2004-10-021-0/+216
git-svn-id: http://svn.webdav.org/repos/projects/neon/branches/0.24.x@243 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845