platform/upstream/openconnect.git
12 years agoAdd local getline() for Solaris 10 build
David Woodhouse [Thu, 3 May 2012 14:41:49 +0000 (15:41 +0100)]
Add local getline() for Solaris 10 build

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoAdd --config option for reading options from file
David Woodhouse [Thu, 3 May 2012 13:46:25 +0000 (14:46 +0100)]
Add --config option for reading options from file

Based on a patch by Fabian Jäger.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoPrepare for config file support; don't use getopt_long() and optarg directly
David Woodhouse [Thu, 3 May 2012 11:19:43 +0000 (12:19 +0100)]
Prepare for config file support; don't use getopt_long() and optarg directly

And also use an accessor macro for when we want to *copy* it, since when
it comes from the config file it'll need to be strdup'd.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoTag version 3.18 v3.18
David Woodhouse [Wed, 25 Apr 2012 22:48:15 +0000 (23:48 +0100)]
Tag version 3.18

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoUpdate changelog
David Woodhouse [Wed, 25 Apr 2012 22:48:02 +0000 (23:48 +0100)]
Update changelog

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoFix potential buffer overflow in banner handling
David Woodhouse [Mon, 23 Apr 2012 01:09:33 +0000 (02:09 +0100)]
Fix potential buffer overflow in banner handling

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoAttempt to fix autohate breakage when building without NLS support
David Woodhouse [Mon, 23 Apr 2012 01:08:31 +0000 (02:08 +0100)]
Attempt to fix autohate breakage when building without NLS support

configure: error: conditional "AMDEP" was never defined.
Usually this means the macro was only invoked conditionally.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoTag version 3.17 v3.17
David Woodhouse [Fri, 20 Apr 2012 12:14:01 +0000 (13:14 +0100)]
Tag version 3.17

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoUpdate building and vpnc-script pages for mandatory vpnc-script
David Woodhouse [Fri, 20 Apr 2012 12:07:28 +0000 (13:07 +0100)]
Update building and vpnc-script pages for mandatory vpnc-script

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoUpdate distro status
David Woodhouse [Fri, 20 Apr 2012 11:39:26 +0000 (12:39 +0100)]
Update distro status

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoUpdate supported platform list
David Woodhouse [Fri, 20 Apr 2012 11:25:12 +0000 (12:25 +0100)]
Update supported platform list

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoRemove unused started.xml page
David Woodhouse [Fri, 20 Apr 2012 11:21:22 +0000 (12:21 +0100)]
Remove unused started.xml page

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoUpdate translations from Transifex
David Woodhouse [Fri, 20 Apr 2012 00:00:50 +0000 (01:00 +0100)]
Update translations from Transifex

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoUpdate changelog
David Woodhouse [Thu, 19 Apr 2012 23:59:59 +0000 (00:59 +0100)]
Update changelog

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoFix version.sh for Solaris 10
David Woodhouse [Thu, 19 Apr 2012 22:52:37 +0000 (23:52 +0100)]
Fix version.sh for Solaris 10

./version.sh: !: not found

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoCast uid_t to (long) to print it, silencing warnings on Solaris
David Woodhouse [Thu, 19 Apr 2012 22:49:22 +0000 (23:49 +0100)]
Cast uid_t to (long) to print it, silencing warnings on Solaris

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoWork around warnings caused by Solaris misdefinition of 'struct option'.
David Woodhouse [Thu, 19 Apr 2012 22:46:46 +0000 (23:46 +0100)]
Work around warnings caused by Solaris misdefinition of 'struct option'.

Its man page clearly states that the 'name' field in 'struct option' is a
const char *. It lies, and the compiler bitches about normal assignment
of static strings.

https://www.illumos.org/issues/1881

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoMove asprintf() implementation to compat.c
David Woodhouse [Thu, 19 Apr 2012 22:21:05 +0000 (23:21 +0100)]
Move asprintf() implementation to compat.c

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoWork around time() brokenness on Solaris.
David Woodhouse [Thu, 19 Apr 2012 22:10:21 +0000 (23:10 +0100)]
Work around time() brokenness on Solaris.

On Solaris and OpenIndiana, time() goes backwards. It and gettimeofday()
occasionally jump back to 1970 and return zero seconds — although the
tv_usec field is still sane, bizarrely.

