platform/upstream/openconnect.git
14 years agoWork around OpenSSL SEGV when retrying PKCS#12 passphrase
David Woodhouse [Fri, 7 May 2010 15:22:36 +0000 (16:22 +0100)]
Work around OpenSSL SEGV when retrying PKCS#12 passphrase

This seems to have been fixed in OpenSSL 1.0.0-beta2 by
http://cvs.openssl.org/chngview?cn=17957 but still affects 0.9.8n.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoAdd DragonFly BSD too
David Woodhouse [Fri, 7 May 2010 12:21:20 +0000 (13:21 +0100)]
Add DragonFly BSD too

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoDocument NetBSD support
David Woodhouse [Fri, 7 May 2010 11:44:30 +0000 (12:44 +0100)]
Document NetBSD support

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoFix NetBSD build.
David Woodhouse [Fri, 7 May 2010 11:36:15 +0000 (12:36 +0100)]
Fix NetBSD build.

We need to include <netinet/in.h>, so do that unconditionally. And let
NetBSD use the Solaris code path for fsid handling.

Based on a patch from Pouya D. Tafti.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoRemove gratuitous -ldl from static OpenSSL link command
David Woodhouse [Fri, 7 May 2010 11:34:15 +0000 (12:34 +0100)]
Remove gratuitous -ldl from static OpenSSL link command

NetBSD doesn't like it.

Also remove the -lz and add an explicit -lz to LDFLAGS. We use that
directly, so we shouldn't be relying on getting it pulled in indirectly.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoChange OpenSSL version number check for const methods to 0.9.9
David Woodhouse [Fri, 7 May 2010 11:30:01 +0000 (12:30 +0100)]
Change OpenSSL version number check for const methods to 0.9.9

NetBSD 5.0 ships with an old pre-1.0 snapshot of OpenSSL, which has the
const methods already.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoUpdate hardware support list
David Woodhouse [Mon, 19 Apr 2010 15:34:30 +0000 (16:34 +0100)]
Update hardware support list

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoMake some functions static
David Woodhouse [Fri, 16 Apr 2010 09:50:23 +0000 (10:50 +0100)]
Make some functions static

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoUpdate TODO list to reflect current status
David Woodhouse [Thu, 15 Apr 2010 10:13:12 +0000 (11:13 +0100)]
Update TODO list to reflect current status

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoImprove handling of cert passphrase errors
David Woodhouse [Wed, 14 Apr 2010 13:23:47 +0000 (14:23 +0100)]
Improve handling of cert passphrase errors

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoFix purpose workaround to build against OpenSSL 0.9.7
David Woodhouse [Wed, 14 Apr 2010 13:15:23 +0000 (14:15 +0100)]
Fix purpose workaround to build against OpenSSL 0.9.7

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoMove unhex() out of DTLS ifdef, to build with OpenSSL 0.9.7 again
David Woodhouse [Wed, 14 Apr 2010 13:13:17 +0000 (14:13 +0100)]
Move unhex() out of DTLS ifdef, to build with OpenSSL 0.9.7 again

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoInclude ctype.h for isxdigit()
David Woodhouse [Wed, 14 Apr 2010 12:58:22 +0000 (13:58 +0100)]
Include ctype.h for isxdigit()

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoForget preconfigured password after one attempt; don't keep retrying.
David Woodhouse [Tue, 13 Apr 2010 08:10:30 +0000 (09:10 +0100)]
Forget preconfigured password after one attempt; don't keep retrying.

Without this, we were seeing infinite retries to post the auth form, when
the password was wrong or the required certificate was absent.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoUse X-CSTP-Banner header to set $CISCO_BANNER
David Woodhouse [Sun, 11 Apr 2010 16:39:59 +0000 (17:39 +0100)]
Use X-CSTP-Banner header to set $CISCO_BANNER

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoTag version 2.23 v2.23
David Woodhouse [Fri, 9 Apr 2010 09:55:06 +0000 (10:55 +0100)]
Tag version 2.23

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoUpdate changelog
David Woodhouse [Fri, 9 Apr 2010 09:45:44 +0000 (10:45 +0100)]
Update changelog

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoAdd --no-http-keepalive option to help work around Cisco incompetence.
David Woodhouse [Fri, 9 Apr 2010 09:29:10 +0000 (10:29 +0100)]
Add --no-http-keepalive option to help work around Cisco incompetence.

