summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* * src/ne_auth.c: Fix build, from Nathanael Rensen.joe2012-07-061-1/+1
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1894 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_socket.c (timed_connect, ne_sock_connect): Capture socketjoe2012-07-051-2/+2
| | | | | | | error code correctly for Windows. (Vlad Grachov) git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1893 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Patch from Nathanael Rensen:joe2012-07-052-2/+3
| | | | | | | | | | * src/ne_auth.c (ah_post_send): Clear SSPI context for any non-auth-failure response code. * src/ne_sspi.c (ne_sspi_clear_context): Clear continueNeeded flag. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1892 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
* * src/ne_basic.h: Add NE_CAP_EXT_MKCOL.joe2012-01-192-1/+3
| | | | | | | | | * 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
* * 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-254-0/+23
| | | | | | | | | | | | | | | | * 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
* * 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
* * 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-023-6/+36
| | | | | | | | | | | | | | * 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
* * 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
* * src/ne_ssl.h (ne_ssl_clicert_import): New function.joe2011-06-234-14/+57
| | | | | | | | | | | | | | | | | | | | | * 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
* * 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
* * 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
* * src/ne_session.c (ne__ssl_match_hostname): Deny a wildcard matchjoe2010-09-281-0/+19
| | | | | | | | | | | 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
* * src/ne_request.c (open_connection): If SOCKS proxy fails, set returnjoe2010-09-281-0/+1
| | | | | | | | | 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
* * 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
* * src/ne_request.c (body_fd_send): Handle read() errors; thanks to Loujoe2010-05-051-2/+23
| | | | | | | | | | | 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
* * src/ne_socket.c (raw_poll): Check for execptions in select().joe2010-04-231-2/+4
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1799 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_auth.c: Add handling of 2xx responses in SSPI code.joe2010-04-211-11/+43
| | | | | | | (Danil Shopyrin <danil visualsvn.com>) git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1797 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_session.c (ne_session_create): Fix to enable SNI by default again.joe2010-03-291-1/+3
| | | | | | | (Tobias Gruetzmacher) git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1794 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_request.c (do_connect): Tweak debugging.joe2010-03-111-2/+3
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1792 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/socket.c (ssl_closure, ssl_truncate): Don't expect cleanjoe2010-01-112-11/+10
| | | | | | | closure. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1780 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_socket.c (ne_sock_accept): Set the socket error string.joe2010-01-101-2/+4
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1778 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_defs.h: Only define NE_PRIVATE if undefined.joe2010-01-081-1/+3
| | | | | | | * configure.in: Define NE_PRIVATE to 'extern' for a static build. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1777 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_openssl.c (verify_callback): Handle OpenSSL error codejoe2009-12-301-0/+1
| | | | | | | | | X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT as an untrusted cert. Submitted by: Tom C <tomc.neon pnl.gov> git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1770 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_gnutls.c (map_verify_failures): Fix build for GnuTLS < 2.8.joe2009-12-021-0/+2
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1750 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Clear sspi_token buffer after each request.joe2009-12-021-1/+12
| | | | | | | | | | | * src/ne_auth.c (request_sspi): Return NULL if sspi_token is not present. * src/ne_auth.c (ah_post_send): Clear the buffered sspi_token. Submitted by: Danil Shopyrin <danil visualsvn.com> git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1748 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_ntlm.c (mkhash): Fix buffer overflow (basic@mozdev.org).joe2009-12-021-1/+1
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1747 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_ntlm.c (ne__ntlm_authenticate)kso2009-11-192-1/+4
| | | | | | | | | * src/ne_auth.c (ntlm_challenge) - in case of session timeout, do not call auth callback; use existing credentials. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1746 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_utils.c, src/ne_utils.h : Added NE_FEATURE_SSPI.kso2009-11-132-1/+8
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1745 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* fixed 'missing symbol' win2k runtime problem.kso2009-11-131-0/+1
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1744 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845