summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* * test/common/child.c (new_spawn_server2): Factored out, returnjoe2012-06-262-1/+25
| | | | | | | address used. Fix to ensure local host address is resolved. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1889 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_session.c (ne_set_addrlist2): Factored out ofjoe2012-06-263-2/+19
| | | | | | | | | | ne_set_addrlist, take port as argument. (ne_set_addrlist): Reimplement using the above. * src/neon.vers: Add ne_set_addrlist2. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1888 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_auth.h: Add NE_AUTH_GSSAPI_ONLY, NE_AUTH_SSPI.joe2012-06-262-5/+21
| | | | | | | | | | * src/ne_auth.c: Adjust for new constants. (auth_register): Map NE_AUTH_GSSAPI to _GSSAPI_ONLY|_SSPI Patch by Nathanael Rensen <nathanael.rensen zettaserve.com> git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1887 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/ssl.c (fail_ssl_request_with_error2): Fix tests with "fake" hostnamejoe2012-06-251-4/+17
| | | | | | | where localhost maps to multiple addresses. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1886 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/uri-tests.c (cmp): Don't depend on exact magnitude of *cmp.joe2012-05-221-1/+1
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1885 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/basic.c (options2): Untabify.joe2012-01-191-18/+18
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1882 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_basic.h: Add NE_CAP_EXT_MKCOL.joe2012-01-193-2/+51
| | | | | | | | | * src/ne_basic.c (options_map): Add NE_CAP_EXT_MKCOL. * test/basic.c (options2): Add test. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1881 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_socket.c (ne_iaddr_reverse) [!USE_GETADDRINFO]:joe2011-12-091-1/+3
| | | | | | | Fix build with Open Watcom compiler. (NormW <normanwheeler bigpond.com) git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1874 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_gnutls.c (ne_ssl_context_get_flag): Add function.joe2011-12-091-1/+6
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1873 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_openssl.c (ne_ssl_context_create): Fail hard with non-SSLjoe2011-12-091-3/+6
| | | | | | | | | build on request for SSLv2 server context (ne_ssl_context_get_flag): Fix build. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1872 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/common/tests.c (main): Fix grammar.joe2011-12-091-1/+1
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1871 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_openssl.c (ne_ssl_context_create): Disable TLS ticket supportjoe2011-11-251-0/+5
| | | | | | | since it inhibits testing of session caching. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1866 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Fix build and test suite for OpenSSL without SSLv2 support.joe2011-11-255-0/+31
| | | | | | | | | | | | | | | | * src/ne_openssl.c (ne_ssl_context_get_flag): New function. (ne_ssl_context_create): Fix compile without SSLv2. * src/ne_session.c (ne_set_session_flag): Retrieve SSLv2 flag value after setting it. * src/ne_ssl.h, src/neon.vers: Add ne_ssl_context_get_flag. * test/ssl.c (simple_sslv2): Retrieve flag setting and skip test if it was not enabled. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1865 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_uri.c (ne_path_escape): Fix over-allocation of memory.joe2011-11-221-2/+2
| | | | | | | (Pierre Crokaert <pct actl.be>) git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1864 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_socket.c (ne_addr_resolve): Use a bit-wise joe2011-10-031-1/+1
| | | | | | | comparison, suggested by Ivan Zhakov. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1863 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_socket.c (timed_connect): Don't overwrite an error whenjoe2011-10-031-3/+3
| | | | | | | resetting fd flags. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1862 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_socket.c: Tweak comment.joe2011-10-031-1/+3
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1861 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_request.c (ne_set_request_flag, ne_get_request_flag): Fix joe2011-10-031-2/+2
| | | | | | | warnings with gcc 4.5 -Wenum-compare. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1860 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/common/child.c: Better debugging output.joe2011-09-181-4/+10
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1859 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/neon.vers: No version 0.31 needed (yet?!).joe2011-09-181-3/+0
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1858 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/Makefile.in: Update deps.joe2011-09-181-6/+6
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1857 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_auth.c (continue_sspi, auth_register): Use the proxy hostnamejoe2011-09-181-9/+20
| | | | | | | for proxy auth with SSPI. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1856 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/common/child.c (spawn_server, spawn_server_repeat): Betterjoe2011-09-141-2/+4
| | | | | | | debugging output. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1855 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/request.c, test/ssl.c, test/redirect.c: Fix variousjoe2011-09-143-1/+6
| | | | | | | memory leaks in the test suite, found by --enable-memleak. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1854 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_sspi.c (canonical_hostname): Use NE_ADDR_CANON to determinejoe2011-09-021-20/+10
| | | | | | | canonical hostname. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1853 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_socket.h: Add NE_ADDR_CANON flag, ne_addr_canonical.joe2011-09-024-7/+56
| | | | | | | | | | | | | | * src/ne_socket.c (struct ne_sock_addr_s): Add name field for non-gai. (ne_addr_resolve): Handle NE_ADDR_CANON. (ne_addr_canonical): New function. (ne_addr_destroy): Free name field. * test/socket.c (addr_canonical): New test. * src/neon.vers: Add ne_addr_canonical. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1852 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/ssl.c (cache_verify): Trap errors from request dispatch,joe2011-07-101-4/+4
| | | | | | | remove unused variable. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1851 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/props.c (unbounded_response): Remove set-but-unused variable.joe2011-07-101-3/+0
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1850 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_ssl.h: Tweak wording on ne_ssl_clicert_read,import.joe2011-06-231-8/+9
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1849 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * NEWS: Synch with 0.29.x.joe2011-06-231-0/+34
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1848 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_ssl.h (ne_ssl_clicert_import): New function.joe2011-06-238-33/+98
| | | | | | | | | | | | | | | | | | | | | * 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
* * doc/ref/proxy.xml, doc/ref/sess.xml, doc/manual.xml: Split out, andjoe2011-06-174-31/+205
| | | | | | | complete, documentation of proxy support. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1846 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_socket.c (ne_sock_accept_ssl) [HAVE_GNUTLS]:joe2011-05-031-1/+1
| | | | | | | | Require a client cert if necessary, matching behaviour w/ OpenSSL. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1845 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/Makefile.in: Update deps.joe2011-05-031-31/+33
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1844 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Fix some errors flagged by a Coverity scan:joe2011-05-033-5/+6
| | | | | | | | | | | | * src/ne_auth.c (verify_negotiate_response): Check for NULL pointer. * src/ne_gnutls.c (check_certificate): Initiatialize 'failures'. (pkcs12_parse): Check for _crt_init failure. * src/ne_session.c (ne__ssl_set_verify_err): Pass size-1 to strncat. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1838 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_auth.cjoe2011-05-031-2/+2
| | | | | | | | | (ah_post_send): Clear SSPI context only after successful authentication. Submitted by: Ivan Zhakov <ivan visualsvn.com> git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1837 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_gnutls.c (ne__ssl_init): Fix for GnuTLS with Nettle.joe2011-05-032-0/+15
| | | | | | | | | * src/ne_auth.c (get_cnonce): Likewise. Submitted by: Arfrever Frehtes Taifersar Arahesis <arfrever.fta gmail.com> git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1836 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_request.c (ne_request_create): Pass copied method tojoe2011-03-011-1/+1
| | | | | | | pre_send hooks to avoid lifetime issues (Patrick Ohly). git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1833 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_gnutls.c (provide_client_cert): Return success with no certjoe2010-11-111-3/+5
| | | | | | | | if no cert is available; match behaviour with OpenSSL. Thanks to Patrick Ohly. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1828 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * doc/ref/iaddr.xml: Update ne_iaddr_* docs.joe2010-11-071-11/+60
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1827 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_socket.c (ne_sock_connect_ssl): Ignore TLS warningsjoe2010-10-091-1/+3
| | | | | | | during handshake (Bryan Cain). git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1819 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/socket.c (addr_reverse) [HAVE_GETHOSTNAME]: Accept systemjoe2010-10-092-3/+15
| | | | | | | | | hostname as reverse of 127.0.0.1. * macros/neon-test.m4 (NEON_TEST): Check for gethostname(). git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1818 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_session.c (ne__ssl_match_hostname): Deny a wildcard matchjoe2010-09-283-1/+30
| | | | | | | | | | | against anything which parses as an IP address. * test/ssl.c (fail_wildcard_ip): Add test case. * test/makekeys.sh: Generate test wildcard IP cert. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1811 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/request.c: Adjust to new test API throughout.joe2010-09-281-96/+136
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1810 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_request.c (open_connection): If SOCKS proxy fails, set returnjoe2010-09-282-0/+35
| | | | | | | | | value to NE_ERROR. * test/request.c (socks_fail): Add test case. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1809 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_auth.c (ah_post_send): Always clear the SSPI context.joe2010-09-221-1/+3
| | | | | | | | (Danil Shopyrin) git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1805 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/ssl.c (fail_ssl_request_with_error2): Document better.joe2010-09-041-7/+16
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1804 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_session.h: Wording tweak.joe2010-09-041-4/+3
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1803 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * macros/neon.m4 (NE_CHECK_FUNCS): Fix AI_ADDRCONFIG detection.joe2010-09-041-1/+2
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1802 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_request.c (body_fd_send): Handle read() errors; thanks to Loujoe2010-05-053-4/+89
| | | | | | | | | | | Montulli. * test/request.c (serve_mirror, send_length): Add test case. * test/Makefile.in (foobar.txt): Create test file. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1801 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845