CR7121035 in Solaris, https://www.illumos.org/issues/1871 in OpenIndiana.

It seems that gethrtime() doesn't suffer the same problem, so let's use
that instead of time() for now.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoRemove gratuitous ARP plumbing which breaks Solaris 10
David Woodhouse [Thu, 19 Apr 2012 19:22:07 +0000 (20:22 +0100)]
Remove gratuitous ARP plumbing which breaks Solaris 10

Suggested by Kazuyoshi Aizawa and tested on S10, S11, oi_151a with both
IPv6 and Legacy IP.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoRemove openconnect.html from EXTRA_DIST
David Woodhouse [Wed, 18 Apr 2012 12:41:28 +0000 (13:41 +0100)]
Remove openconnect.html from EXTRA_DIST

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoAdd local implementation of asprintf() for Solaris 10
David Woodhouse [Wed, 18 Apr 2012 12:35:42 +0000 (13:35 +0100)]
Add local implementation of asprintf() for Solaris 10

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoFix shared/static setup to clarify default setting
Mike Miller [Tue, 17 Apr 2012 21:54:29 +0000 (17:54 -0400)]
Fix shared/static setup to clarify default setting

Change the variables from their defaults only in the --with-openssl
section.  This leaves the default conspicuous and makes --help show the
correct default behavior.

Signed-off-by: Mike Miller <mtmiller@ieee.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoMake vpnc-script mandatory.
David Woodhouse [Mon, 16 Apr 2012 15:55:37 +0000 (16:55 +0100)]
Make vpnc-script mandatory.

Things won't work without it, and it will also help to make sure packagers
notice that it's needed.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoDon't attempt to configure Legacy IP address on tun device.
David Woodhouse [Mon, 16 Apr 2012 14:28:05 +0000 (15:28 +0100)]
Don't attempt to configure Legacy IP address on tun device.

This was only setting the Legacy IP address and not IPv6, and it wasn't
setting up any routes or nameservers. It wasn't even setting a *netmask*,
so wasn't even useful in the simple case of a VPN serving a single network
range. I can't think of a single case in which it was actually useful.

This is my response to the patch from Stanislav Sedov which makes the IP
configuration code work on FreeBSD 10. The tun code is a big enough mess
of OS-specific ifdefs already; I don't want it getting even worse, so let's
just rip this bit out.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoDon't leave stray zlib in $LIBS
David Woodhouse [Sun, 15 Apr 2012 23:07:22 +0000 (00:07 +0100)]
Don't leave stray zlib in $LIBS

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoAttempt to build against OpenSSL without pkg-config
David Woodhouse [Sun, 15 Apr 2012 21:37:57 +0000 (22:37 +0100)]
Attempt to build against OpenSSL without pkg-config

If we insist on using --with-openssl to do that, it looks for (and
builds) a static library. That's intended for use with a locally-built
OpenSSL source tree. For systems like FreeBSD which lack pkg-config for
an otherwise normally-installed dynamic OpenSSL library, we need to cope
the same way as we do with pkg-config-less zlib.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoRemove out of date openconnect.html
David Woodhouse [Sun, 15 Apr 2012 20:43:14 +0000 (21:43 +0100)]
Remove out of date openconnect.html

Somewhat overdue...

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoUpdate changelog
David Woodhouse [Thu, 12 Apr 2012 09:58:52 +0000 (10:58 +0100)]
Update changelog

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoCope with ancient autoconf by defining $(htmldir) and $(localedir) manually
David Woodhouse [Wed, 11 Apr 2012 18:05:51 +0000 (19:05 +0100)]
Cope with ancient autoconf by defining $(htmldir) and $(localedir) manually

Otherwise you can't build from git on RHEL5, which has autoconf 2.59

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoInclude <string.h> in library.c
David Woodhouse [Wed, 11 Apr 2012 16:50:25 +0000 (17:50 +0100)]
Include <string.h> in library.c

Don't know how this escaped giving us a warning before...

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoReally disable static library when appropriate
David Woodhouse [Wed, 11 Apr 2012 15:45:46 +0000 (16:45 +0100)]
Really disable static library when appropriate

