My attempts to port openconnect to windows (cygwin)

David Woodhouse dwmw2 at infradead.org
Sun Feb 20 18:23:22 EST 2011


On Sun, 2011-02-20 at 22:47 +0100, Johannes Michler wrote:
> I tried to do a git diff, but I don't know how to include new files in
> the diff, so you can get them by my last mail...

I usually cheat and just append the results of 'diff -up /dev/null
newfile.c' to the file created by 'git diff' :)

The alternative is to 'git add' them, actually commit, and then use
'git show' or 'git format-patch HEAD^'

There are probably cleverer ways to do it, but they'll involve knowing
more about the git index file than I currently do.

The patch makes it a lot clearer what you're doing; thanks.

A big problem here is that the code you're adding is under GPL (I assume
the bits in tun.c are copied from OpenVPN too?). But OpenConnect is
licensed under *LGPL*, because it has to use OpenSSL. I'd love to use
GNUTLS or NSS, but neither of them support DTLS or (sensibly) client
certs from a TPM. So I had to cope with the OpenSSL licence, and that
meant I couldn't use the GPL; it had to be LGPL.

-- 
dwmw2




More information about the openconnect-devel mailing list