platform/upstream/openconnect.git
16 years agoJustify wheel re-invention
David Woodhouse [Wed, 1 Oct 2008 09:14:23 +0000 (10:14 +0100)]
Justify wheel re-invention

16 years agofixme: cookies
David Woodhouse [Wed, 1 Oct 2008 02:30:47 +0000 (03:30 +0100)]
fixme: cookies

16 years agoBugger it. Own HTTP parsing
David Woodhouse [Wed, 1 Oct 2008 02:28:21 +0000 (03:28 +0100)]
Bugger it. Own HTTP parsing

16 years agoStart of code to use neon. This doesn't work either.
David Woodhouse [Wed, 1 Oct 2008 00:04:45 +0000 (01:04 +0100)]
Start of code to use neon. This doesn't work either.

Maybe I will just fall back to doing the bloody http parsing for myself.

16 years agoSwitch to using Neon for XML parsing.
David Woodhouse [Tue, 30 Sep 2008 23:41:02 +0000 (00:41 +0100)]
Switch to using Neon for XML parsing.

16 years agoUse SecurID based login to retrieve webvpn cookie
Marcel Holtmann [Tue, 30 Sep 2008 22:38:16 +0000 (00:38 +0200)]
Use SecurID based login to retrieve webvpn cookie

16 years agofixme: redirects happen
David Woodhouse [Tue, 30 Sep 2008 21:21:31 +0000 (22:21 +0100)]
fixme: redirects happen

16 years agoLook up hosts in XML config file
David Woodhouse [Tue, 30 Sep 2008 21:18:25 +0000 (22:18 +0100)]
Look up hosts in XML config file

16 years agoRemove a bunch of stuff from TODO
David Woodhouse [Tue, 30 Sep 2008 17:29:10 +0000 (18:29 +0100)]
Remove a bunch of stuff from TODO

16 years agoMake cert and key options a little saner
David Woodhouse [Tue, 30 Sep 2008 13:13:00 +0000 (14:13 +0100)]
Make cert and key options a little saner

16 years agodoh. Fix latency fuckup
David Woodhouse [Tue, 30 Sep 2008 08:40:18 +0000 (09:40 +0100)]
doh. Fix latency fuckup

16 years agoClean up exit handling a little
David Woodhouse [Tue, 30 Sep 2008 08:20:55 +0000 (09:20 +0100)]
Clean up exit handling a little

16 years agoEnable compression by default, allow DTLS to be disabled
David Woodhouse [Tue, 30 Sep 2008 08:20:29 +0000 (09:20 +0100)]
Enable compression by default, allow DTLS to be disabled

16 years agoChange name of MTU environment variable
David Woodhouse [Tue, 30 Sep 2008 07:39:22 +0000 (08:39 +0100)]
Change name of MTU environment variable

16 years agofix up server verification a bit
David Woodhouse [Tue, 30 Sep 2008 07:15:15 +0000 (08:15 +0100)]
fix up server verification a bit

16 years agoAdd server cert verification
David Woodhouse [Tue, 30 Sep 2008 04:01:17 +0000 (05:01 +0100)]
Add server cert verification

16 years agohandle SIGHUP too
David Woodhouse [Tue, 30 Sep 2008 03:34:00 +0000 (04:34 +0100)]
handle SIGHUP too

16 years agoClean up messages a little
David Woodhouse [Tue, 30 Sep 2008 03:31:59 +0000 (04:31 +0100)]
Clean up messages a little

16 years agoClean up CSTP option handling
David Woodhouse [Tue, 30 Sep 2008 03:20:48 +0000 (04:20 +0100)]
Clean up CSTP option handling

16 years agoadmit what we know about xml download
David Woodhouse [Mon, 29 Sep 2008 17:53:26 +0000 (18:53 +0100)]
admit what we know about xml download

16 years agoAdd comments on OpenSSL patches
David Woodhouse [Mon, 29 Sep 2008 14:51:24 +0000 (15:51 +0100)]
Add comments on OpenSSL patches

16 years agoTidy up option handling a little
David Woodhouse [Mon, 29 Sep 2008 14:41:42 +0000 (15:41 +0100)]
Tidy up option handling a little

16 years agoAdd capability to use vpnc's route mangling script
David Woodhouse [Mon, 29 Sep 2008 14:23:27 +0000 (15:23 +0100)]
Add capability to use vpnc's route mangling script

16 years agoset up for invoking script for config
David Woodhouse [Mon, 29 Sep 2008 13:56:53 +0000 (14:56 +0100)]
set up for invoking script for config