We need the AC_PROG_LIBTOOL to occur *after* AC_DISABLE_STATIC, or it
doesn't work. And the old comment about having to be before the
conditional NLS bits was probably (hopefully) obsoleted by commit
b976ecb0 which rewrote all that.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoUse autoconf's standard $(htmldir) and make everything relative to it
David Woodhouse [Wed, 11 Apr 2012 10:09:25 +0000 (11:09 +0100)]
Use autoconf's standard $(htmldir) and make everything relative to it

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoInstall HTML docs under $(docdir)/html
Mike Miller [Wed, 11 Apr 2012 00:14:56 +0000 (20:14 -0400)]
Install HTML docs under $(docdir)/html

Signed-off-by: Mike Miller <mtmiller@ieee.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoInvoke vpnc-script with "pre-init" to load tun module if necessary
David Woodhouse [Tue, 10 Apr 2012 15:33:00 +0000 (16:33 +0100)]
Invoke vpnc-script with "pre-init" to load tun module if necessary

Shift the os-specific tun setup out into a separate function, just because
it declares local variables and the pre-init script call is now happening
before that in the code block.

Clean up script invocation a little too, and fix the fact that we'd run the
script with "reconnect" reason even if there wasn't a script at all.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoTag version 3.16 v3.16
David Woodhouse [Sun, 8 Apr 2012 20:23:07 +0000 (21:23 +0100)]
Tag version 3.16

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoFix system detection for GNU/kFreeBSD and GNU/Hurd
Mike Miller [Sat, 7 Apr 2012 19:26:55 +0000 (15:26 -0400)]
Fix system detection for GNU/kFreeBSD and GNU/Hurd

