summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* * doc/ref/err.xml: Update ne_get_error docs.joe2007-07-031-6/+20
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1179 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * doc/manual.xml: Split name and version to silence newjoe2007-07-021-1/+2
| | | | | | | docbook-xsl stylesheets. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1178 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/request.c (fail_statusline): Adjust for new error message.joe2007-07-021-3/+3
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1177 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_openssl.c (check_identity): Take URI object as argument;joe2007-07-024-10/+70
| | | | | | | | | | | | | handle URI subjectAltNames. (check_certificate, populate_cert): Adjust accordingly. * test/ssl.c (uri_altname, fail_bad_urialtname): Add tests. (cert_identities): Test the URI-altname cert. * test/openssl.conf, test/makekeys.sh: Create new test certs. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1176 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_request.c, src/ne_redirect.c, src/ne_basic.c: Update errorjoe2007-07-023-10/+10
| | | | | | | messages to omit trailing period. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1175 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/xml.c (parse_match): Give descriptive failures.joe2007-07-021-11/+17
| | | | | | | (fail_parse): Enable tests for ill-formed UTF-8. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1174 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_gnutls.c (ne_ssl_clicert_read): Update code/comment onjoe2007-06-271-1/+2
| | | | | | | friendly_name handling in encrypted c.certs. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1173 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_gnutls.c (pkcs12_parse, ne_ssl_clicert_read): Removejoe2007-06-271-9/+4
| | | | | | | now-redundant code on encrypted-cert path. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1172 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_gnutls.c (pkcs12_parse, ne_ssl_clicert_read): Fix handling ofjoe2007-06-271-5/+8
| | | | | | | PKCS#12 client certs with zero-length password. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1171 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * macros/neon.m4 (NEON_SSL): Check for gnutls_x509_dn_get_rdn_ava andjoe2007-06-272-5/+141
| | | | | | | | | | | iconv. * src/ne_gnutls.c [HAVE_GNUTLS_X509_DN_GET_RDN_AVA] (convert_dirstring, append_dirstring, ne_ssl_readable_dname): Implement better RDN handling using GnuTLS 1.7.x interfaces. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1170 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * doc/ref/alloc.xml: Fix prototype, thanks to Joshua Swink.joe2007-06-171-1/+0
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1169 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_request.c (proxy_tunnel): Pass back error string and code forjoe2007-04-032-3/+32
| | | | | | | | | CONNECT failure. * test/ssl.c (auth_tunnel_fail): Add regression test for above. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1165 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * Makefile.in (install-nls-yes): Fix for VPATH builds, patch from Hansjoe2007-02-261-1/+1
| | | | | | | Meine. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1164 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * config.hw.in: Define NE_FMT_NE_OFF_T.joe2007-02-081-0/+1
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1162 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_auth.c (ah_post_send): Fix for SSPI to avoid invoking thejoe2007-02-071-1/+1
| | | | | | | | NULL response header verification callback (patch from dicuccio@comcast.net). git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1161 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_auth.c: Update comment.joe2007-02-071-2/+1
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1160 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_string.c (ne_strerror): Handle failure cases for POSIX-stylejoe2007-02-072-1/+12
| | | | | | | | | | | strerror_r; always use a temp buffer and copy back to truncate rather than fail for a short input buffer. * test/string-tests.c (str_errors): Test for handling of bogus errno values into too-short buffer. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1159 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/util-tests.c (digest_md5, md5): Meet alignment requirement ofjoe2007-02-061-4/+5
| | | | | | | MD5 API. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1158 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_socket.c (write_raw): Work around QNX issue passing largejoe2007-02-051-0/+6
| | | | | | | buffers to send() over loopback; send 8K at a time. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1156 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_auth.c (verify_negotiate_response): Fix comparisonjoe2007-02-051-2/+3
| | | | | | | | of Negotiate response header token, and set error message on failure. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1155 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_auth.c (ah_pre_send): Set request idempotent flagjoe2007-02-051-0/+7
| | | | | | | for SSPI to prevent connection closure. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1154 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_locks.c (lk_pre_send): Terminate If header with CRLF not LF.joe2007-02-051-1/+1
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1153 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Build fixes for SSPI code on MingW from Gisle Vanem:joe2007-01-261-1/+5
| | | | | | | | * src/ne_sspi.c: Define SECURITY_ENTRYPOINT if missing. (base64ToBuffer): Fix cast. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1152 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Fix 0.26.x regression; ensure the "attempt" counter passed to credsjoe2007-01-112-4/+12
| | | | | | | | | | | | | | | | | callbacks reflects the number of invocation of that callback only per request: * src/ne_auth.c (struct auth_handler): Add attempt field. (get_credentials): Use per-handler attempt counter and post-increment same. (ah_create): Reset per-request attempt counters. (auth_register): Initialize attempt counter. * test/auth.c (fail_challenge): Add test for attempt handling regression. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1132 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_uri.c (uri_lookup): Fix cast to prevent buffer under-read onjoe2007-01-112-1/+4
| | | | | | | | | non-ASCII characters (CVE-2007-0157, Laszlo Boszormenyi). * test/uri-tests.c (parse): Add test case. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1131 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_auth.c (digest_challenge): Fix comment.joe2007-01-091-1/+1
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1130 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_auth.c (digest_challenge): Fix to fail correctly for invalidjoe2007-01-062-30/+75
| | | | | | | | | | | | | | case where stale=true is given with an initial challenge; fix to not leak sess->nonce for a valid stale challenge. * test/auth.c (struct digest_parms): Add stale field, enum value. (make_digest_header): Send stale=true as appropriate. (serve_digest): Adjust to serve challenges with stale=true. (digest): Add test for stale=true handling. (digest_failures): Add test for error stale=true failure case. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1129 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_request.c (ne_begin_request): Move call to lookup_host from here...joe2007-01-051-14/+12
| | | | | | | (open_connection): ...to here; and simplify slightly as a result. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1128 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Fix nextnonce handling in Digest auth:joe2007-01-042-31/+50
| | | | | | | | | | | | | | | | * src/ne_auth.c (verify_digest_response): Reset nonce-count on receipt of next-nonce parameter in A-I response header. * test/auth.c (struct digest_parms): Add send_nextnonce, num_requests fields. (make_authinfo_header): Invent new nonce if send_nextnonce field is set. (serve_digest, test_digest): Handle num_requests requests. (digest): Set new parameter fields; test for next-nonce handling. (digest_failure): Set new paramater fields. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1126 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/auth.c (make_authinfo_header, digest_failures): Add test forjoe2007-01-041-5/+6
| | | | | | | failure to parse the nc paramater in an A-I response header. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1125 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Give descriptive error messages for multiple-challenge authenticationjoe2007-01-032-55/+207
| | | | | | | | | | | | | | | | | | | | | | failures: * src/ne_auth.c (struct auth_class): Add error_noauth field. (struct auth_protocol): Pass errmsg buffers to challenge callback; specify error message location for verify callback. (challenge_error): New function. (get_credentials, basic_challenge, continue_negotiate, negotiate_challenge, digest_challenge): Take errmsg buffer; use challenge_error on failure. (verify_negotiate_response): Create errmsg buffer, pass to continue_negotiate, and set session error string on failure. (auth_challenge): Create error buffer and build error message during challenge parsing. * test/auth.c (digest_failures): Adjust for new error string. (fail_cb, fail_challenge): Add tests for challenge parse failures. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1124 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/socket.c (connect_timeout): Remove redundant code.joe2006-12-291-8/+1
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1123 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_session.h (ne_ssl_set_clicert, ne_ssl_trust_cert): Clarifyjoe2006-12-281-3/+5
| | | | | | | lack of lifetime requirement for passed-in objects. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1121 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * TODO: Remove features already added.joe2006-12-281-13/+0
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1120 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Add support for configurable socket connect timeouts:joe2006-12-288-24/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/ne_socket.h (ne_sock_connect_timeout): New function. (ne_sock_connect): Clarify timeout handling. * src/ne_socket.c: Define USE_NONBLOCKING_CONNECT if appropriate. Define NE_ISINPROGRESS. (struct ne_socket_s): Add cotimeout field. (timed_connect): New function. (connect_socket): Renamed from raw_connect; use timed_connect; takes socket structure and sets ->error string on failure. (ne_sock_connect): Adapt to use connect_socket. (ne_sock_connect_timeout): New function. * src/ne_private.h (struct ne_session_s): Add cotimeout field. * src/ne_session.h (ne_set_connect_timeout): New prototype... * src/ne_session.c (ne_set_connect_timeout): ...implement it. * src/ne_request.c (do_connect): Set socket timeout if appropriate. * macros/neon.m4 (LIBNEON_SOURCE_CHECKS): Check for fcntl, getsockopt, fcntl.h and socklen_t. * test/socket.c (connect_timeout): Add test (disabled by default). git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1119 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_socket.c (raw_poll): Factor out from readable_raw.joe2006-12-281-28/+41
| | | | | | | (readable_raw): Use it. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1118 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Merge r1106 from 0.25.x branch:joe2006-12-281-6/+9
| | | | | | | | * macros/neon-test.m4 (NE_FORMAT_TIMET): Factor out. (NEON_TEST): Use it. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1109 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/request.c (fail_double_lookup, proxy_no_resolve): Use hostnamejoe2006-11-301-2/+2
| | | | | | | in the .invalid TLD, reserved by RFC2606. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1104 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/socket.c (write_reset): Warn rather than fail for a failurejoe2006-11-081-2/+6
| | | | | | | to elicit an RST. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1103 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Note the reports about a GSSAPI problem.joe2006-10-311-0/+4
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1102 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Fix real cause of h_errno problem on HP-UX (Albert Chin):joe2006-10-302-8/+1
| | | | | | | | | | * macros/neon.m4: Drop _XOPEN_SOURCE_EXTENDED definition for HP-UX. * src/ne_socket.c: Use HAVE_DECL_H_ERRNO macro correctly. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1098 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_session.h: Remove trailing comma from new enum (Albert Chin).joe2006-10-301-1/+1
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1097 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_session.h: Docs clarification for new notification interface.joe2006-10-301-3/+6
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1096 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/request.c (s_progress): Fix to use ne_off_t types and formatjoe2006-10-241-3/+3
| | | | | | | strings. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1095 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Add add new type-safer notification/status API:joe2006-10-246-39/+139
| | | | | | | | | | | | | | | | | | | | | | | * src/ne_session.h (ne_notify_status): Redefine callback type, passing pointer to ne_session_status_info structure. * src/ne_request.c (notify_status): Invoke notify callback, and progress callback as appropriate. (send_request_body, ne_read_response_block, lookup_host, ne_begin_request, do_connect): Adjust to set up and invoke the notify callback. * src/ne_openssl.c (ne__negotiate_ssl): Drop notify callback invocation. * src/ne_private.h (struct ne_session_s): Store status union. * macros/neon.m4: Define NE_FMT_NE_OFF_T. * test/request.c (status_cb, status): Add new test. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1094 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_auth.c (ah_post_send): Correctly test ->flags againstjoe2006-10-241-1/+1
| | | | | | | AUTH_FLAG_VERIFY_NON40x flag. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1093 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Simplify LFS support, drop *64 transition functions:joe2006-10-247-129/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/ne_defs.h: Add ne_off_t typedef. * src/ne_request.h (ne_set_request_body_fd64, ne_set_request_body_provider64): Removed. (ne_set_request_body_fd, ne_set_request_body_provider): Take ne_off_t arguments. * src/ne_internal.h: Move LFS definitions here... * src/ne_request.c: ...from here. (ne_set_request_body_fd64, ne_set_request_body_provider64): Removed. (ne_set_request_body_fd, ne_set_request_body_provider): Adjust for ne_off_t arguments. * src/ne_basic.h (ne_get_range64): Removed prototype. (ne_content_range): Use ne_off_t offsets. * src/ne_basic.c (ne_get_range64): Removed function. (ne_get_range): Adjust for ne_off_t offsets. * test/largefile.c (send_high_offset, read_large_response): Adjust to use normal interfaces. Save and restore debug mask. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1092 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * macros/neon.m4 (NE_CHECK_OS): Split out from NE_OS_*. Conditionallyjoe2006-10-052-31/+21
| | | | | | | | | | | | | add _XOPEN_SOURCE_EXTENDED=1 to CPPFLAGS for HP-UXes. (LIBNEON_SOURCE_CHECKS): Remove _XOPEN_SOURCE_EXTENDED definition here. (NE_OS_MINGW, NE_MACOSX): Removed. (NE_SEARCH_LIBS): Adjust for ne_cv_os_uname. * src/ne_socket.c: Don't set _XOPEN_SOURCE_EXTENDED here. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1086 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/makekeys.sh: Remove hostname-based munging for wildcard cert; alwaysjoe2006-10-052-29/+13
| | | | | | | | | | | use *.example.com. * test/ssl.c (tunnel_server): New function. (wildcard_match): Use a proxy to avoid using real hostnames. (wildcard_init): Removed function. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1084 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * macros/neon.m4 (NEON_I18N): Really disable i18n if libintl.h is notjoe2006-10-051-2/+3
| | | | | | | detected. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1080 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845