]> www.infradead.org Git - users/dwmw2/openconnect.git/log
users/dwmw2/openconnect.git
5 days agoMerge branch 'master' into 'master' master
Dimitri Papadopoulos Orfanos [Tue, 21 Oct 2025 18:58:56 +0000 (20:58 +0200)]
Merge branch 'master' into 'master'

Correct a typo in `trojans/hipreport.sh`

See merge request openconnect/openconnect!618

6 days agoCorrect a typo in `trojans/hipreport.sh`
Benjamin Loison [Mon, 20 Oct 2025 22:36:39 +0000 (00:36 +0200)]
Correct a typo in `trojans/hipreport.sh`

Signed-off-by: Benjamin Loison <benjamin.loison@orange.fr>
5 weeks agoMerge branch 'clang_static_analysis' into 'master'
Dimitri Papadopoulos Orfanos [Fri, 19 Sep 2025 18:09:18 +0000 (20:09 +0200)]
Merge branch 'clang_static_analysis' into 'master'

Address clang 20 static analysis warnings

See merge request openconnect/openconnect!613

5 weeks agoMerge branch 'qlty' into 'master'
Dimitri Papadopoulos Orfanos [Fri, 19 Sep 2025 17:30:56 +0000 (19:30 +0200)]
Merge branch 'qlty' into 'master'

Fix shell issues found by Qlty CLI

See merge request openconnect/openconnect!612

5 weeks agoManual fixes based on clang static analysis
Dimitri Papadopoulos Orfanos [Thu, 18 Sep 2025 22:28:02 +0000 (00:28 +0200)]
Manual fixes based on clang static analysis

Signed-off-by: Dimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
5 weeks agoAddress static analysis warning
Dimitri Papadopoulos Orfanos [Thu, 18 Sep 2025 18:45:05 +0000 (20:45 +0200)]
Address static analysis warning