16 years agoFD_CLOEXEC
David Woodhouse [Mon, 29 Sep 2008 13:48:25 +0000 (14:48 +0100)]
FD_CLOEXEC

16 years agoRemove the 'FIXME: keepalive' comment. I implemented that already
David Woodhouse [Mon, 29 Sep 2008 12:31:22 +0000 (13:31 +0100)]
Remove the 'FIXME: keepalive' comment. I implemented that already

16 years agoImplement DTLS rekey
David Woodhouse [Mon, 29 Sep 2008 12:27:02 +0000 (13:27 +0100)]
Implement DTLS rekey

16 years agoStart of DTLS rekey support, clean up comments about protocol
David Woodhouse [Mon, 29 Sep 2008 12:06:32 +0000 (13:06 +0100)]
Start of DTLS rekey support, clean up comments about protocol

16 years agoAdd OpenSSL patches
David Woodhouse [Mon, 29 Sep 2008 12:00:28 +0000 (13:00 +0100)]
Add OpenSSL patches

16 years agoUse SSL_OP_CISCO_ANYCONNECT option to match the patch I sent upstream
David Woodhouse [Mon, 29 Sep 2008 08:54:17 +0000 (09:54 +0100)]
Use SSL_OP_CISCO_ANYCONNECT option to match the patch I sent upstream

16 years agocommit makefile hacks for openssl testing
David Woodhouse [Mon, 29 Sep 2008 08:52:44 +0000 (09:52 +0100)]
commit makefile hacks for openssl testing

16 years agoLatency will be a lot better if we actually select on the right fd
David Woodhouse [Mon, 29 Sep 2008 01:15:33 +0000 (02:15 +0100)]
Latency will be a lot better if we actually select on the right fd

16 years agoUse explicit numbers for DTLS1_BAD_VER and DTLS1_VERSION
David Woodhouse [Mon, 29 Sep 2008 01:15:10 +0000 (02:15 +0100)]
Use explicit numbers for DTLS1_BAD_VER and DTLS1_VERSION

That way it can build against either 0.9.8e or 0.9.8f

16 years agoSet MTU too.
David Woodhouse [Sun, 28 Sep 2008 08:17:54 +0000 (09:17 +0100)]
Set MTU too.

From the server's response, rather than what we asked the server for.

16 years agoSet default UI method so it works for PEM passphrases too.
David Woodhouse [Sat, 27 Sep 2008 07:05:44 +0000 (01:05 -0600)]
Set default UI method so it works for PEM passphrases too.

Looks like this means we can't set the UI userdata to vpninfo,
unfortunately.

16 years agofixme for cert passphrase
David Woodhouse [Sat, 27 Sep 2008 06:45:10 +0000 (00:45 -0600)]
fixme for cert passphrase

16 years agoDemonstrate how to do callback for TPM password; proper UIs will need this
David Woodhouse [Sat, 27 Sep 2008 06:41:39 +0000 (00:41 -0600)]
Demonstrate how to do callback for TPM password; proper UIs will need this

16 years agoTake TPM SRK password on command line too, optionally
David Woodhouse [Sat, 27 Sep 2008 05:47:33 +0000 (23:47 -0600)]
Take TPM SRK password on command line too, optionally

The callback does seem to work; a GUI client might want something more
special.

16 years agoUse OpenSSL TPM engine
David Woodhouse [Sat, 27 Sep 2008 05:27:59 +0000 (23:27 -0600)]
Use OpenSSL TPM engine

16 years agoquieter
David Woodhouse [Sat, 27 Sep 2008 05:27:38 +0000 (23:27 -0600)]
quieter

16 years agoMake interface name configurable
David Woodhouse [Sat, 27 Sep 2008 05:27:12 +0000 (23:27 -0600)]
Make interface name configurable

16 years agoAdd IPv4 address and netmask configuration
Marcel Holtmann [Fri, 26 Sep 2008 16:46:28 +0000 (18:46 +0200)]
Add IPv4 address and netmask configuration

16 years agosilence warnings, and output
David Woodhouse [Fri, 26 Sep 2008 16:43:05 +0000 (09:43 -0700)]
silence warnings, and output

16 years agoAdd cookie fetching code, given a certificate. This bit sucks
David Woodhouse [Thu, 25 Sep 2008 01:08:33 +0000 (18:08 -0700)]
Add cookie fetching code, given a certificate. This bit sucks

16 years agoAnother response seen in the wild
David Woodhouse [Thu, 25 Sep 2008 01:06:36 +0000 (18:06 -0700)]
Another response seen in the wild

