]>
ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/log
Simon Ruderich [Sat, 7 Dec 2013 21:34:37 +0000 (22:34 +0100)]
tlsproxy.c: Use strdup() instead of malloc()/perror().
Simon Ruderich [Sat, 7 Dec 2013 21:33:52 +0000 (22:33 +0100)]
Fix tests on OpenBSD.
Simon Ruderich [Sat, 7 Dec 2013 21:32:11 +0000 (22:32 +0100)]
configure.ac: Drop -Werror.
Simon Ruderich [Sat, 7 Dec 2013 21:31:58 +0000 (22:31 +0100)]
Fix compile on OpenBSD.
Simon Ruderich [Mon, 2 Dec 2013 04:54:00 +0000 (05:54 +0100)]
Fix compile on FreeBSD.
-D_XOPEN_SOURCE=600 is necessary for struct sockaddr_in6.
Simon Ruderich [Mon, 2 Dec 2013 04:27:06 +0000 (05:27 +0100)]
Replace PF_* with AF_*.
PF_* is no longer specified in POSIX.
Simon Ruderich [Mon, 2 Dec 2013 04:25:41 +0000 (05:25 +0100)]
Don't use AI_V4MAPPED in getaddrinfo().
It shouldn't be necessary anymore and fails on FreeBSD 8/9.
Simon Ruderich [Mon, 2 Dec 2013 04:22:10 +0000 (05:22 +0100)]
Fix make distcheck on FreeBSD.
Not sure why this worked on GNU/Linux.
Simon Ruderich [Sun, 18 Aug 2013 13:33:57 +0000 (15:33 +0200)]
tests: Rename tlsproxy() and server() to *_background().
Simon Ruderich [Sun, 18 Aug 2013 12:35:59 +0000 (14:35 +0200)]
Display priority string when starting with debug level >= 1.
Simon Ruderich [Sun, 18 Aug 2013 12:34:01 +0000 (14:34 +0200)]
Log if the server requested a rehandshake.
Simon Ruderich [Sun, 18 Aug 2013 12:27:14 +0000 (14:27 +0200)]
Allow rehandshakes for server connections.
Simon Ruderich [Sun, 18 Aug 2013 12:02:46 +0000 (14:02 +0200)]
NEWS: Update.
Simon Ruderich [Sun, 18 Aug 2013 11:50:53 +0000 (13:50 +0200)]
NEWS: Update.
Simon Ruderich [Sat, 17 Aug 2013 14:10:31 +0000 (16:10 +0200)]
Check return value in tls_send_invalid_cert_message().
Simon Ruderich [Wed, 14 Aug 2013 12:18:40 +0000 (14:18 +0200)]
Use "SECURE:-SHA1:+SHA1" as GnuTLS priority string.
Simon Ruderich [Tue, 13 Aug 2013 08:40:10 +0000 (10:40 +0200)]
m4/README: Add.
Simon Ruderich [Tue, 13 Aug 2013 08:32:29 +0000 (10:32 +0200)]
configure.ac: Use AX_PTHREAD to check for pthread.
Simon Ruderich [Mon, 12 Aug 2013 13:17:02 +0000 (15:17 +0200)]
Set GnuTLS priority string with new constant PROXY_TLS_PRIORITIES.
Same behaviour, "NORMAL" is still used.
Simon Ruderich [Sat, 10 Aug 2013 23:26:47 +0000 (01:26 +0200)]
Use %zu to print size_t and ssize_t.
Simon Ruderich [Sat, 10 Aug 2013 23:23:50 +0000 (01:23 +0200)]
Minor source documentation updates.
Simon Ruderich [Sat, 10 Aug 2013 14:56:08 +0000 (16:56 +0200)]
Add missing default to switch in log_session_information().
Simon Ruderich [Sat, 10 Aug 2013 14:48:15 +0000 (16:48 +0200)]
Fix padding for line numbers > 1000 in log_message().
Simon Ruderich [Sat, 10 Aug 2013 14:28:31 +0000 (16:28 +0200)]
.gitignore: Simplify.
Simon Ruderich [Sat, 10 Aug 2013 13:51:39 +0000 (15:51 +0200)]
Display TLS session information in level DEBUG2.
Simon Ruderich [Sat, 10 Aug 2013 13:46:49 +0000 (15:46 +0200)]
Remove unnecessary function calls to free x509 credentials.
gnutls_certificate_free_credentials() is enough to free all credentials.
Simon Ruderich [Sat, 10 Aug 2013 11:02:41 +0000 (13:02 +0200)]
man/Makefile.am: Wrap variables.
Simon Ruderich [Sat, 10 Aug 2013 10:59:54 +0000 (12:59 +0200)]
Use >%s< when logging bad proxy responses.
Simon Ruderich [Sat, 10 Aug 2013 10:59:20 +0000 (12:59 +0200)]
Fix log level for proxy authentication failure.
Simon Ruderich [Sat, 10 Aug 2013 10:56:12 +0000 (12:56 +0200)]
Split log level DEBUG1 into DEBUG1 and DEBUG2.
Simon Ruderich [Fri, 9 Aug 2013 19:03:33 +0000 (21:03 +0200)]
log.c: Simplify #ifdef DEBUG in log_message().
As we use flockfile() multiple fprintf() don't create a race-condition.
This also prevents a warning with clang which uses a macro for
fprintf(). #ifdefs within macro arguments is not portable.
Simon Ruderich [Fri, 9 Aug 2013 18:49:19 +0000 (20:49 +0200)]
Check for EOF while reading the HTTP request.
Simon Ruderich [Fri, 9 Aug 2013 18:43:58 +0000 (20:43 +0200)]
tlsproxy-add: Fix minor typo in usage description.
Simon Ruderich [Fri, 9 Aug 2013 15:46:51 +0000 (17:46 +0200)]
.gitignore: Ignore more test files.
Simon Ruderich [Fri, 9 Aug 2013 15:44:24 +0000 (17:44 +0200)]
Ensure proxy-ca.pem contains only one CA.
Simon Ruderich [Fri, 9 Aug 2013 16:06:17 +0000 (18:06 +0200)]
tlsproxy-add,tlsproxy-setup: Check for invalid argument count.
Simon Ruderich [Thu, 8 Aug 2013 20:56:56 +0000 (22:56 +0200)]
Rename *_SERVER_CERT_FORMAT to *_SERVER_CERT_FILE_FORMAT.
Simon Ruderich [Thu, 8 Aug 2013 20:38:39 +0000 (22:38 +0200)]
tests/Makefile.am: Enable parallel and colored test runs.
Necessary for automake < 1.13.
We can't run the tests in parallel and disable that, but this way all
automake versions behave in the same way.
Simon Ruderich [Thu, 8 Aug 2013 20:31:11 +0000 (22:31 +0200)]
.gitignore: Ignore test files from automakes' new test harness.
Simon Ruderich [Thu, 8 Aug 2013 20:30:50 +0000 (22:30 +0200)]
man/Makefile.am: Use rm directly without a variable.
Simon Ruderich [Thu, 8 Aug 2013 20:13:57 +0000 (22:13 +0200)]
Add missing cast.
Simon Ruderich [Thu, 8 Aug 2013 20:13:15 +0000 (22:13 +0200)]
Fix flags parameter type of initialize_tls_session_both().
Simon Ruderich [Thu, 8 Aug 2013 19:33:18 +0000 (21:33 +0200)]
Minor documentation update.
Simon Ruderich [Thu, 8 Aug 2013 19:32:41 +0000 (21:32 +0200)]
verify.c: Perform additional checks on server certificate.
Simon Ruderich [Thu, 8 Aug 2013 19:22:59 +0000 (21:22 +0200)]
verify.c: Reorder validation checks.
Simon Ruderich [Thu, 8 Aug 2013 19:18:39 +0000 (21:18 +0200)]
Reduce duplication in initialize_tls_session_both().
Simon Ruderich [Thu, 8 Aug 2013 19:08:47 +0000 (21:08 +0200)]
Check library version with gnutls_check_version().
Simon Ruderich [Thu, 8 Aug 2013 19:07:40 +0000 (21:07 +0200)]
Use >%s< when logging bad requests.
Simon Ruderich [Thu, 8 Aug 2013 19:07:03 +0000 (21:07 +0200)]
Rename http_digest_authorization to global_http_digest_authorization.
Simon Ruderich [Thu, 8 Aug 2013 19:05:40 +0000 (21:05 +0200)]
Add missing free(http_digest_authorization).
Simon Ruderich [Thu, 8 Aug 2013 19:02:13 +0000 (21:02 +0200)]
Use pre-generated Diffie-Hellman parameters.
This is much faster than generation them on each start and allows us to
use larger parameter sizes.
Simon Ruderich [Thu, 8 Aug 2013 18:54:56 +0000 (20:54 +0200)]
NEWS: Add a few empty lines.
Simon Ruderich [Thu, 8 Aug 2013 16:46:49 +0000 (18:46 +0200)]
.gitignore: Add tests/proxy-*.pem.
Forgot in
de03b92112c497bb5d1d468a240da12ea0605e60 .
Simon Ruderich [Thu, 8 Aug 2013 16:45:13 +0000 (18:45 +0200)]
tests/Makefile.am: Wrap CLEANFILES list.
Simon Ruderich [Thu, 8 Aug 2013 16:42:27 +0000 (18:42 +0200)]
tests/common.sh: Don't remove proxy-*.pem after each test.
Running `tlsproxy-setup` takes quite some time. Don't rerun it on each
test run, just reuse the files from the first run.
Simon Ruderich [Thu, 8 Aug 2013 16:41:28 +0000 (18:41 +0200)]
tests/Makefile.am: Add proxy-invalid.pem to CLEANFILES.
Simon Ruderich [Thu, 8 Aug 2013 16:13:34 +0000 (18:13 +0200)]
Rename slurp_file() to slurp_text_file().
It can only handle text files.
Simon Ruderich [Thu, 8 Aug 2013 15:48:08 +0000 (17:48 +0200)]
Use gnutls_transport_set_int() if available.
Prevents an unnecessary warning (int to pointer cast).
Simon Ruderich [Thu, 8 Aug 2013 15:24:49 +0000 (17:24 +0200)]
Rename *_FILE constants to *_PATH.
Simon Ruderich [Thu, 8 Aug 2013 15:20:58 +0000 (17:20 +0200)]
Add initialize_tls_session_both() to reduce duplication.
Simon Ruderich [Tue, 6 Aug 2013 21:03:47 +0000 (23:03 +0200)]
README: Stderr is now used for logging.
Simon Ruderich [Tue, 6 Aug 2013 21:01:47 +0000 (23:01 +0200)]
Add basic man pages.
Simon Ruderich [Tue, 6 Aug 2013 20:43:52 +0000 (22:43 +0200)]
README: Add author and license sections.
Simon Ruderich [Tue, 6 Aug 2013 19:29:47 +0000 (21:29 +0200)]
NEWS: Update.
Simon Ruderich [Tue, 6 Aug 2013 04:16:15 +0000 (06:16 +0200)]
Add disabled debug functions for GnuTLS.
Simon Ruderich [Tue, 6 Aug 2013 04:15:47 +0000 (06:15 +0200)]
Fix test-suite for recent gnutls-serv.
Simon Ruderich [Tue, 6 Aug 2013 04:14:48 +0000 (06:14 +0200)]
Fix compile with --enable-debug.
Simon Ruderich [Tue, 6 Aug 2013 02:24:14 +0000 (04:24 +0200)]
Fix compile with current GnuTLS versions.
Simon Ruderich [Tue, 6 Aug 2013 02:21:22 +0000 (04:21 +0200)]
Rename DEBUG log level to DEBUG1.
Log level DEBUG conflicts with --enable-debug's DEBUG.
Simon Ruderich [Sun, 4 Aug 2013 20:41:44 +0000 (22:41 +0200)]
Reduce calls to LOG() in read_from_write_to() and read_from_write_to_tls().
Simon Ruderich [Sun, 4 Aug 2013 15:52:06 +0000 (17:52 +0200)]
Fix indentation of LOG() calls.
"Broken" in
8b2ed4a58229f9b377f3a4ae74af36c31c5db1c0 .
Simon Ruderich [Wed, 31 Jul 2013 16:19:40 +0000 (18:19 +0200)]
tests: Wait at most 20 seconds in wait_for_ports().
Prevents endless loop if the server failed to start.
Simon Ruderich [Mon, 29 Jul 2013 11:31:39 +0000 (13:31 +0200)]
Add two assert()s.
Simon Ruderich [Mon, 29 Jul 2013 11:26:47 +0000 (13:26 +0200)]
tests: Add disabled valgrind command.
Makes it easy to run the tests with valgrind.
Simon Ruderich [Mon, 29 Jul 2013 11:22:01 +0000 (13:22 +0200)]
tests/client.c: Don't use fdopen(socket, "a+").
Simon Ruderich [Mon, 29 Jul 2013 11:17:02 +0000 (13:17 +0200)]
Don't initialize static variables to 0.
Simon Ruderich [Mon, 29 Jul 2013 11:15:58 +0000 (13:15 +0200)]
Use memset() to zero sigaction struct.
Simon Ruderich [Mon, 29 Jul 2013 11:14:28 +0000 (13:14 +0200)]
tests/Makefile.am: Remove unnecessary client_SOURCES.
It defaults to $(check_PROGRAMS).c.
Simon Ruderich [Mon, 29 Jul 2013 11:13:33 +0000 (13:13 +0200)]
Check library functions for success values.
Simon Ruderich [Mon, 29 Jul 2013 11:08:47 +0000 (13:08 +0200)]
Add basic digest authentication (-a option).
Simon Ruderich [Mon, 29 Jul 2013 11:01:06 +0000 (13:01 +0200)]
tests: Fix tlsproxy_add() for `make distcheck`.
Running tlsproxy_add() twice with the same hostname failed with `make
distcheck`.
Simon Ruderich [Mon, 29 Jul 2013 10:58:17 +0000 (12:58 +0200)]
tests: Call stop_servers when the shell terminates.
For example when set -e terminates the shell due to a failed process or
the user sends SIGINT.
Simon Ruderich [Mon, 29 Jul 2013 10:35:38 +0000 (12:35 +0200)]
Log messages to stderr.
Simon Ruderich [Mon, 29 Jul 2013 03:12:16 +0000 (05:12 +0200)]
Don't display usage on errors.
Display only the error message. The usage is distracting and requires
more time to read.
Simon Ruderich [Mon, 29 Jul 2013 02:35:24 +0000 (04:35 +0200)]
Prepare HTTP_RESPONSE_FORMAT for additional headers.
Simon Ruderich [Mon, 29 Jul 2013 02:26:33 +0000 (04:26 +0200)]
Simplify functions reporting errors to the client.
Simon Ruderich [Sun, 28 Jul 2013 23:48:22 +0000 (01:48 +0200)]
tests: Simplify redirection in tlsproxy_setup().
Simon Ruderich [Sun, 28 Jul 2013 23:48:01 +0000 (01:48 +0200)]
tests: Add tlsproxy_add() helper function.
Simon Ruderich [Sun, 28 Jul 2013 12:53:39 +0000 (14:53 +0200)]
README: Add C89 compiler to requirements.
Simon Ruderich [Sun, 28 Jul 2013 12:45:39 +0000 (14:45 +0200)]
tests: Add tlsproxy_setup() helper function.
Simon Ruderich [Sun, 28 Jul 2013 12:39:24 +0000 (14:39 +0200)]
Rename log level constants from LOG_* to just *.
Simon Ruderich [Sun, 28 Jul 2013 12:25:06 +0000 (14:25 +0200)]
Use sem_del() to destroy semaphores.
free() only works by accident and doesn't free the mutexes/condition
variables.
Simon Ruderich [Sun, 28 Jul 2013 12:21:20 +0000 (14:21 +0200)]
sem.c: Fix P() for negative start values.
Simon Ruderich [Sun, 28 Jul 2013 12:18:08 +0000 (14:18 +0200)]
tests: Wait until tlsproxy and gnutls-serv are ready.
Prevent failing tests on slower machines where sleep 1 is not enough.
Simon Ruderich [Sun, 28 Jul 2013 11:52:11 +0000 (13:52 +0200)]
Don't use fdopen(socket, "a+").
Using it with sockets is undefined behaviour as correct usage of a+
requires seeking which is not possible on sockets. Instead use separate
read and write FILE *.
Simon Ruderich [Sun, 28 Jul 2013 11:51:23 +0000 (13:51 +0200)]
tests/common.sh: Log output of tlsproxy to tlsproxy-log.
Simon Ruderich [Sun, 28 Jul 2013 11:48:53 +0000 (13:48 +0200)]
tests: Remove tmp in cleanup().
Simon Ruderich [Sun, 28 Jul 2013 11:44:09 +0000 (13:44 +0200)]
tests: Kill PIDs in stop_servers(), not process names.
Simon Ruderich [Sun, 28 Jul 2013 11:21:07 +0000 (13:21 +0200)]
tests: Improve error messages on test failure.
Simon Ruderich [Sun, 28 Jul 2013 10:24:01 +0000 (12:24 +0200)]
tlsproxy.h: Sort includes.