We know that certain versions of the ASA software (8.2.2.5 at least) are
buggy and will 'forget' the client's SSL certificate by the time they
receive the second request on a re-used HTTP connection. We have an
unconditional workaround for the case where we _know_ that bug will
trip, in commit 357c85e8 ("Always close HTTP/1.0 connection...").

Cisco's support staff are completely useless and have failed to give any
competent response to the bug report -- so not only does it look like
they won't fix it, but we don't actually know what under _other_
circumstances this same bug might manifest itself.

This patch adds an option to disable _all_ connection re-use. The
intention is that users can try it out if they encounter problems, then
report to the mailing list that it worked so that we can work out how
to trigger it automatically.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoFix Debian/kFreeBSD build
David Woodhouse [Fri, 9 Apr 2010 09:00:45 +0000 (10:00 +0100)]
Fix Debian/kFreeBSD build

Debian bug #577004

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoUpdate instructions to note that script must be executable
David Woodhouse [Tue, 6 Apr 2010 19:10:37 +0000 (20:10 +0100)]
Update instructions to note that script must be executable

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoPrint notice about lack of DNS and routing if no --script
David Woodhouse [Mon, 5 Apr 2010 10:19:48 +0000 (11:19 +0100)]
Print notice about lack of DNS and routing if no --script

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoChange mainloop idle message to look less like 'Did not work'
David Woodhouse [Mon, 5 Apr 2010 09:07:42 +0000 (10:07 +0100)]
Change mainloop idle message to look less like 'Did not work'

That can cause confusion if it's misread.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoPrint failing host name when getaddrinfo() fails
David Woodhouse [Sun, 4 Apr 2010 23:08:21 +0000 (00:08 +0100)]
Print failing host name when getaddrinfo() fails

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoPrint non-200 HTTP responses even without -v
David Woodhouse [Sun, 4 Apr 2010 22:58:00 +0000 (23:58 +0100)]
Print non-200 HTTP responses even without -v

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoFix SEGV on 404
David Woodhouse [Sun, 4 Apr 2010 18:52:19 +0000 (19:52 +0100)]
Fix SEGV on 404

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoCope with server certs without SSL_SERVER purpose bit set, with old OpenSSL
David Woodhouse [Mon, 29 Mar 2010 09:17:30 +0000 (10:17 +0100)]
Cope with server certs without SSL_SERVER purpose bit set, with old OpenSSL

We already had a workaround, but it didn't work with OpenSSL < 0.9.8k so
we need to do it differently, by providing our own wrapper around
X509_verify_cert().

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoNote DTLS support in 0.9.8m release
David Woodhouse [Wed, 24 Mar 2010 20:59:45 +0000 (20:59 +0000)]
Note DTLS support in 0.9.8m release

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoUpdate changelog
David Woodhouse [Thu, 18 Mar 2010 15:58:33 +0000 (15:58 +0000)]
Update changelog

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoReturn error on refusing to run CSD trojan, rather than exiting
David Woodhouse [Thu, 11 Mar 2010 18:38:55 +0000 (10:38 -0800)]
Return error on refusing to run CSD trojan, rather than exiting

This fixes the error handling in the NM auth dialog. Fix the message so that
it doesn't refer to the command-line option, too.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoAdd CSD support for NetworkManager auth dialog
David Woodhouse [Thu, 11 Mar 2010 18:04:00 +0000 (10:04 -0800)]
Add CSD support for NetworkManager auth dialog

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoHandle proxy setting in NetworkManager, ignore unnecessary 'authtype'
David Woodhouse [Tue, 9 Mar 2010 00:50:50 +0000 (16:50 -0800)]
Handle proxy setting in NetworkManager, ignore unnecessary 'authtype'

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoTag version 2.22 v2.22
David Woodhouse [Sun, 7 Mar 2010 22:10:55 +0000 (14:10 -0800)]
Tag version 2.22

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoUpdate changelog
David Woodhouse [Sun, 7 Mar 2010 21:34:08 +0000 (13:34 -0800)]
Update changelog

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoAlways close HTTP/1.0 connection, even after Connection: Keep-Alive header.
David Woodhouse [Sun, 28 Feb 2010 22:39:05 +0000 (23:39 +0100)]
Always close HTTP/1.0 connection, even after Connection: Keep-Alive header.