yubikey.c:421:13: warning: The left operand of '!=' is a garbage value [core.UndefinedBinaryOperatorResult]
  421 |                         if (type != NAME_LIST_TAG || tlvlen < 1) {
      |                             ~~~~ ^

Signed-off-by: Dimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
5 weeks agoAddress static analysis warning
Dimitri Papadopoulos Orfanos [Thu, 18 Sep 2025 18:36:42 +0000 (20:36 +0200)]
Address static analysis warning

gpst.c: In function 'gpst_connect':
gpst.c:723:46: warning: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (13 chars into 12 available) [-Wunterminated-string-initialization]
  723 |         static const char start_tunnel[12] = "START_TUNNEL"; /* NOT zero-terminated */
      |                                              ^~~~~~~~~~~~~~
gpst.c: At top level:
gpst.c:1433:38: warning: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (17 chars into 16 available) [-Wunterminated-string-initialization]
 1433 | static char magic_ping_payload[16] = "monitor\x00\x00pan ha ";
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Dimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
5 weeks agoAddress static analysis warning
Dimitri Papadopoulos Orfanos [Thu, 18 Sep 2025 18:08:33 +0000 (20:08 +0200)]
Address static analysis warning

auth.c:717:14: warning: Access to field 'auth_id' results in a dereference of a null pointer (loaded from variable 'form') [core.NullDereference]
  717 |         if (!strcmp(form->auth_id, "success"))
      |                     ^~~~~~~~~~~~~

Signed-off-by: Dimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
5 weeks agoAddress static analysis warning
Dimitri Papadopoulos Orfanos [Thu, 18 Sep 2025 22:21:58 +0000 (00:21 +0200)]
Address static analysis warning

openssl.c:2090:3: warning: The 1st argument to 'close' is <= -2 but should be >= -1 [unix.StdCLibraryFunctions]
 2090 |                 closesocket(vpninfo->ssl_fd);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
./openconnect-internal.h:1176:21: note: expanded from macro 'closesocket'
 1176 | #define closesocket close
      |                     ^

Signed-off-by: Dimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
5 weeks agoAddress static analysis warning
Dimitri Papadopoulos Orfanos [Thu, 18 Sep 2025 18:15:55 +0000 (20:15 +0200)]
Address static analysis warning

gnutls.c:2569:3: warning: The 1st argument to 'close' is <= -2 but should be >= -1 [unix.StdCLibraryFunctions]
 2569 |                 closesocket(vpninfo->ssl_fd);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
./openconnect-internal.h:1176:21: note: expanded from macro 'closesocket'
 1176 | #define closesocket close
      |                     ^

Signed-off-by: Dimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
5 weeks agoAddress static analysis warning
Dimitri Papadopoulos Orfanos [Thu, 18 Sep 2025 18:01:38 +0000 (20:01 +0200)]
Address static analysis warning

esp.c:451:3: warning: The 1st argument to 'close' is <= -2 but should be >= -1 [unix.StdCLibraryFunctions]
  451 |                 closesocket(vpninfo->dtls_fd);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./openconnect-internal.h:1176:21: note: expanded from macro 'closesocket'
 1176 | #define closesocket close
      |                     ^

Signed-off-by: Dimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
5 weeks agoFix shell issues found by Qlty CLI
Dimitri Papadopoulos Orfanos [Fri, 19 Sep 2025 17:09:22 +0000 (19:09 +0200)]
Fix shell issues found by Qlty CLI

Signed-off-by: Dimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
5 weeks agoMerge branch 'ubuntu' into 'master'
Dimitri Papadopoulos Orfanos [Thu, 18 Sep 2025 18:47:14 +0000 (20:47 +0200)]
Merge branch 'ubuntu' into 'master'

openconnect-cli-ubuntu → openconnect-cli-ubuntu18

See merge request openconnect/openconnect!611

5 weeks agoopenconnect-cli-ubuntu → openconnect-cli-ubuntu18
Dimitri Papadopoulos Orfanos [Thu, 18 Sep 2025 18:21:05 +0000 (20:21 +0200)]
openconnect-cli-ubuntu → openconnect-cli-ubuntu18

See https://gitlab.com/openconnect/build-images/-/merge_requests/58/commits.

Signed-off-by: Dimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
5 weeks agoMerge branch 'pulse_unlnown_attr' into 'master'
Dimitri Papadopoulos Orfanos [Wed, 17 Sep 2025 19:07:03 +0000 (21:07 +0200)]
Merge branch 'pulse_unlnown_attr' into 'master'

pulse: improve readability of debug output

See merge request openconnect/openconnect!609

5 weeks agoMerge branch 'move-localname-setter' into 'master'
Dimitri Papadopoulos Orfanos [Wed, 17 Sep 2025 18:57:59 +0000 (20:57 +0200)]
Merge branch 'move-localname-setter' into 'master'

Move localname setter to openconnect_vpninfo_new

See merge request openconnect/openconnect!600

5 weeks agopulse: improve readability of debug output
Dimitri Papadopoulos Orfanos [Wed, 17 Sep 2025 06:56:38 +0000 (08:56 +0200)]
pulse: improve readability of debug output

Signed-off-by: Dimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
5 weeks agoMerge branch 'tmp-ignore-sigpipe' into 'master'
Dimitri Papadopoulos Orfanos [Wed, 17 Sep 2025 07:06:37 +0000 (09:06 +0200)]
Merge branch 'tmp-ignore-sigpipe' into 'master'

Set SIGPIPE to SIG_IGN

Closes #783

See merge request openconnect/openconnect!607

7 weeks agoMove localname setter to openconnect_vpninfo_new
Jan-Michael Brummer [Wed, 11 Jun 2025 13:41:51 +0000 (15:41 +0200)]
Move localname setter to openconnect_vpninfo_new

Currently localname was only set for CLI version and thus
every application making use of openconnect_vpninfo_new had localhost
as default name. This can cause issues with e.g. PAN and thus
move it to this function to ensure every consumer is safe.

Signed-off-by: Jan-Michael Brummer <jan-michael.brummer1@volkswagen.de>
7 weeks agoMerge branch 'fix-fortinet-7.4' into 'master'
Dimitri Papadopoulos Orfanos [Mon, 1 Sep 2025 13:04:33 +0000 (15:04 +0200)]
Merge branch 'fix-fortinet-7.4' into 'master'

Support js redirects from Fortinet 7.4.x

See merge request openconnect/openconnect!604

7 weeks agoSupport js redirects from Fortinet 7.4.x
Jan-Michael Brummer [Wed, 6 Aug 2025 05:26:46 +0000 (07:26 +0200)]
Support js redirects from Fortinet 7.4.x

Signed-off-by: Jan-Michael Brummer <jan-michael.brummer1@volkswagen.de>
8 weeks agoMerge branch 'CID' into 'master'
Dimitri Papadopoulos Orfanos [Sun, 31 Aug 2025 17:25:05 +0000 (19:25 +0200)]
Merge branch 'CID' into 'master'

Fix resource leaks identified by Coverity Scan

See merge request openconnect/openconnect!589

2 months agoMerge branch '802-fix-pulse-json' into 'master'
Dimitri Papadopoulos Orfanos [Sun, 24 Aug 2025 20:34:01 +0000 (22:34 +0200)]
Merge branch '802-fix-pulse-json' into 'master'

fix for #802

Closes #802

See merge request openconnect/openconnect!606

2 months agoMerge branch 'cisco_copyright' into 'master'
Dimitri Papadopoulos Orfanos [Sun, 24 Aug 2025 19:43:11 +0000 (21:43 +0200)]
Merge branch 'cisco_copyright' into 'master'

Cisco AnyConnect: add copyright string header

Closes #745

See merge request openconnect/openconnect!602

2 months agoCisco AnyConnect: add copyright string header
James Anderson [Wed, 23 Jul 2025 02:33:03 +0000 (19:33 -0700)]
Cisco AnyConnect: add copyright string header

Signed-off-by: James Anderson <james.anderson@inviarobotics.com>
2 months agofix for #802
Vincent Magnin [Mon, 14 Jul 2025 06:58:05 +0000 (08:58 +0200)]
fix for #802

Find an additionnal header when reading report of CVE-2025-0282 and #439

Tested, and, seems to fix the issue

Signed-off-by: Vincent Magnin <Vincent.Magnin@unil.ch>
2 months agoUpdate changelog
Magnus Ihse Bursie [Fri, 25 Jul 2025 10:07:03 +0000 (12:07 +0200)]
Update changelog

Signed-off-by: Magnus Ihse Bursie <mag@icus.se>
2 months agoRemove sa_ignore
Magnus Ihse Bursie [Thu, 23 Jan 2025 22:37:45 +0000 (23:37 +0100)]
Remove sa_ignore

Signed-off-by: Magnus Ihse Bursie <mag@icus.se>
2 months agoSet SIGPIPE to SIG_IGN.
Magnus Ihse Bursie [Wed, 22 Jan 2025 18:16:50 +0000 (19:16 +0100)]
Set SIGPIPE to SIG_IGN.

Signed-off-by: Magnus Ihse Bursie <mag@icus.se>
3 months agoMerge branch 'android' into 'master'
Dimitri Papadopoulos Orfanos [Sun, 27 Jul 2025 11:13:38 +0000 (13:13 +0200)]
Merge branch 'android' into 'master'

android: bump dependencies

See merge request openconnect/openconnect!598

3 months agoUse openconnect_vpninfo_free() to release resources
Dimitri Papadopoulos Orfanos [Fri, 17 Jan 2025 18:16:38 +0000 (19:16 +0100)]
Use openconnect_vpninfo_free() to release resources

Signed-off-by: Dimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
3 months agoFix typo
Dimitri Papadopoulos Orfanos [Sun, 27 Jul 2025 11:12:14 +0000 (13:12 +0200)]
Fix typo

Signed-off-by: Dimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
3 months agoFix resource leaks identified by Coverity Scan
Dimitri Papadopoulos [Fri, 17 Jan 2025 12:22:38 +0000 (13:22 +0100)]
Fix resource leaks identified by Coverity Scan

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
3 months agoandroid: use tar consistently
Dimitri Papadopoulos Orfanos [Sun, 27 Jul 2025 09:33:31 +0000 (11:33 +0200)]
android: use tar consistently

Signed-off-by: Dimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
3 months agoandroid: bump dependencies
Dimitri Papadopoulos Orfanos [Sat, 10 May 2025 14:17:56 +0000 (16:17 +0200)]
android: bump dependencies

Signed-off-by: Dimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
3 months agoMerge branch 'tmp-indentation' into 'master'
Dimitri Papadopoulos Orfanos [Sun, 27 Jul 2025 08:28:24 +0000 (10:28 +0200)]
Merge branch 'tmp-indentation' into 'master'

Fix indentation

See merge request openconnect/openconnect!601

3 months agoMerge branch 'field_name' into 'master'
Dimitri Papadopoulos Orfanos [Sat, 26 Jul 2025 16:59:50 +0000 (18:59 +0200)]
Merge branch 'field_name' into 'master'

Remove spurious colon in error message

See merge request openconnect/openconnect!594

3 months agoMerge branch 'script_setpgid' into 'master'
Dimitri Papadopoulos Orfanos [Sat, 26 Jul 2025 16:51:48 +0000 (18:51 +0200)]
Merge branch 'script_setpgid' into 'master'

Create new process group for script

Closes #509

See merge request openconnect/openconnect!425

3 months agoMerge branch 'codespell' into 'master'
Dimitri Papadopoulos Orfanos [Sat, 26 Jul 2025 16:45:36 +0000 (18:45 +0200)]
Merge branch 'codespell' into 'master'

Fix typos found by codespell

See merge request openconnect/openconnect!540

3 months agoMerge branch '20240614-wrapper-fix' into 'master'
Dimitri Papadopoulos Orfanos [Sat, 26 Jul 2025 16:30:56 +0000 (18:30 +0200)]
Merge branch '20240614-wrapper-fix' into 'master'

csd-wrapper: remove trailing part from URL

See merge request openconnect/openconnect!556

3 months agoMerge branch 'patch-1' into 'master'
Luca Boccassi [Sat, 26 Jul 2025 16:22:09 +0000 (16:22 +0000)]
Merge branch 'patch-1' into 'master'

fix URL to Open Build Service

See merge request openconnect/openconnect!578

3 months agoRemove spurious colon in error message
Dimitri Papadopoulos [Thu, 13 Feb 2025 13:52:40 +0000 (14:52 +0100)]
Remove spurious colon in error message

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
3 months agoMerge branch 'bw-fix-tests-ppp-over-tls' into 'master'
Dimitri Papadopoulos Orfanos [Sat, 26 Jul 2025 16:19:46 +0000 (18:19 +0200)]
Merge branch 'bw-fix-tests-ppp-over-tls' into 'master'

tests: Fix socat hang in ppp-over-tls

See merge request openconnect/openconnect!596

3 months agoFix indentation
Dimitri Papadopoulos Orfanos [Mon, 23 Jun 2025 11:56:25 +0000 (13:56 +0200)]
Fix indentation

Signed-off-by: Dimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
3 months agoMerge branch 'update-globalprotect-version' into 'master'
Dimitri Papadopoulos Orfanos [Sat, 26 Jul 2025 15:59:57 +0000 (17:59 +0200)]
Merge branch 'update-globalprotect-version' into 'master'

Update hardcoded GlobalProtect client version to 6.3.0-33

See merge request openconnect/openconnect!586

3 months agoMerge branch 'update-globalprotect-version' into 'master'
Nils Kühme [Sat, 26 Jul 2025 15:59:57 +0000 (17:59 +0200)]
Merge branch 'update-globalprotect-version' into 'master'

Update hardcoded GlobalProtect client version to 6.3.0-33

7 months agotests: Fix socat hang in ppp-over-tls
Ben Walsh [Tue, 11 Mar 2025 19:17:52 +0000 (19:17 +0000)]
tests: Fix socat hang in ppp-over-tls

socat can hang if sent a SIGTERM while it is already shutting
down. This was causing the ppp-over-tls test to hang during "wait".

Fix by adding a sleep to allow socat to exit cleanly.

Signed-off-by: Ben Walsh <ben@jubnut.com>
9 months agoMerge branch 'oncp-large-config-hacks' into 'master'
David Woodhouse [Tue, 14 Jan 2025 12:40:31 +0000 (12:40 +0000)]
Merge branch 'oncp-large-config-hacks' into 'master'

Handle yet more oNCP framing idiocy

See merge request openconnect/openconnect!588

9 months agoUpdate translations from GNOME
David Woodhouse [Tue, 14 Jan 2025 10:47:45 +0000 (10:47 +0000)]
Update translations from GNOME

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
9 months agoHandle yet more oNCP framing idiocy
David Woodhouse [Mon, 13 Jan 2025 17:02:01 +0000 (17:02 +0000)]
Handle yet more oNCP framing idiocy

This protocol doesn't use TLS record framing, but *does* have its own
framing, each frame starting with a very minimal 2-byte frame length.

These frames can be larger than 16KiB which is the maximum size of a TLS
record. So ensure that we loop, reading a full frame where necessary.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
9 months agoMerge branch 'obs' into 'master'
David Woodhouse [Mon, 13 Jan 2025 12:09:51 +0000 (12:09 +0000)]
Merge branch 'obs' into 'master'

Fix links to Open Build Service

Closes #611

See merge request openconnect/openconnect!587

9 months agoFix typos found by codespell
Dimitri Papadopoulos [Tue, 27 Feb 2024 13:14:29 +0000 (14:14 +0100)]
Fix typos found by codespell

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
9 months agoFix links to Open Build Service
Dimitri Papadopoulos [Mon, 13 Jan 2025 08:22:58 +0000 (09:22 +0100)]
Fix links to Open Build Service

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
9 months agoFix OpenSSL build without engine.h
David Woodhouse [Fri, 10 Jan 2025 17:24:55 +0000 (17:24 +0000)]
Fix OpenSSL build without engine.h

Newer versions of OpenSSL don't provide engine.h at all.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
9 months agoMerge branch 'xstrdup' into 'master'
David Woodhouse [Fri, 10 Jan 2025 17:08:11 +0000 (17:08 +0000)]
Merge branch 'xstrdup' into 'master'

Remove duplicate strdup() calls

See merge request openconnect/openconnect!566

9 months agoMerge branch 'switch_while' into 'master'
David Woodhouse [Fri, 10 Jan 2025 17:06:56 +0000 (17:06 +0000)]
Merge branch 'switch_while' into 'master'

style: switch and while are not functions

See merge request openconnect/openconnect!580

9 months agoMerge branch 'tmp-mingw-copr' into 'master'
David Woodhouse [Fri, 10 Jan 2025 16:56:55 +0000 (16:56 +0000)]
Merge branch 'tmp-mingw-copr' into 'master'

Fix COPR builds for mingw

Closes #710

See merge request openconnect/openconnect!538

9 months agoFix typo in sockwrap workaround
David Woodhouse [Fri, 10 Jan 2025 16:50:08 +0000 (16:50 +0000)]
Fix typo in sockwrap workaround

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
9 months agoConsistency between tun.c and script.c
Dimitri Papadopoulos [Wed, 2 Nov 2022 23:25:38 +0000 (00:25 +0100)]
Consistency between tun.c and script.c

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
9 months agoCreate new process group for script
Dimitri Papadopoulos [Wed, 2 Nov 2022 23:21:51 +0000 (00:21 +0100)]
Create new process group for script

The SINGINT signal is delivered to the each process of the OpenConnect
process group. We want the script to run in a different process group,
so that SIGINT is not delivered to the script. We want the script to
finish its task, typically set/reset routing and DNS.

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
9 months agoRemove duplicate strdup() calls
Dimitri Papadopoulos [Tue, 30 Jul 2024 17:02:13 +0000 (19:02 +0200)]
Remove duplicate strdup() calls

The arguments of openconnect_set_mobile_info() have been strdup'ed:
- prior to passing them to openconnect_set_mobile_info(),
- inside openconnect_set_mobile_info().

We don't need both. I have chosen to keep the strdup() call inside
openconnect_set_mobile_info(), and discard the strdup() of the arguments
just before calling openconnect_set_mobile_info().

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
9 months agoMerge branch 'tmp-SSLContext' into 'master'
Dimitri Papadopoulos Orfanos [Thu, 9 Jan 2025 17:00:44 +0000 (17:00 +0000)]
Merge branch 'tmp-SSLContext' into 'master'

Fix CI deprecation warning

See merge request openconnect/openconnect!571

9 months agoMerge branch 'ics-openconnect' into 'master'
Dimitri Papadopoulos Orfanos [Thu, 9 Jan 2025 16:45:34 +0000 (16:45 +0000)]
Merge branch 'ics-openconnect' into 'master'

Address compiler warnings (ics-openconnect build)

See merge request openconnect/openconnect!583

9 months agoFix missing newline in Slovenian translation
David Woodhouse [Thu, 9 Jan 2025 12:06:46 +0000 (12:06 +0000)]
Fix missing newline in Slovenian translation

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
9 months agoAdd corrected string for Slovenian
David Woodhouse [Thu, 9 Jan 2025 09:13:14 +0000 (09:13 +0000)]
Add corrected string for Slovenian

This wasn't being pulled in from NetworkManager-openconnect because the
(fuzzy) translation had %s format specifiers. Fix it manually.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
9 months agoUpdate en_GB and en_US translations
David Woodhouse [Thu, 9 Jan 2025 09:37:44 +0000 (09:37 +0000)]
Update en_GB and en_US translations

Not much excuse for these to be so far down the list of stats in
https://l10n.gnome.org/module/NetworkManager-openconnect/

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
9 months agoUpdate translations from GNOME
David Woodhouse [Thu, 9 Jan 2025 08:52:01 +0000 (08:52 +0000)]
Update translations from GNOME

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
9 months agoResync translations with sources
David Woodhouse [Thu, 9 Jan 2025 08:43:35 +0000 (08:43 +0000)]
Resync translations with sources

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
9 months agoUpdate Chinese translation (zh_CN)
stever kevin [Thu, 9 Jan 2025 08:14:32 +0000 (08:14 +0000)]
Update Chinese translation (zh_CN)

Signed-off-by: stever kevin <24898890-mkevinstever@users.noreply.gitlab.com>
9 months agoMerge branch 'update_packaging' into 'master'
Luca Boccassi [Wed, 8 Jan 2025 22:43:01 +0000 (22:43 +0000)]
Merge branch 'update_packaging' into 'master'

Update Debian packaging from Salsa repo

See merge request openconnect/openconnect!581

9 months agoPass extra warning flags to the compiler
Dimitri Papadopoulos [Tue, 7 Jan 2025 18:36:07 +0000 (19:36 +0100)]
Pass extra warning flags to the compiler

This is an attempt to match the flags passed by the Android NDK when
building ics-openconnect.

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
9 months agoFix CI deprecation warning
Dimitri Papadopoulos Orfanos [Sat, 19 Oct 2024 15:47:25 +0000 (17:47 +0200)]
Fix CI deprecation warning

fake-cisco-server.py:205: DeprecationWarning: ssl.SSLContext() without protocol argument is deprecated.
fake-cisco-server.py:205: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated

All ssl.PROTOCOL_TLS* constants have been added in Python 3.6, and
the default PROTOCOL_TLS has been deprecated since Python 3.10.

Signed-off-by: Dimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
9 months agoAddress compiler warnings (ics-openconnect build)
Dimitri Papadopoulos [Tue, 7 Jan 2025 17:28:32 +0000 (18:28 +0100)]
Address compiler warnings (ics-openconnect build)

They are caused by the use of the GCC options:
  -Wparentheses
  -Wunused-function

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
9 months agotests: set SOCKET_WRAPPER_DIR_ALLOW_ORIG
David Woodhouse [Tue, 7 Jan 2025 13:20:13 +0000 (13:20 +0000)]
tests: set SOCKET_WRAPPER_DIR_ALLOW_ORIG

This allows the sockwrap library to use the original relative path of its
directory, instead of failing when realpath() gives an absolute pathname
which is too long. This was causing the COPR builds to fail on newer
versions of Fedora (with newer sockwrap).

Closes: #770
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
9 months agotests: Don't recreate sockdir after cleanup()
David Woodhouse [Tue, 7 Jan 2025 13:06:54 +0000 (13:06 +0000)]
tests: Don't recreate sockdir after cleanup()

Ever since commit bba8db3e922d ("modify tests/common.sh so that
launch_simple_sr_server() → test → cleanup() can be used repeatedly in a
single script") the cleanup() function has left an empty socket wrapper
directory behind.

Instead of recreating it in cleanup(), do so in launch_simple_sr_server()
launch_simple_pppd().

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
9 months agoAllow tests to run over IPv6 as well as Legacy IP
David Woodhouse [Fri, 5 Apr 2024 16:23:22 +0000 (17:23 +0100)]
Allow tests to run over IPv6 as well as Legacy IP

When run in an environment with no Legacy IP addresses, or no IPv6 addresses,
AI_ADDRCONFIG will cause getaddrinfo() not to return addresses of that type.

So when running in an IPv6-only environment, ocserv doesn't listen on Legacy
IP. And thus the tests fail. Fix this by using a hostname 'sockwrap' for the
test connections, and providing '--resolve' arguments for both the Legacy IP
and IPv6 addresses handled by libsocket_wrapper.

Some of the python test servers which don't use AI_ADDRCONFIG do still work
on Legacy IP, so leave those alone for now.

We recently added '-4' to the socat invocation for the nullppp tests, for
similar reasons (becaose socat started listening on IPv6 by default). We
can remove that now too.

Closes #721

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
9 months agoUse libsocket_wrapper for juniper-sso-auth test
David Woodhouse [Fri, 5 Apr 2024 16:21:09 +0000 (17:21 +0100)]
Use libsocket_wrapper for juniper-sso-auth test

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
9 months agoAccept multiple --resolve arguments
David Woodhouse [Fri, 5 Apr 2024 16:08:40 +0000 (17:08 +0100)]
Accept multiple --resolve arguments

e.g. --resolve sockwrap:fd00:5357:5f02 --resolve sockwrap:127.0.0.2 to
try reaching the socket wrapper tests over both IPv6 and Legacy IP.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
9 months agoUpdate Debian packaging from Salsa repo
Luca Boccassi [Fri, 3 Jan 2025 17:44:25 +0000 (17:44 +0000)]
Update Debian packaging from Salsa repo

Fixes builds in Debian testing

Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
9 months agostyle: switch and while are not functions
Dimitri Papadopoulos Orfanos [Tue, 31 Dec 2024 14:41:02 +0000 (15:41 +0100)]
style: switch and while are not functions

K&R and Linux Kernel coding style expect a space after these keywords:
if, switch, case, for, do, while

Signed-off-by: Dimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
9 months agoMerge branch 'autotools' into 'master'
Nikos Mavrogiannopoulos [Sat, 28 Dec 2024 20:29:51 +0000 (20:29 +0000)]
Merge branch 'autotools' into 'master'

Add automake/autoconf to requirements

Closes #775

See merge request openconnect/openconnect!579

10 months agoMerge branch 'android-build' into 'master'
Dimitri Papadopoulos Orfanos [Wed, 25 Dec 2024 22:12:34 +0000 (22:12 +0000)]
Merge branch 'android-build' into 'master'

Bump android dependencies

See merge request openconnect/openconnect!572

10 months agoAdd automake/autoconf to requirements
Dimitri Papadopoulos Orfanos [Tue, 24 Dec 2024 11:46:40 +0000 (12:46 +0100)]
Add automake/autoconf to requirements

Signed-off-by: Dimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
10 months agoMerge branch 'tmp-wintun-rework' into 'master'
Nikos Mavrogiannopoulos [Fri, 20 Dec 2024 14:39:09 +0000 (14:39 +0000)]
Merge branch 'tmp-wintun-rework' into 'master'

Rework adapter handling for Windows

See merge request openconnect/openconnect!569

10 months agofix URL to Open Build Service
Imple Lee [Thu, 19 Dec 2024 15:57:10 +0000 (15:57 +0000)]
fix URL to Open Build Service

The original page now shows an error stating `no implicit conversion of nil into String`.
This is due to an extra `;` in the URL.
It seems that Open Build Service doesn't accept this now.
Removing the extra `;` makes the link correct.

Signed-off-by: Imple Lee <lee.imple@gmail.com>
10 months agoandroid: update ci
Arthur Khachaturov [Tue, 29 Oct 2024 15:39:11 +0000 (18:39 +0300)]
android: update ci

Signed-off-by: Arthur Khachaturov <me@wzray.ru>
10 months agoandroid: update download mirrors
Arthur Khachaturov [Tue, 29 Oct 2024 15:27:06 +0000 (18:27 +0300)]
android: update download mirrors

Signed-off-by: Arthur Khachaturov <me@wzray.ru>
10 months agoandroid: bump dependencies
Arthur Khachaturov [Tue, 29 Oct 2024 15:26:45 +0000 (18:26 +0300)]
android: bump dependencies

Signed-off-by: Arthur Khachaturov <me@wzray.ru>
10 months agoMerge branch 'saml-tunnelgroup-fix' into 'master'
Nikos Mavrogiannopoulos [Fri, 29 Nov 2024 19:24:46 +0000 (19:24 +0000)]
Merge branch 'saml-tunnelgroup-fix' into 'master'

Don't default form action to '/' in AnyConnect/OpenConnect XML form handling

Closes #737

See merge request openconnect/openconnect!560

10 months agoMerge branch 'tmp-ci-timeout' into 'master'
Nikos Mavrogiannopoulos [Thu, 28 Nov 2024 14:14:13 +0000 (14:14 +0000)]
Merge branch 'tmp-ci-timeout' into 'master'

socat: added a timeout to ensure that it exits eventually

See merge request openconnect/openconnect!576

11 months agoDon't default form action to '/' in AnyConnect/OpenConnect XML form handling (fixes...
Stefan Bühler [Wed, 19 Jun 2024 14:01:10 +0000 (16:01 +0200)]
Don't default form action to '/' in AnyConnect/OpenConnect XML form handling (fixes #737)

Still require action to be non-empty if present.

Form action "redirect" handling code in auth.c already works with
action==NULL (as in not building a new URL).  (It'd do weird things
with an empty action though.)

Signed-off-by: Stefan Bühler <source@stbuehler.de>
11 months agosocat: added a timeout to ensure that it exits eventually
Nikos Mavrogiannopoulos [Sat, 23 Nov 2024 07:53:36 +0000 (08:53 +0100)]
socat: added a timeout to ensure that it exits eventually

Relates: #757

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
11 months agoUse RFC9266 'tls-exporter' channel bindings for Cisco STRAP with TLSv1.3
David Woodhouse [Fri, 15 Nov 2024 15:46:05 +0000 (15:46 +0000)]
Use RFC9266 'tls-exporter' channel bindings for Cisco STRAP with TLSv1.3

Fixes #659

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
11 months agoDon't use adapters of unknown type when an explicit interface is
Marios Paouris [Sun, 10 Nov 2024 07:00:44 +0000 (09:00 +0200)]
Don't use adapters of unknown type when an explicit interface is
requested

Signed-off-by: Marios Paouris <mspaourh@gmail.com>
11 months agoBugfix for check_address_conflicts call
Marios Paouris [Fri, 18 Oct 2024 20:23:06 +0000 (23:23 +0300)]
Bugfix for check_address_conflicts call

If check_address_conflict fails then the adapter would remain open.
Also, don't unnecessarily call this function.

Signed-off-by: Marios Paouris <mspaourh@gmail.com>
11 months agoImproved adapter name generation when no adapter name is specified.
Marios Paouris [Sat, 12 Oct 2024 14:56:34 +0000 (17:56 +0300)]
Improved adapter name generation when no adapter name is specified.

Try to find an adapter name that is not already used in the system by
appending a monotonically increasing integer to the hostname that is
used as a default name.

This works around wintun's weird behaviour of renaming existing adapters
without preventing two or more instances of openconnect to connect to
the same VPN host (without explicity specifying an interface name), or
otherwise messing with user's network adapters.

Signed-off-by: Marios Paouris <mspaourh@gmail.com>
11 months agoUse hostname as Wintun ifname (if ifname not specified), v2
Marios Paouris [Mon, 7 Oct 2024 05:53:35 +0000 (08:53 +0300)]
Use hostname as Wintun ifname (if ifname not specified), v2

The intention for the commit 48bd28aa was a bit different
from what was actually implemented.

Although it states that "Instead, we should use the VPN server's hostname
as a sane default interface name with Wintun, and only attempt to use
TAP-Windows as a fallback in the case where Wintun can't be initialized.",
it first tries with an empty interface name, which uses the first available
interface found, whether it is tap or tun, and if that fails then creates
the same default with the server name, which will prioritize wintun over
tap.

Instead, implement the following flow:

If the user did specify an interface name:
  - Try to find an adapter with the specified name (whether it's tun
    or tap) and use it.
  - If no adapter found, try to create a wintun adapter. If wintun is
    not available then bail out.
If the user did not specify an interface name:
  - Generate a default interface name based on the server URL.
  - If the generated interface already exists don't try to use it
    and fallback to using the first available adapter.
  - If the generated interface doesn't exist, try to create a wintun
    adapter. If wintun in not available then fallback to using the first
    available adapter.

See https://gitlab.com/openconnect/openconnect-gui/-/issues/357#note_1758999655
and https://gitlab.com/openconnect/openconnect/-/issues/699#note_1762029017

Signed-off-by: Marios Paouris <mspaourh@gmail.com>
11 months agoFix memory leaks. openconnect__win32_strerror returns a malloc\'ed string
Marios Paouris [Mon, 23 Sep 2024 06:12:27 +0000 (09:12 +0300)]
Fix memory leaks. openconnect__win32_strerror returns a malloc\'ed string

Signed-off-by: Marios Paouris <mspaourh@gmail.com>
11 months agoRework adapter search.
Marios Paouris [Mon, 23 Sep 2024 05:42:09 +0000 (08:42 +0300)]
Rework adapter search.

Enumerate adapters to a list to decouple searching from enumerating.
Add adapters with of not interested types to the list, to facilitate name
collision detection, if needed.
Get Wintun adapter guid by calling APIs instead of searching again.

Also, disabled list-taps on cross mingw builds

Signed-off-by: Marios Paouris <mspaourh@gmail.com>
11 months agoMerge branch 'OpenSSL_3.1.2_PKCS7_sign' into 'master'
Nikos Mavrogiannopoulos [Sun, 3 Nov 2024 18:47:58 +0000 (18:47 +0000)]
Merge branch 'OpenSSL_3.1.2_PKCS7_sign' into 'master'

Fix CI pipeline failures

See merge request openconnect/openconnect!573