summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* * test/ssl.c (make_ssl_session_port, make_ssl_session,HEADmasterjoe2019-03-071-74/+60
| | | | | | | | | | make_ssl_request): New functions using reliable _session_server() style child spawning. (load_and_trust_cert): New utility function. (...throughout): Adapt many uses of any_ssl_request() to the above. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2046 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* 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
* * test/common/child.c (new_spawn_server): Fix clang-analyzer warning.joe2018-10-121-3/+3
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2036 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
* * test/request.c (iterate_many): Remove redundant assignment.joe2018-10-121-2/+0
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2034 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
* * test/util-tests.c (bad_dates): Renamed, add another date, also testjoe2018-10-121-7/+13
| | | | | | | asctime fails. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2032 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
* * test/ssl.c (session_cache): Correctly test for session reuse.joe2018-09-241-7/+3
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2024 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/utils.c (multi_session_server): Add helper.joe2018-09-245-85/+22
| | | | | | | | | * test/common/child.c (spawn_server_repeat): Remove function. * test/ssl.c (session_cache): Switch to multi_session_server. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2023 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
* * test/ssl.c (no_client_cert): Handle certificate required errorjoe2018-09-241-1/+4
| | | | | | | with TLSv1.3. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2020 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-242-1/+17
| | | | | | | * 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
* Ignore install-shjoe2018-09-240-0/+0
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2000 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
* * test/lock.c (lock_response): Use snprintf, avoid gcc 8 warning.joe2018-09-241-5/+7
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1998 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/string-tests.c (str_errors): Fix gcc 8 warning.joe2018-09-241-1/+1
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1997 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
* * test/auth.c (struct digest_parms, make_digest): Prepare for non-MD5joe2017-02-241-3/+13
| | | | | | | algorithms. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1993 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * macros/neon-xml-parser.m4 (NE_XML_LIBXML2):joe2017-02-041-1/+1
| | | | | | | | | Locate the $CHOST prefixed version of xml2-config by default, patch from Mike Frysinger. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1991 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
* * test/ssl.c (init, fail_expired, fail_notvalid): Fix for VPATHjoe2016-09-261-19/+13
| | | | | | | builds. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1977 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/makekeys.sh: Don't put generated files in $srcdir.joe2016-09-261-29/+29
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1976 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-104-2/+21
| | | | | | | | | | | * 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
* * test/socket.c: Remove unused variable.joe2016-09-101-1/+0
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1969 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/props.c: Remove unused variable.joe2016-09-101-2/+1
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1968 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/ssl.c (fail_expired, fail_notvalid): Fix CA.joe2015-09-021-2/+2
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1967 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Ignore more.joe2015-09-020-0/+0
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1965 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Rewrite GnuTLS PKCS#11 support to work (exclusively) with the newjoe2015-09-025-34/+90
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* * test/ssl.c (nulcn_identity): Fail only if the NUL byte was interpretedjoe2015-09-021-5/+3
| | | | | | | precisely. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1963 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/ssl.c (fail_notvalid, fail_expired): Use generated keys.joe2015-09-021-2/+2
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1962 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * test/makekeys.sh, test/openssl.conf: Use 2048-bit RSA keys throughout.joe2015-09-023-11/+6
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1961 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