~mamarley/openconnect/+git/gitlab-main:workaround_missed_ESP_key_updates_in_oNCP

Last commit made on 2024-04-25
Get this branch:
git clone -b workaround_missed_ESP_key_updates_in_oNCP https://git.launchpad.net/~mamarley/openconnect/+git/gitlab-main

Branch merges

Branch information

Name:
workaround_missed_ESP_key_updates_in_oNCP
Repository:
lp:~mamarley/openconnect/+git/gitlab-main

Recent commits

0f0c694... by Dan Lenski

Update changelog

Signed-off-by: Daniel Lenski <email address hidden>

1847dcf... by Dan Lenski

Workaround for missed ESP key updates in Juniper/oNCP protocol

The Juniper/oNCP protocol informs the client of the ESP key lifetime (in
either seconds or bytes; we do not handle the latter case), but normally the
rekey is initiated by the server, which is supposed to send new keys to the
client with a KMP 302 packet on the oNCP/TLS channel.

However, when the ESP channel is used for data transport, the oNCP/TLS
channel is idle, and we don't know how to keep it alive or even to detect if
it is still alive. Therefore the server-initiated ESP key updates may not
be received, and the ESP channel will suddenly stop working; see
https://gitlab.com/openconnect/openconnect/-/issues/627#note_1438325857 for
a probable case.

As a workaround, we can rekey by reconnecting the TLS channel and
re-fetching the config shortly before the ESP keys expire, if we haven't
already received new ESP keys from the server at this point.

Signed-off-by: Daniel Lenski <email address hidden>

690262e... by dwmw2

Merge branch 'Fedora_ppp-over-tls' into 'master'

Verbose logs to debug and fix ppp-over-tls

Closes #720

See merge request openconnect/openconnect!548

d756e2a... by Dimitri Papadopoulos Orfanos <email address hidden>

Verbose socat logs for debugging, Add '-4' to listen on Legacy IP (for sockwrap)

Signed-off-by: Dimitri Papadopoulos Orfanos <email address hidden>

d7a524a... by Dimitri Papadopoulos Orfanos <email address hidden>

Merge branch 'LOAD_LIBRARY_SEARCH_SYSTEM32' into 'master'

Search wintun.dll in the application directory only

See merge request openconnect/openconnect!541

5d228bb... by Dimitri Papadopoulos <email address hidden>

Search wintun.dll in the application directory only

Now that wintun.dll is installed in the application directory by
both openconnect and openconnect-gui packages, we can get rid of
LOAD_LIBRARY_SEARCH_SYSTEM32.

Signed-off-by: Dimitri Papadopoulos <email address hidden>

d2025f9... by Dan Lenski

Merge branch 'rekey' into master

Fix logging of rekey / trojan invocation delay

See merge request openconnect/openconnect!539

29815ae... by Dan Lenski

Update changelog

Signed-off-by: Daniel Lenski <email address hidden>

17b45cd... by Wade Cline

Fix logging of rekey / trojan invocation delay

Closes #677

The rekey / trojan invocation is supposed to happen in the future.
Therefore subtract current time from expected time of rekey / invocation,
not the reverse.

These delays have been shown incorrectly ever since the SIGUSR1 handler was
added in b156b581e894b03e7169827b9e293ca2f13e1366.

Originally submitted at
https://lists.infradead.org/pipermail/openconnect-devel/2024-February/005400.html

Signed-off-by: Cline, Wade <email address hidden>
Signed-off-by: Dimitri Papadopoulos <email address hidden>
Signed-off-by: Daniel Lenski <email address hidden>

8489956... by Dan Lenski

Merge branch 'tmp-build-mingw' into 'master'

MinGW build improvements

See merge request openconnect/openconnect!537