summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* src/ne_uri.c: Fix comment-in-comment.joe2018-11-141-1/+1
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2043 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_gnutls.c (provide_client_cert): Fix allocation size,joe2018-11-141-1/+1
| | | | | | | submitted by Henrik Holst. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2042 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_uri.c: Note that only one bit is left for a 16-bit short.joe2018-11-021-0/+1
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2041 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_uri.c: Save a few bytes by using shorts for uri_chars lookup table.joe2018-11-021-1/+1
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2040 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_ntlm.c (ne_output_ntlm): Remove redundant assignment.* ↵joe2018-10-121-1/+1
| | | | | | src/ne_ntlm.c (ne_output_ntlm): Remove redundant assignment.* src/ne_ntlm.c (ne_output_ntlm): Remove redundant assignment.* src/ne_ntlm.c (ne_output_ntlm): Remove redundant assignment.* src/ne_ntlm.c (ne_output_ntlm): Remove redundant assignment.* src/ne_ntlm.c (ne_output_ntlm): Remove redundant assignment.* src/ne_ntlm.c (ne_output_ntlm): Remove redundant assignment.* src/ne_ntlm.c (ne_output_ntlm): Remove redundant assignment. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2035 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_dates.c (ne_asctime_parse, ne_rfc1123_parse): Fail for sscanfjoe2018-10-121-11/+12
| | | | | | | failure. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2033 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_request.c (initial_request_headers): Renamed fromjoe2018-10-121-11/+12
| | | | | | | | add_fixed_headers; return a buffer object. (ne_request_create): Adjust use accordingly. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2031 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_socket.c (error_ossl): Return NE_SOCK_RETRY forjoe2018-10-121-0/+4
| | | | | | | | SSL_ERROR_WANT_READ. (read_ossl, readable_ossl): Update for OpenSSL 1.1.1. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2030 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Note that -5 is a reserved NE_SOCK_ value.joe2018-09-251-0/+1
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2026 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_socket.c (error_ossl): Return NE_SOCK_RETRY forjoe2018-09-251-7/+57
| | | | | | | | | SSL_ERROR_WANT_READ. (read_ossl, readable_ossl): Update for OpenSSL 1.1.1, block/timeout properly even if handshake data is received. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2025 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_socket.c (ne_sock_close): Complete a bidirectional shutdownjoe2018-09-241-4/+5
| | | | | | | for OpenSSL. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2022 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_pkcs11.c (pk11_rsa_encrypt): Fix for padding used withjoe2018-09-241-2/+2
| | | | | | | TLSv1.3 under RSASSA-PSS. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2021 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_openssl.c (ne_ssl_context_create): Enable Post-Handshake Authjoe2018-09-241-0/+3
| | | | | | | with OpenSSL 1.1.1. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2019 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_xml.c (ne_xml_parse): Avoid clang warning from strcpy use.joe2018-09-243-3/+4
| | | | | | | | | * src/ne_session.c (ne__ssl_set_verify_err): Ditto. * src/ne_request.c (body_fd_send): Ditto. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2017 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_xml.c (ne_xml_parse): Avoid clang warning from strcpy use.joe2018-09-241-1/+1
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2016 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_request.c (ne_set_request_flag): Fix bounds check.joe2018-09-241-1/+1
| | | | | | | * test/request.c (safe_flags): Add regression test. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2015 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_defs.h: Define ne_attribute_alloc_size.joe2018-09-242-3/+6
| | | | | | | * src/ne_alloc.h (ne_malloc, ne_calloc, ne_realloc): Use it. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2006 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_openssl.c (thread_lock_neon): Don't set OpenSSLjoe2018-09-241-5/+8
| | | | | | | locking/thread callbacks at all with OpenSSL >= 1.1.1. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1999 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_socket.c: Fix #include for <sys/uio.h>.joe2018-07-261-1/+1
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1996 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_request.h: Add GCC nonnull attribute for ne_request * joe2017-02-241-4/+8
| | | | | | | arguments in a few places. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1994 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_utils.c: Add PKCS#11 and LFS support to neon version string.joe2017-01-181-0/+6
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1990 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_openssl.c (ne__ssl_clicert_exkey_import): Rewrite to bejoe2016-09-261-16/+21
| | | | | | | OpenSSL 1.1 compatible. Catch non-RSA keys early. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1975 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_pkcs11.c: Create RSA_METHOD once per provider, rather thanjoe2016-09-261-31/+39
| | | | | | | | | | dynamically. Add OpenSSL 1.1.0 compatibility. (pk11_rsa_finish): Remove. (pk11_init): Create RSA_METHOD here, ... (ne_ssl_pkcs11_provider_destroy): ... destroy it here. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1974 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_openssl.c, src/ne_auth.c, src/ne_socket.c: Fix build withjoe2016-09-263-28/+42
| | | | | | | OpenSSL 1.1. Patch by Kurt Roeckx. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1973 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_openssl.c (ne_md5_create_ctx): Remove debugging code.joe2016-09-251-4/+0
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1972 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_md5.c: Re-order, #ifdef mostly out for OpenSSL build.joe2016-09-102-63/+144
| | | | | | | | | | * src/ne_openssl.c (init_md5_ctx, ne_md5_create_ctx, ne_md5_process_block, ne_md5_process_bytes, ne_md5_finish_ctx, ne_md5_dup_ctx, ne_md5_reset_ctx), ne_md5_destroy_ctx): Implement using EVP API. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1971 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_md5.h: Allow ne_md5_create_ctx to return NULL.joe2016-09-102-1/+15
| | | | | | | | | | | * src/ne_auth.c (auth_register): Disable Digest support without MD5 support. * test/auth.c (make_digest): Don't crash in above case. * test/util-tests.c (digest_md5, md5_alignment): Likewise. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1970 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Rewrite GnuTLS PKCS#11 support to work (exclusively) with the newjoe2015-09-024-31/+86
| | | | | | | | | | | | | | | | | | | | | | | | | GnuTLS 3.x API. * src/ne_privssl.h: Drop session-wide signing callback in favour of per-clicert signing callback API. * src/ne_socket.c (ne_sock_connect_ssl): Likewise. * src/ne_gnutls.c: Store a signing function in the ccert object. (dup_client_cert): Dupe the above. (provide_client_cert): Support new retrieve API and new signing callback. (ne__ssl_clicert_exkey_import): Take callback & userdata. * src/ne_pkcs11.c (pk11_sign_callback): Adjust for privkey-based signing API. (ne_ssl_set_pkcs11_provider): Drop session-global callback. * macros/neon.m4 (NEON_SSL): Check for new retrieve API, gnutls_privkey_import_ext. Enable PKCS#11 if latter present. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1964 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Fix PKCS#11 support with OpenSSL for TLS 1.2:joe2014-09-231-17/+13
| | | | | | | | | * src/ne_pkcs11.c (pk11_rsa_encrypt, pk11_rsa_method): Reimplemented pk11_rsa_sign as rsa_private_encrypt callback for RSA method. (pk11_rsa_init): Removed. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1956 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_gnutls.c (ne_ssl_clicert_import): Cast away warning.joe2014-09-221-1/+3
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1953 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_gnutls.c (ne_ssl_readable_dname): Remove unused variable.joe2014-09-221-2/+1
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1952 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * configure.ac: Rename from configure.in.joe2014-09-201-0/+4
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1948 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_socket.c (ne_addr_destroy): Fix possible crash on Windowsjoe2014-09-201-1/+3
| | | | | | | for address lookup error cases. (Olivier Goffart) git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1941 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_openssl.c (ne__negotiate_ssl): Don't fail hard for SSL certjoe2014-09-201-10/+3
| | | | | | | change, invoke verify callback. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1938 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_socket.c: Another GnuTLS 3.x deprecation warning fix.joe2013-07-311-1/+1
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1925 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_gnutls.c (provide_client_cert): Avoid segfaults with GnuTLS 3.x.joe2013-07-311-1/+6
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1922 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_gnutls.c (x509_crt_copy, make_peers_chain): Fix potential segv,joe2013-07-311-1/+4
| | | | | | | patch by Matthias Petschick. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1918 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_privssl.h, src/ne_gnutls.c, src/ne_socket.c: Avoid olde GnuTLS types,joe2013-07-313-54/+54
| | | | | | | avoiding deprecation warnings. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1917 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Omitted in previous commit:joe2013-07-311-3/+7
| | | | | | | | * src/ne_socket.c: Support build with GnuTLS 3, patch by Bartosz Brachaczek. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1916 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_gnutls.c, macros/neon.m4: Support build with GnuTLS 3, patch byjoe2013-07-311-7/+16
| | | | | | | Bartosz Brachaczek. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1915 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_request.c (send_request_body): Use chunk length without prefix in ↵joe2013-07-261-1/+1
| | | | | | progress. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1911 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_request.c (send_request_body): Fix double counting.joe2013-07-261-2/+0
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1909 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_socket.c: Include sys/uio.h for writev(2) (Brad Smith).joe2013-07-261-0/+3
| | | | | | | * macros/neon.m4: Check for it. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1906 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Support chunked bodies; patch by Julien Reichel.joe2013-07-262-12/+72
| | | | | | | | | | | * src/ne_request.c (send_request_body): Support chunked bodies. (set_body_length): Negative length implies chunked, not C-L. (send_request): Adjust for chunked. * src/ne_request.h: Update ne_set_request_body_provider API. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1905 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_basic.h: Update comment.joe2013-07-261-1/+2
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1904 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * config.hw.in, src/ne_defs.h: Add LFS support for Win32 (patch byjoe2013-07-261-0/+3
| | | | | | | Diego Santa Cruz). git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1902 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * config.hw.in, src/ne_openssl.c: Add thread-safety support for SSL on Windows.joe2013-07-261-0/+26
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1901 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_session.c (free_proxies): Fix possible double-free. joe2013-07-261-0/+1
| | | | | | | | | (patch by Diego Santa Cruz) * test/session.c (proxies): Add test case. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1897 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_md5.c (md5_finish_ctx): Fix aliasing problem.joe2013-03-181-4/+8
| | | | | | | http://permalink.gmane.org/gmane.comp.gnu.binutils/58378 git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1896 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_socket.c (ne_sock_connect_ssl): Drop OpenSSL version check,joe2012-07-061-7/+0
| | | | | | | inappropriate with OpenSSL 1.x; patch by Mike Frysinger. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1895 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845