16 years agofix curl_err uninitialised
David Woodhouse [Wed, 24 Sep 2008 22:03:21 +0000 (15:03 -0700)]
fix curl_err uninitialised

16 years agoRemove abstraction crap
David Woodhouse [Wed, 24 Sep 2008 21:43:37 +0000 (14:43 -0700)]
Remove abstraction crap

16 years agoFall back to SSL if DTLS dies
David Woodhouse [Tue, 23 Sep 2008 23:31:49 +0000 (16:31 -0700)]
Fall back to SSL if DTLS dies

16 years agoSort out DPD and Keepalive
David Woodhouse [Tue, 23 Sep 2008 23:25:40 +0000 (16:25 -0700)]
Sort out DPD and Keepalive

This could be cleaner -- and shared between DTLS and SSL. But this seems
to work...

16 years agoone fewer FIXME...
David Woodhouse [Tue, 23 Sep 2008 22:47:38 +0000 (15:47 -0700)]
one fewer FIXME...

16 years agocheck DPD config
David Woodhouse [Tue, 23 Sep 2008 22:46:27 +0000 (15:46 -0700)]
check DPD config

16 years agotidy up, add DPD
David Woodhouse [Tue, 23 Sep 2008 22:46:16 +0000 (15:46 -0700)]
tidy up, add DPD

16 years agomacros for packet types
David Woodhouse [Tue, 23 Sep 2008 22:39:54 +0000 (15:39 -0700)]
macros for packet types

16 years agodata transport over DTLS working
David Woodhouse [Tue, 23 Sep 2008 22:08:38 +0000 (15:08 -0700)]
data transport over DTLS working

16 years agodon't send data over SSL while DTLS active
David Woodhouse [Tue, 23 Sep 2008 22:08:15 +0000 (15:08 -0700)]
don't send data over SSL while DTLS active

16 years agoattempt actual data transport over DTLS. Not working yet
David Woodhouse [Tue, 23 Sep 2008 21:45:42 +0000 (14:45 -0700)]
attempt actual data transport over DTLS. Not working yet

16 years agofix typo
David Woodhouse [Tue, 23 Sep 2008 21:05:34 +0000 (14:05 -0700)]
fix typo

16 years agowheee. dtls works... at least with their library
David Woodhouse [Tue, 23 Sep 2008 21:02:11 +0000 (14:02 -0700)]
wheee. dtls works... at least with their library

16 years agoAdd readahead to UDP socket, to avoid throwing away ends of packets.
David Woodhouse [Tue, 23 Sep 2008 07:56:41 +0000 (00:56 -0700)]
Add readahead to UDP socket, to avoid throwing away ends of packets.

Still doesn't work though -- but it's the same failure mode as when I run
the Cisco client with my own build of OpenSSL.

16 years agoAttempt DTLS setup. Broken.
David Woodhouse [Tue, 23 Sep 2008 06:57:57 +0000 (23:57 -0700)]
Attempt DTLS setup. Broken.

16 years agoconnect in separate func
David Woodhouse [Tue, 23 Sep 2008 00:06:04 +0000 (17:06 -0700)]
connect in separate func

16 years agoStart on DTLS setup
David Woodhouse [Tue, 23 Sep 2008 00:00:08 +0000 (17:00 -0700)]
Start on DTLS setup

16 years agomove DTLS comments
David Woodhouse [Mon, 22 Sep 2008 22:58:47 +0000 (15:58 -0700)]
move DTLS comments

16 years agodocument ssl packetisation
David Woodhouse [Mon, 22 Sep 2008 22:55:41 +0000 (15:55 -0700)]
document ssl packetisation

16 years agoquit cleanly when receive unknown packet
David Woodhouse [Mon, 22 Sep 2008 22:47:25 +0000 (15:47 -0700)]
quit cleanly when receive unknown packet

16 years agosimplify payload_len handling
David Woodhouse [Mon, 22 Sep 2008 22:45:34 +0000 (15:45 -0700)]
simplify payload_len handling

16 years agoa little more debug
David Woodhouse [Mon, 22 Sep 2008 22:43:28 +0000 (15:43 -0700)]
a little more debug

16 years agomove inflate_and_queue_packet() into ssl.c
David Woodhouse [Mon, 22 Sep 2008 22:35:33 +0000 (15:35 -0700)]
move inflate_and_queue_packet() into ssl.c

16 years agosplit out queue_packet()
David Woodhouse [Mon, 22 Sep 2008 22:32:59 +0000 (15:32 -0700)]
split out queue_packet()