Define the same library features for all GNU/* environments.  Also use
$host_os for system tests.

Signed-off-by: Mike Miller <mtmiller@ieee.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoUpdate translations from Transifex
David Woodhouse [Sun, 8 Apr 2012 13:06:10 +0000 (15:06 +0200)]
Update translations from Transifex

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoFix up the library documentation in openconnect.h a little.
David Woodhouse [Wed, 11 Jan 2012 20:28:21 +0000 (20:28 +0000)]
Fix up the library documentation in openconnect.h a little.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoUpdate translations from Transifex
David Woodhouse [Wed, 11 Jan 2012 01:22:45 +0000 (01:22 +0000)]
Update translations from Transifex

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoFix memcpy-less DTLS RX so it really doesn't use memcpy().
David Woodhouse [Wed, 14 Dec 2011 15:41:35 +0000 (15:41 +0000)]
Fix memcpy-less DTLS RX so it really doesn't use memcpy().

It was receiving into a preallocated packet... then using queue_new_packet()
on that buffer which would allocate and copy to a *new* packet. Doh!

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoRemove getmsg() on Solaris and use read() like everyone else.
David Woodhouse [Tue, 13 Dec 2011 23:30:38 +0000 (23:30 +0000)]
Remove getmsg() on Solaris and use read() like everyone else.

As long as we put the file descriptor into "message-discard" mode with
the I_SRDOPT ioctl, it'll behave like every other OS and only return
one packet at a time even if more would fit in the buffer.

The MOREDATA flag doesn't mean what we thought it did, so getmsg() has no
efficiency advantages, and we're better off keeping it simple.

Also fix a bug introduced for script_tun mode by commit 337cf1a7.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoFix compiler warning about char signedness in buffer pointer
David Woodhouse [Mon, 12 Dec 2011 22:34:26 +0000 (22:34 +0000)]
Fix compiler warning about char signedness in buffer pointer

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoUpdate changelog
David Woodhouse [Mon, 12 Dec 2011 18:22:23 +0000 (18:22 +0000)]
Update changelog

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoPlumb interface for IPv6 with I_LINK ioctl we do for Legacy IP
Kazuyoshi Aizawa [Mon, 12 Dec 2011 18:10:20 +0000 (18:10 +0000)]
Plumb interface for IPv6 with I_LINK ioctl we do for Legacy IP

This fixes the inconsistency noted in commit 5f873b34 — that we plumb the
interface from openconnect itself for Legacy IP, but use 'ifconfig' in the
vpnc-script to set it up for IPv6. Which has the potential to leave a stale
interface lying around if openconnect exits uncleanly.

Signed-off-by: Kazuyoshi Aizawa <admin2@whiteboard.ne.jp>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoUpdate changelog
David Woodhouse [Mon, 12 Dec 2011 15:44:03 +0000 (15:44 +0000)]
Update changelog

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoFix memory leak of zlib streams on CSTP reconnect
David Woodhouse [Mon, 12 Dec 2011 15:24:29 +0000 (15:24 +0000)]
Fix memory leak of zlib streams on CSTP reconnect

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoFix memory leak of CSTP deflated packets, and resend current pkt on reconnect
David Woodhouse [Mon, 12 Dec 2011 15:06:17 +0000 (15:06 +0000)]
Fix memory leak of CSTP deflated packets, and resend current pkt on reconnect

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoEliminate memcpy() for incoming packets from DTLS
David Woodhouse [Mon, 12 Dec 2011 14:08:48 +0000 (14:08 +0000)]
Eliminate memcpy() for incoming packets from DTLS

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoEliminate memcpy() for outgoing packets from tun device
David Woodhouse [Mon, 12 Dec 2011 14:01:17 +0000 (14:01 +0000)]
Eliminate memcpy() for outgoing packets from tun device

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoUse I_LINK instead of I_PLINK on Solaris
David Woodhouse [Fri, 9 Dec 2011 13:05:33 +0000 (13:05 +0000)]
Use I_LINK instead of I_PLINK on Solaris

This should avoid leaving stale tunnel devices around, because they'll
automatically go away when the fd gets closed.

This is only for Legacy IP though; We are still plumbing for IPv6 in the
vpnc-script, which is weird and inconsistent. If only I could work out
how to do it in tun.c like we do for IPv4...

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoClean up man page a little
David Woodhouse [Thu, 8 Dec 2011 12:14:28 +0000 (12:14 +0000)]
Clean up man page a little

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoIPv6 testing coverage now complete; OSX works too
David Woodhouse [Thu, 8 Dec 2011 11:34:27 +0000 (11:34 +0000)]
IPv6 testing coverage now complete; OSX works too

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoUpdate IPv6 testing status. {Open,Net,Dragonfly}BSD are now known to work.
David Woodhouse [Thu, 8 Dec 2011 02:20:49 +0000 (02:20 +0000)]
Update IPv6 testing status. {Open,Net,Dragonfly}BSD are now known to work.

As well as Linux, FreeBSD and Solaris/OpenIndiana which were already tested.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoFix GNUism in www/Makefile.am
Stuart Henderson [Wed, 7 Dec 2011 22:09:29 +0000 (22:09 +0000)]
Fix GNUism in www/Makefile.am

Signed-off-by: Stuart Henderson <stu@openbsd.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoFix typo
David Woodhouse [Wed, 7 Dec 2011 22:01:26 +0000 (22:01 +0000)]
Fix typo

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoPrint error when write() to tun device fails.
David Woodhouse [Wed, 7 Dec 2011 21:59:23 +0000 (21:59 +0000)]
Print error when write() to tun device fails.

This happens on OpenBSD when writing IPv6 packets, for some reason.
Silent failure is not recommended; much better to bitch about it.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoBefore using libproxy without pkg-config, check it actually builds.
David Woodhouse [Sat, 3 Dec 2011 14:58:33 +0000 (14:58 +0000)]
Before using libproxy without pkg-config, check it actually builds.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoFix potential crash in processing libproxy results.
David Woodhouse [Sat, 3 Dec 2011 14:51:32 +0000 (14:51 +0000)]
Fix potential crash in processing libproxy results.

Oops. Helps if we start reading the array at element zero.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoRefer to mail.html in usage() output
David Woodhouse [Thu, 1 Dec 2011 12:47:13 +0000 (12:47 +0000)]
Refer to mail.html in usage() output

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoRefer to vpnc-script.html when invoked with no --script argument
David Woodhouse [Thu, 1 Dec 2011 12:40:48 +0000 (12:40 +0000)]
Refer to vpnc-script.html when invoked with no --script argument

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoClean up vpnc-script web page to make it clearer
David Woodhouse [Thu, 1 Dec 2011 12:38:38 +0000 (12:38 +0000)]
Clean up vpnc-script web page to make it clearer

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoTag version 3.15 v3.15
David Woodhouse [Fri, 25 Nov 2011 16:41:19 +0000 (16:41 +0000)]
Tag version 3.15

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoUpdate translations from Transifex
David Woodhouse [Fri, 25 Nov 2011 16:31:50 +0000 (16:31 +0000)]
Update translations from Transifex

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoUpdate changelog
David Woodhouse [Fri, 25 Nov 2011 16:26:16 +0000 (16:26 +0000)]
Update changelog

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoAdd uninstall rules for translations
David Woodhouse [Thu, 24 Nov 2011 20:31:13 +0000 (20:31 +0000)]
Add uninstall rules for translations

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoCall bindtextdomain() to ensure that translations are found in $(prefix)
David Woodhouse [Thu, 24 Nov 2011 18:14:30 +0000 (18:14 +0000)]
Call bindtextdomain() to ensure that translations are found in $(prefix)

We may be installing to a location that libintl doesn't search by default.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoUse $(localedir) for installing translations
David Woodhouse [Thu, 24 Nov 2011 17:39:20 +0000 (17:39 +0000)]
Use $(localedir) for installing translations

The $(localedir) variable is provided for us by autoconf; no need to make
it up for ourselves.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoUse getmsg() intead of read() on Solaris tun device
Kazuyoshi Aizawa [Wed, 23 Nov 2011 13:25:36 +0000 (13:25 +0000)]
Use getmsg() intead of read() on Solaris tun device

On Solaris, a read from the tun device can return parts of multiple
packets, and there's no safe way to tell where one ends and the next
starts. Use getmsg() instead, which will only return one packet.

[dwmw2: Mangled a little to cope with script_tun mode and simplify loop]
Signed-off-by: Kazuyoshi Aizawa <admin2@whiteboard.ne.jp>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoUpdate help/mail page to try to encourage people to use the list more
David Woodhouse [Wed, 23 Nov 2011 11:36:15 +0000 (11:36 +0000)]
Update help/mail page to try to encourage people to use the list more

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoAdd Developer's Certificate of Origin to contribute web page
David Woodhouse [Wed, 23 Nov 2011 11:23:50 +0000 (11:23 +0000)]
Add Developer's Certificate of Origin to contribute web page

Best to spell this out explicitly.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoFix broken line to non-existent compatibility.html
David Woodhouse [Thu, 10 Nov 2011 21:16:47 +0000 (21:16 +0000)]
Fix broken line to non-existent compatibility.html

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoTag version 3.14 v3.14
David Woodhouse [Tue, 8 Nov 2011 02:11:19 +0000 (02:11 +0000)]
Tag version 3.14

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoAdd PGP signature information to changelog and download web pages
David Woodhouse [Tue, 8 Nov 2011 01:46:47 +0000 (01:46 +0000)]
Add PGP signature information to changelog and download web pages

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoAdd tarball signing to Makefile
David Woodhouse [Tue, 8 Nov 2011 00:37:26 +0000 (00:37 +0000)]
Add tarball signing to Makefile

I managed to screw up the 3.13 signature doing it manually; the .asc file
contained a copy of the tarball data rather than being *just* the signature.

Add it to the Makefile and that should stop me screwing it up later.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoUpdate changelog
David Woodhouse [Tue, 8 Nov 2011 00:21:58 +0000 (00:21 +0000)]
Update changelog

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoUpdate Dutch translation
David Woodhouse [Tue, 8 Nov 2011 00:02:17 +0000 (00:02 +0000)]
Update Dutch translation

It was at 100% until I added the library version warning; it was a shame
to screw that over just before the release so thanks Arjan for translating
the new warning.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoUpdate translations from Transifex
David Woodhouse [Mon, 7 Nov 2011 23:23:23 +0000 (23:23 +0000)]
Update translations from Transifex

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoAdd upload-pot make target
David Woodhouse [Mon, 7 Nov 2011 23:18:36 +0000 (23:18 +0000)]
Add upload-pot make target

It happens automatically too, but sometimes it's useful to do it immediately,
for instance when preparing a release...

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoAdd sanity check that libopenconnect matches the openconnect executable
David Woodhouse [Mon, 7 Nov 2011 22:16:12 +0000 (22:16 +0000)]
Add sanity check that libopenconnect matches the openconnect executable

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoMove openconnect to sbin
David Woodhouse [Mon, 7 Nov 2011 21:25:32 +0000 (21:25 +0000)]
Move openconnect to sbin

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoFix HTML converter output in out-of-tree builds
David Woodhouse [Mon, 7 Nov 2011 13:06:00 +0000 (13:06 +0000)]
Fix HTML converter output in out-of-tree builds

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoBuild version.c correctly in out-of-tree builds
David Woodhouse [Mon, 7 Nov 2011 12:00:08 +0000 (12:00 +0000)]
Build version.c correctly in out-of-tree builds

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoAvoid use of $(wildcard) in version.c dependencies
David Woodhouse [Mon, 7 Nov 2011 11:58:43 +0000 (11:58 +0000)]
Avoid use of $(wildcard) in version.c dependencies

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoDon't remove version.c in distclean
David Woodhouse [Mon, 7 Nov 2011 11:21:18 +0000 (11:21 +0000)]
Don't remove version.c in distclean

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoFix GNUism in dependencies for version.c
David Woodhouse [Sun, 6 Nov 2011 16:08:57 +0000 (16:08 +0000)]
Fix GNUism in dependencies for version.c

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoAdd OpenIndiana to supported platform list
David Woodhouse [Sat, 5 Nov 2011 02:48:06 +0000 (02:48 +0000)]
Add OpenIndiana to supported platform list

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoUpdate changelog
David Woodhouse [Sat, 5 Nov 2011 02:44:25 +0000 (02:44 +0000)]
Update changelog

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoFix Solaris/OpenIndiana warning: no previous declaration for 'local_strcasestr'
David Woodhouse [Sat, 5 Nov 2011 02:34:07 +0000 (02:34 +0000)]
Fix Solaris/OpenIndiana warning: no previous declaration for 'local_strcasestr'

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoRemove unneeded inclusion of <arpa/inet.h> from cstp.c and mainloop.c
David Woodhouse [Sat, 5 Nov 2011 02:17:36 +0000 (02:17 +0000)]
Remove unneeded inclusion of <arpa/inet.h> from cstp.c and mainloop.c

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoFix OpenBSD build warning when printing off_t
David Woodhouse [Sat, 5 Nov 2011 02:16:03 +0000 (02:16 +0000)]
Fix OpenBSD build warning when printing off_t

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoRemove all _xxx_SOURCE macros from source, do it in configure.
David Woodhouse [Fri, 4 Nov 2011 21:35:57 +0000 (21:35 +0000)]
Remove all _xxx_SOURCE macros from source, do it in configure.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoFix NetBSD ctype warnings.
David Woodhouse [Fri, 4 Nov 2011 18:24:34 +0000 (18:24 +0000)]
Fix NetBSD ctype warnings.

We have to cast to int via unsigned char. Ick.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoFix GNUism in po/Makefile.am handling of $(LINGUAS)
David Woodhouse [Fri, 4 Nov 2011 18:00:04 +0000 (18:00 +0000)]
Fix GNUism in po/Makefile.am handling of $(LINGUAS)

We can't use $(shell...). Make the configure script do it instead.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoFix GNUism in Makefile.am handling of NODISTHOOK
David Woodhouse [Fri, 4 Nov 2011 17:36:17 +0000 (17:36 +0000)]
Fix GNUism in Makefile.am handling of NODISTHOOK

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoAttempt to find zlib if no pkgconfig for it
David Woodhouse [Fri, 4 Nov 2011 16:58:14 +0000 (16:58 +0000)]
Attempt to find zlib if no pkgconfig for it

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoMake version.sh find git metadata only for openconnect itself, not parent dirs
David Woodhouse [Thu, 3 Nov 2011 23:25:56 +0000 (23:25 +0000)]
Make version.sh find git metadata only for openconnect itself, not parent dirs

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoDrop $(GETTEXT_PACKAGE) and just use $(PACKAGE)
David Woodhouse [Thu, 3 Nov 2011 23:04:53 +0000 (23:04 +0000)]
Drop $(GETTEXT_PACKAGE) and just use $(PACKAGE)

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoUse AC_LINK_IFELSE to check for working NLS support
David Woodhouse [Thu, 3 Nov 2011 23:00:27 +0000 (23:00 +0000)]
Use AC_LINK_IFELSE to check for working NLS support

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
12 years agoFix build with -ansi and without optimisation.
David Woodhouse [Thu, 3 Nov 2011 21:06:55 +0000 (21:06 +0000)]
Fix build with -ansi and without optimisation.

strdup(), strcasecmp(), vsyslog(), and other things need feature macros
defined. For some reason this only bites when optimisation is disabled.

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