Some servers seem to fail certificate authentication after the initial
redirect unless you make a new connection. I see no valid reason in the
HTTP spec why we should do this, but it makes things work...

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoAvoid using vpninfo->ifname before it's set.
Jørgen Wahlberg [Sat, 27 Feb 2010 13:56:09 +0000 (14:56 +0100)]
Avoid using vpninfo->ifname before it's set.

Commit 78e461ce2d74d7772578a07785fd96c7b784efae ("Set script environment
earlier...") was broken because we end up trying to set the $TUNDEV
environment variable before vpninfo->ifname has actually been set.

[dwmw2: slightly modified Jørgen's original patch so that we do actually
 set $TUNDEV later, otherwise the script won't work.]

Signed-off-by: Jørgen Wahlberg <jorgen@jaws.no>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoSet script environment earlier, so it applies to script_tun too
David Woodhouse [Wed, 24 Feb 2010 12:43:20 +0000 (12:43 +0000)]
Set script environment earlier, so it applies to script_tun too

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoFix build where AI_NUMERICSERV isn't defined (OSX < 1.6)
David Woodhouse [Tue, 23 Feb 2010 14:03:18 +0000 (14:03 +0000)]
Fix build where AI_NUMERICSERV isn't defined (OSX < 1.6)

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoUpdate changelog
David Woodhouse [Tue, 23 Feb 2010 13:51:43 +0000 (13:51 +0000)]
Update changelog

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoPass port number to openconnect from NetworkManager.
David Woodhouse [Tue, 23 Feb 2010 13:48:38 +0000 (13:48 +0000)]
Pass port number to openconnect from NetworkManager.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoAccept full urls in nm-auth-dialog
Jussi Kukkonen [Tue, 23 Feb 2010 09:26:58 +0000 (11:26 +0200)]
Accept full urls in nm-auth-dialog

E.g. "<host>:<port>" will now work.

Signed-off-by: Jussi Kukkonen <jku@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoFix handling of port numbers above 9999
David Woodhouse [Mon, 22 Feb 2010 14:44:49 +0000 (14:44 +0000)]
Fix handling of port numbers above 9999

We need to allow 5 digits in the port number, which means 6 characters
including the terminating NUL. The buffer was already big enough, but
the length argument to snprintf() wasn't. Spotted by Charles Bovy (thanks).

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoHandle relative redirect and form action
David Woodhouse [Mon, 22 Feb 2010 14:43:30 +0000 (14:43 +0000)]
Handle relative redirect and form action

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoHandle allocation failure in HTTP 1.0 loop
David Woodhouse [Mon, 22 Feb 2010 14:09:25 +0000 (14:09 +0000)]
Handle allocation failure in HTTP 1.0 loop

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoAllocate extra byte for NUL termination after HTTP 1.0 read loop, not in it.
Adam Piątyszek [Fri, 12 Feb 2010 21:48:08 +0000 (22:48 +0100)]
Allocate extra byte for NUL termination after HTTP 1.0 read loop, not in it.

Signed-off-by: Adam Piątyszek <ediap@users.sourceforge.net>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoFree dynamically allocated memory before returning on errors
Adam Piątyszek [Fri, 12 Feb 2010 21:45:19 +0000 (22:45 +0100)]
Free dynamically allocated memory before returning on errors

Signed-off-by: Adam Piątyszek <ediap@users.sourceforge.net>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoUse the somewhat misnamed proxy_write() function to write the CSD script
Adam Piątyszek [Fri, 12 Feb 2010 14:26:19 +0000 (15:26 +0100)]
Use the somewhat misnamed proxy_write() function to write the CSD script

Signed-off-by: Adam Piątyszek <ediap@users.sourceforge.net>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoDynamically allocate buffer size for downloaded CSD script
Adam Piątyszek [Fri, 12 Feb 2010 14:25:40 +0000 (15:25 +0100)]
Dynamically allocate buffer size for downloaded CSD script

Thanks to David for his help in rewriting this patch and to actually
make it work.

Signed-off-by: Adam Piątyszek <ediap@users.sourceforge.net>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoCase-insensitive comparison for server SHA1 fingerprint
David Woodhouse [Wed, 3 Feb 2010 07:11:27 +0000 (07:11 +0000)]
Case-insensitive comparison for server SHA1 fingerprint

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoFix exit code with --background option
David Woodhouse [Wed, 3 Feb 2010 06:19:34 +0000 (06:19 +0000)]
Fix exit code with --background option

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoNo strndup() on Solaris. Yay Solaris!
David Woodhouse [Sun, 24 Jan 2010 19:30:15 +0000 (08:30 +1300)]
No strndup() on Solaris. Yay Solaris!

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoTag version 2.21 v2.21
David Woodhouse [Sun, 10 Jan 2010 11:01:58 +0000 (11:01 +0000)]
Tag version 2.21

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoFix typo in changelog
David Woodhouse [Sun, 10 Jan 2010 10:12:17 +0000 (10:12 +0000)]
Fix typo in changelog

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoUpdate changelog
David Woodhouse [Sat, 9 Jan 2010 19:25:47 +0000 (19:25 +0000)]
Update changelog

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoFix handling of HTTP 1.0 responses with Connection: Keep-Alive
David Woodhouse [Sat, 9 Jan 2010 13:13:15 +0000 (13:13 +0000)]
Fix handling of HTTP 1.0 responses with Connection: Keep-Alive

An HTTP 1.0 response can keepalive and have a Connection-Length: header,
and this is seen in some cases with the initial redirect when we connect
to a VPN server (Red Hat bug #553817). Fix and clean up the response
handling code accordingly.

I _really_ wish I didn't have to write my own HTTP code, and that one of
the available libraries was actually able to support SSL connections
with a certificate from a TPM.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoBe case-insensitive in HTTP fields (and comparing hostname for redirects)
David Woodhouse [Sat, 9 Jan 2010 13:09:48 +0000 (13:09 +0000)]
Be case-insensitive in HTTP fields (and comparing hostname for redirects)

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoCheck return value from asprintf()
David Woodhouse [Tue, 5 Jan 2010 12:53:35 +0000 (12:53 +0000)]
Check return value from asprintf()

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoCheck return value from system()
David Woodhouse [Tue, 5 Jan 2010 12:52:38 +0000 (12:52 +0000)]
Check return value from system()

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoTag version 2.20 v2.20
David Woodhouse [Mon, 4 Jan 2010 16:06:59 +0000 (16:06 +0000)]
Tag version 2.20

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoFix HTTP 1.0 body fetch.
David Woodhouse [Sun, 3 Jan 2010 18:28:35 +0000 (18:28 +0000)]
Fix HTTP 1.0 body fetch.

Not that we should ever really see one.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoFix handling of 'HTTP/1.1 100 Continue' response
David Woodhouse [Sun, 3 Jan 2010 18:22:40 +0000 (18:22 +0000)]
Fix handling of 'HTTP/1.1 100 Continue' response

When we jump back to 'cont' it needs to fetch the next response line,
not just check the existing contents of the buffer (which will be an
empty line).

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoReally, don't shut down SSL twice
David Woodhouse [Sun, 3 Jan 2010 18:18:53 +0000 (18:18 +0000)]
Really, don't shut down SSL twice

It's the one in redirect handling that needs to check whether the
connection is already closed. The one in process_http_response() can't
possibly happen when the connection is already closed.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoFree host URL after parsing
David Woodhouse [Sun, 3 Jan 2010 16:34:47 +0000 (16:34 +0000)]
Free host URL after parsing

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoMention SOCKS support in feature list
David Woodhouse [Sun, 3 Jan 2010 08:37:42 +0000 (08:37 +0000)]
Mention SOCKS support in feature list

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoClarify that -P argument takes a URL, admit to SOCKS support
David Woodhouse [Sun, 3 Jan 2010 08:37:26 +0000 (08:37 +0000)]
Clarify that -P argument takes a URL, admit to SOCKS support

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoClean up libproxy.h and if_tun.h detection for cross-compilation
David Woodhouse [Sat, 2 Jan 2010 19:55:44 +0000 (19:55 +0000)]
Clean up libproxy.h and if_tun.h detection for cross-compilation

Looking in /usr/include was silly. This is one thing that autoconf would
help with, but at a cost that I'm not really willing to pay.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoDon't include net/if_tun.h twice on Solaris
David Woodhouse [Sat, 2 Jan 2010 19:43:27 +0000 (19:43 +0000)]
Don't include net/if_tun.h twice on Solaris

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoRemove SOCKS from TODO list
David Woodhouse [Sat, 2 Jan 2010 17:32:02 +0000 (17:32 +0000)]
Remove SOCKS from TODO list

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoUse $https_proxy environment variable, if set.
David Woodhouse [Sat, 2 Jan 2010 14:28:39 +0000 (14:28 +0000)]
Use $https_proxy environment variable, if set.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoDisable libproxy by default
David Woodhouse [Sat, 2 Jan 2010 14:26:52 +0000 (14:26 +0000)]
Disable libproxy by default

Most people don't need to go through a proxy, but might have one
configured anyway for https because it's harmless. But it's _not_ actually
harmless for openconnect, because it'll prevent DTLS from working. So if
a user really needs proxy support, let them ask for it.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoUpdate changelog
David Woodhouse [Sat, 2 Jan 2010 13:33:00 +0000 (13:33 +0000)]
Update changelog

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoFix up DTLS vs. reconnection address confusion
David Woodhouse [Sat, 2 Jan 2010 14:01:24 +0000 (14:01 +0000)]
Fix up DTLS vs. reconnection address confusion

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoAdd SOCKS5 support
David Woodhouse [Sat, 2 Jan 2010 13:17:48 +0000 (13:17 +0000)]
Add SOCKS5 support

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoFix non-libproxy build
David Woodhouse [Sat, 2 Jan 2010 13:19:02 +0000 (13:19 +0000)]
Fix non-libproxy build

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoFix use-after-free of UI elements (RH bug #551665)
David Woodhouse [Sat, 2 Jan 2010 11:03:47 +0000 (11:03 +0000)]
Fix use-after-free of UI elements (RH bug #551665)

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoAdd libproxy support, conditionally
David Woodhouse [Sat, 2 Jan 2010 00:43:34 +0000 (00:43 +0000)]
Add libproxy support, conditionally

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoUse URL in example command line
David Woodhouse [Sat, 2 Jan 2010 00:18:21 +0000 (00:18 +0000)]
Use URL in example command line

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoHandle IPv6 literal [] in connection, accept https:// URL for server
David Woodhouse [Fri, 1 Jan 2010 22:54:25 +0000 (22:54 +0000)]
Handle IPv6 literal [] in connection, accept https:// URL for server

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoUpdate copyright years
David Woodhouse [Fri, 1 Jan 2010 22:12:15 +0000 (22:12 +0000)]
Update copyright years

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoAdd proxy support (based on Pál Dorogi's version)
David Woodhouse [Fri, 1 Jan 2010 22:09:25 +0000 (22:09 +0000)]
Add proxy support (based on Pál Dorogi's version)

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoHandle IPv6 server correctly when setting $VPNGATEWAY
David Woodhouse [Fri, 1 Jan 2010 17:51:18 +0000 (17:51 +0000)]
Handle IPv6 server correctly when setting $VPNGATEWAY

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoFix various memory leaks, mostly with libxml
David Woodhouse [Fri, 1 Jan 2010 10:45:21 +0000 (10:45 +0000)]
Fix various memory leaks, mostly with libxml

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoDon't shut down SSL twice
David Woodhouse [Fri, 1 Jan 2010 10:44:41 +0000 (10:44 +0000)]
Don't shut down SSL twice

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoAdd parse_url() function, which will be useful for proxies too
David Woodhouse [Fri, 25 Dec 2009 00:40:29 +0000 (00:40 +0000)]
Add parse_url() function, which will be useful for proxies too

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoClean up redirection, support non-standard port
David Woodhouse [Wed, 23 Dec 2009 22:33:10 +0000 (22:33 +0000)]
Clean up redirection, support non-standard port

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoTag version 2.12 v2.12
David Woodhouse [Mon, 7 Dec 2009 16:40:34 +0000 (16:40 +0000)]
Tag version 2.12

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoUpdate changelog
David Woodhouse [Mon, 7 Dec 2009 16:40:21 +0000 (16:40 +0000)]
Update changelog

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoReconnect CSTP to the previously-used IP address; don't redo DNS lookup
David Woodhouse [Mon, 7 Dec 2009 16:32:40 +0000 (16:32 +0000)]
Reconnect CSTP to the previously-used IP address; don't redo DNS lookup

Some people use a fucking stupid schizoDNS setup where they abuse the
real public domain name "company.com" for internal machines, rather than
using a separate and unambiguous domain like "company.internal".

Some people compound this mistake by having some hosts which don't even
_exist_ in the internal domain, or worse which get different IP
addresses depending on which version of the domain you're in.

So if you're already on the VPN and have configured DNS for it, looking
up "vpnserver.company.com" isn't necessarily such a cunning thing to do.
We're _already_ remembering the IP address of the server, so that DTLS
can use it. Just ensure that it's getting cleared correctly on HTTP
redirects, then use it for HTTP reconnections too.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
14 years agoFix buffer overrun in useragent. Use asprintf
David Woodhouse [Mon, 7 Dec 2009 16:14:00 +0000 (16:14 +0000)]
Fix buffer overrun in useragent. Use asprintf

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
15 years agoTry to clean up os-dependent tun handling a bit. Fix OSX IPv6, DragonflyBSD
David Woodhouse [Wed, 18 Nov 2009 17:09:30 +0000 (17:09 +0000)]
Try to clean up os-dependent tun handling a bit. Fix OSX IPv6, DragonflyBSD

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
15 years agoTag version 2.11 v2.11
David Woodhouse [Tue, 17 Nov 2009 15:01:13 +0000 (15:01 +0000)]
Tag version 2.11

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
15 years agoMinor web page updates
David Woodhouse [Tue, 17 Nov 2009 12:18:05 +0000 (12:18 +0000)]
Minor web page updates

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
15 years agoWarn about lack of DTLS compatibility at build time
David Woodhouse [Tue, 17 Nov 2009 11:34:40 +0000 (11:34 +0000)]
Warn about lack of DTLS compatibility at build time

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
15 years agoNote that the 2009-11-16 version of Solaris tun/tap driver is required for IPv6
David Woodhouse [Mon, 16 Nov 2009 13:20:43 +0000 (13:20 +0000)]
Note that the 2009-11-16 version of Solaris tun/tap driver is required for IPv6

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
15 years agoUpdate IPv6 references in documentation
David Woodhouse [Fri, 13 Nov 2009 16:54:39 +0000 (16:54 +0000)]
Update IPv6 references in documentation

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
15 years agoAdd IPv6 support for FreeBSD
David Woodhouse [Fri, 13 Nov 2009 16:23:05 +0000 (16:23 +0000)]
Add IPv6 support for FreeBSD

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
15 years agoPass IPv6 routes separately from Legacy IP routes
David Woodhouse [Wed, 11 Nov 2009 00:32:19 +0000 (00:32 +0000)]
Pass IPv6 routes separately from Legacy IP routes

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
15 years agoCalculate client cert MD5 for CSD with all cert types, when needed
David Woodhouse [Mon, 9 Nov 2009 12:03:09 +0000 (12:03 +0000)]
Calculate client cert MD5 for CSD with all cert types, when needed

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
15 years agoClean up error reporting when cert/key can't be loaded
David Woodhouse [Mon, 9 Nov 2009 10:55:21 +0000 (10:55 +0000)]
Clean up error reporting when cert/key can't be loaded

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
15 years agoUpdate note on OpenSSL versions
David Woodhouse [Mon, 9 Nov 2009 01:46:11 +0000 (01:46 +0000)]
Update note on OpenSSL versions

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
15 years agoClean up fsid routines, use asprintf()
David Woodhouse [Fri, 6 Nov 2009 11:26:59 +0000 (11:26 +0000)]
Clean up fsid routines, use asprintf()

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>