16 years agoserver cert check in TODO
David Woodhouse [Mon, 22 Sep 2008 20:02:16 +0000 (13:02 -0700)]
server cert check in TODO

16 years agoadd todo list
David Woodhouse [Mon, 22 Sep 2008 19:59:57 +0000 (12:59 -0700)]
add todo list

16 years agoAdd compression support
David Woodhouse [Mon, 22 Sep 2008 09:31:03 +0000 (02:31 -0700)]
Add compression support

16 years agooops, anyconnect.h too
David Woodhouse [Mon, 22 Sep 2008 08:22:28 +0000 (01:22 -0700)]
oops, anyconnect.h too

16 years agoactually send BYE packet on exit
David Woodhouse [Mon, 22 Sep 2008 06:11:02 +0000 (23:11 -0700)]
actually send BYE packet on exit

16 years agoAdd bye handling, not that it's used yet
David Woodhouse [Mon, 22 Sep 2008 06:03:48 +0000 (23:03 -0700)]
Add bye handling, not that it's used yet

16 years agooops, forgot mainloop.c
David Woodhouse [Mon, 22 Sep 2008 05:57:47 +0000 (22:57 -0700)]
oops, forgot mainloop.c

16 years agoDrop wrong-length packets now that we don't see them
David Woodhouse [Mon, 22 Sep 2008 05:46:08 +0000 (22:46 -0700)]
Drop wrong-length packets now that we don't see them

16 years agoImplement CSTP keepalive
David Woodhouse [Mon, 22 Sep 2008 05:44:46 +0000 (22:44 -0700)]
Implement CSTP keepalive

16 years agofix typo in DTLS failure warning
David Woodhouse [Mon, 22 Sep 2008 05:44:32 +0000 (22:44 -0700)]
fix typo in DTLS failure warning

16 years agoComment on write queue full situation
David Woodhouse [Mon, 22 Sep 2008 05:01:16 +0000 (22:01 -0700)]
Comment on write queue full situation

16 years agoAdd comment about poll() handling
David Woodhouse [Mon, 22 Sep 2008 05:00:06 +0000 (22:00 -0700)]
Add comment about poll() handling

16 years agoFirst attempt at a mainloop
David Woodhouse [Mon, 22 Sep 2008 04:51:47 +0000 (21:51 -0700)]
First attempt at a mainloop

16 years agoRename cisco.c to main.c, and output program to anyconnect
David Woodhouse [Mon, 22 Sep 2008 02:50:09 +0000 (19:50 -0700)]
Rename cisco.c to main.c, and output program to anyconnect

16 years agofix up makefile
David Woodhouse [Mon, 22 Sep 2008 02:49:11 +0000 (19:49 -0700)]
fix up makefile

16 years agoRestructure somewhat
David Woodhouse [Mon, 22 Sep 2008 02:38:50 +0000 (19:38 -0700)]
Restructure somewhat

16 years agoAdd licence boilerplate.
David Woodhouse [Mon, 22 Sep 2008 01:34:14 +0000 (18:34 -0700)]
Add licence boilerplate.

I'd prefer to use GPLv2, but that isn't compatible with either OpenSSL
(which is required; GNUTLS doesn't do DTLS), or lwip. And it's not as if
people are massively likely to 'steal' it for commercial products
without contributing back.

16 years agoget connect/response handling working
David Woodhouse [Mon, 22 Sep 2008 01:32:40 +0000 (18:32 -0700)]
get connect/response handling working

16 years agoInitial attempt at using cURL.
David Woodhouse [Mon, 22 Sep 2008 00:23:53 +0000 (17:23 -0700)]
Initial attempt at using cURL.

This is probably just going to be too much of a pain in the arse -- it's
going to be complex to handle the CONNECT request, and even harder
dealing with the TPM -- we don't know what SSL engine cURL will be
compiled with. And we have to be linked against OpenSSL _anyway_.

The only thing cURL buys us, really, is the redirect handling and HTTP
response parsing -- and most of that is trivial enough anyway.

Left here just in case I change my mind when it comes to actually
submitting the forms...

16 years agoTry using OpenSSL directly
David Woodhouse [Sun, 21 Sep 2008 19:59:05 +0000 (12:59 -0700)]
Try using OpenSSL directly

16 years agoAdd simple makefile
David Woodhouse [Sun, 21 Sep 2008 06:36:55 +0000 (23:36 -0700)]
Add simple makefile

16 years agoFirst import of test code
David Woodhouse [Sat, 20 Sep 2008 02:43:32 +0000 (19:43 -0700)]
First import of test code