4017 Commits

Author SHA1 Message Date
Nikos Mavrogiannopoulos
fe05d2a630 Require ipcalc for the test suite
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2024-01-25 09:57:39 +01:00
Nikos Mavrogiannopoulos
2a17ffb874 release.sh: use package type for tarball
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2024-01-24 10:26:35 +01:00
Nikos Mavrogiannopoulos
b94591a168 release.sh: updated
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2024-01-22 23:22:58 +01:00
Nikos Mavrogiannopoulos
7ced730fb2 released 1.2.4
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
1.2.4
2024-01-22 22:57:08 +01:00
Nikos Mavrogiannopoulos
ab02819cd8 release.sh: read .gitlab-token from home dir
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2024-01-22 16:11:40 +01:00
Nikos Mavrogiannopoulos
b569822267 Merge branch 'speed-limit' into 'master'
Retrieve connection speed from RADIUS

Closes #554

See merge request openconnect/ocserv!390
2024-01-22 15:10:09 +00:00
Dimitri Papadopoulos
ab58d9e9d7 Retrieve connection speed from RADIUS
Hijack Roaring Penguin's RADIUS attributes for that purpose:
* RP-Upstream-Speed-Limit → rx_per_sec
* RP-Downstream-Speed-Limit → tx_per_sec

While the ocserv configuration options use b/s, ocserv uses kb/s
internally. The radius attributes are already expressed in kb/s,
so we don't need to convert them.

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
2024-01-20 20:12:34 +01:00
Nikos Mavrogiannopoulos
df657e2772 .triage-policies.yml: updated
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2024-01-16 06:12:32 +01:00
Nikos Mavrogiannopoulos
dd6778bf60 .gitlab-ci.yml: use CI_PROJECT_ID for triage
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2024-01-16 06:06:05 +01:00
Dimitri Papadopoulos Orfanos
aa41bfb8fe Merge branch 'PACKAGE_NAME' into 'master'
Further improvements to arguments of AC_INIT

See merge request openconnect/ocserv!410
2024-01-07 16:28:04 +00:00
Nikos Mavrogiannopoulos
313e68b933 main: increased details on error message
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2024-01-07 00:37:33 +01:00
Nikos Mavrogiannopoulos
072dd794c8 Merge branch 'tmp-detect-new-openconnect' into 'master'
Added detection logic for new openconnect

See merge request openconnect/ocserv!411
2024-01-06 21:59:54 +00:00
Nikos Mavrogiannopoulos
c403e2bd02 Added detection logic for new openconnect
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2024-01-06 22:21:54 +01:00
Dimitri Papadopoulos
badf9be99a Further improvements to arguments of AC_INIT
Reapply df6a3c2a, this time without regression.

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
2024-01-06 18:21:27 +01:00
Dimitri Papadopoulos Orfanos
7e9af98c28 Merge branch 'bug_reports' into 'master'
Bug reports are not to be sent by mail anymore

See merge request openconnect/ocserv!409
2024-01-06 09:04:55 +00:00
Dimitri Papadopoulos
3a3edcfd80 Bug reports are not to be sent by mail anymore
Instead they should be filed on GitLab.

Adapt the relevant explanation to the different tpye of bug reporting mechanism.

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
2024-01-05 23:31:05 +01:00
Nikos Mavrogiannopoulos
5756c06d81 .gitlab-ci.yml: removed the cppcheck checks
They were causing more troubles than they were detecting actual
issues.

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2024-01-05 22:09:11 +01:00
Nikos Mavrogiannopoulos
311abb5443 coverage: fix coverage calculation
This fixes regression from df6a3c2abe

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2024-01-05 21:13:08 +01:00
Nikos Mavrogiannopoulos
29dba5cee8 web: updated links to web page
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2024-01-05 16:47:18 +01:00
Nikos Mavrogiannopoulos
2bc6ab240e Merge branch 'man' into 'master'
Reorder man pages

See merge request openconnect/ocserv!408
2024-01-01 07:14:21 +00:00
Dimitri Papadopoulos
b41130163d Reorder man pages
Follow the conventions for writing Linux man pages:
https://man7.org/linux/man-pages/man7/man-pages.7.html

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
2023-12-30 22:48:02 +01:00
Dimitri Papadopoulos Orfanos
92a9205814 Merge branch 'automake_1.14' into 'master'
Restore AM_PROG_CC_C_O instead of bumping minimal Automake version

See merge request openconnect/ocserv!402
2023-12-30 19:06:31 +00:00
Dimitri Papadopoulos Orfanos
bdacff5e50 Merge branch 'gl_HOST_CPU_C_ABI_32BIT' into 'master'
Avoid Autoconf warning

Closes #570

See merge request openconnect/ocserv!407
2023-12-30 19:04:55 +00:00
Nikos Mavrogiannopoulos
5a40095efa README.md: mention ronn for manpage building
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2023-12-30 18:05:23 +01:00
Nikos Mavrogiannopoulos
7c9e9b76a6 doc: mention issue tracker to manpage
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2023-12-30 18:03:51 +01:00
Nikos Mavrogiannopoulos
a002d81685 Merge branch 'AC_INIT' into 'master'
Further improvements to arguments of AC_INIT

See merge request openconnect/ocserv!406
2023-12-30 16:55:06 +00:00
Nikos Mavrogiannopoulos
2bfb188574 Merge branch 'tmp-better-log-radius' into 'master'
tests: improved radius log presentation & IP assignment

See merge request openconnect/ocserv!404
2023-12-30 14:26:06 +00:00
Dimitri Papadopoulos
ff9d43df09 Revert eeac2728
AM_PROG_CC_C_O is obsolescent starting with Automake 1.14.

CentOS 7 ships Automake 1.13.4. Keep AM_PROG_CC_C_O as long as we need
to support CentOS 7, to avoid this warning:
	src/Makefile.am:170: warning: compiling 'ccan/hash/hash.c' in
	                              subdir requires 'AM_PROG_CC_C_O'
	                              in 'configure.ac'

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
2023-12-30 13:06:04 +01:00
Nikos Mavrogiannopoulos
bc4b1c5f12 tests: auto-generate random addresses instead of hard-coding them
The main benefit is that there is less manual work to add a
test (discovery of unique random addresses is not necessary),
but it also ensures that the tests can run on environments where the
previously hard-coded addresses were present.

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2023-12-29 21:18:28 +01:00
Nikos Mavrogiannopoulos
21e35358b4 tests: improved radius log presentation
Include the radiusd output with debugging information on stdout
for the radius tests. This allows better visibility to potential
configuration issues of radiusd.

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2023-12-29 16:38:03 +01:00
Dimitri Papadopoulos
df6a3c2abe Further improvements to arguments of AC_INIT
The first argument is the full package name. Change it to match the
GitLab home page and documentation:
	ocserv → OpenConnect VPN Server

The package tarname differs from the package name: the latter designates
the full package name, while the former is the distribution tarball name.
Because the tarname cannot be inferred from the newly modified full
package name, we have to set it explicitly:
	ocserv

The last argument url should be the home page for the package.

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
2023-12-29 15:34:20 +01:00
Dimitri Papadopoulos
f6f4c260c3 Avoid Autoconf warning
The warning is:
	configure.ac:94: warning: gl_HOST_CPU_C_ABI_32BIT is
	                          m4_require'd but not m4_defun'd

The reason was that m4/lib-prefix.m4 was missing this depedency:
	m4/host-cpu-c-abi.m4

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
2023-12-29 14:48:28 +01:00
Nikos Mavrogiannopoulos
6ac5c62d08 .triage-policies.yml: reduce the time for closing old MRs
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2023-12-27 19:43:04 +01:00
Nikos Mavrogiannopoulos
135a60e2b6 key_cb_common_func: do not issue error about connecting to sec-mod
This avoids noise during startup.

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2023-12-24 13:41:33 +01:00
Nikos Mavrogiannopoulos
5fa9724955 Merge branch 'second' into 'master'
Use proper SI symbols

See merge request openconnect/ocserv!394
2023-12-24 10:32:20 +00:00
Dimitri Papadopoulos
715b9b2ea1 Use proper symbol for second, prefix for kilo
The SI symbol for second is s:
https://www.bipm.org/en/si-base-units/second

The SI prefix for a multiplying factor of 10³ is k:
https://www.bipm.org/en/measurement-units/si-prefixes

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
2023-12-24 10:40:21 +01:00
Nikos Mavrogiannopoulos
1507742896 Merge branch 'bug-report' into 'master'
Modify bug-report argument of AC_INIT

See merge request openconnect/ocserv!401
2023-12-24 08:52:54 +00:00
Nikos Mavrogiannopoulos
6fb5983082 Merge branch 'syslog_stderr' into 'master'
Fix logging to stderr

See merge request openconnect/ocserv!400
2023-12-24 08:50:32 +00:00
Dimitri Papadopoulos
eeac272832 Get rid of obsolescent AM_PROG_CC_C_O
From the Automake manual:
	This is an obsolescent macro that checks that the C compiler
	supports the -c and -o options together. Note that, since
	Automake 1.14, the AC_PROG_CC is rewritten to implement such
	checks itself, and thus the explicit use of AM_PROG_CC_C_O
	should no longer be required.

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
2023-12-23 23:17:45 +01:00
Dimitri Papadopoulos
54818f3b67 Fix logging to stderr
While each `syslog()` adds a new entry to the system log,
`fprintf(stder, ...)` does not automatically add a newline
to distinguish between entries. We need to add the newline
ourselves.

We tried to make _oc_syslog() as atomic as possible in the
context of a multi-process daemonn by keeping a single
`fprtinf()` call. Probably not perfect, but the best we
can do when printing to stderr instead of using the system
logger. Works only with the GNU C or compatible compiler.

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
2023-12-23 23:17:41 +01:00
Dimitri Papadopoulos
443a4ea795 Modify bug-report argument of AC_INIT
The third argument of the Autoconf macro AC_INIT() is bug-report.

The Autoconf 2.61 manual states this should be an email:
	The optional argument bug-report should be the email to
	which users should send bug reports.

The Autoconf 2.68 manual relaxes the requirement by adding:
	AC_PACKAGE_BUGREPORT, PACKAGE_BUGREPORT
	Exactly bug-report, if one was provided. Typically an
	email address, or URL to a bug management web page.

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
2023-12-23 13:01:00 +01:00
Nikos Mavrogiannopoulos
a000f32daf Merge branch 'ff57a148' into 'master'
Add missing entry in NEWS

See merge request openconnect/ocserv!398
2023-12-23 11:09:56 +00:00
Nikos Mavrogiannopoulos
f7da007da8 Merge branch 'servers' into 'master'
Minor typo

See merge request openconnect/ocserv!399
2023-12-22 18:25:53 +00:00
Dimitri Papadopoulos
8a61a68f06 More missing entries in NEWS
Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
2023-12-22 15:59:13 +01:00
Dimitri Papadopoulos
311433b4db Minor typo
Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
2023-12-22 15:56:47 +01:00
Dimitri Papadopoulos
2f2346c625 Add missing entry in NEWS
For ff57a148 / !397.

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
2023-12-20 22:09:58 +01:00
Nikos Mavrogiannopoulos
1792d3d00f Merge branch 'authgroup' into 'master'
Fix openconnect --authgroup option in tests

See merge request openconnect/ocserv!395
2023-12-20 19:31:08 +00:00
Dimitri Papadopoulos Orfanos
77098a7d98 Merge branch 'master' into 'master'
Added /VPNManifest.xml to AnyConnect urls for Cisco AnyConnect Linux clients

See merge request openconnect/ocserv!397
2023-12-20 17:05:44 +00:00
Rob van Oostenrijk
ff57a14824 Added /VPNManifest.xml to AnyConnect urls for Cisco AnyConnect Linux clients
Signed-off-by: Rob van Oostenrijk <rob.vanoostenrijk@emirates.com>
2023-12-20 19:14:34 +04:00
Dimitri Papadopoulos
7d6213a0d0 Fix openconnect --authgroup option in tests
Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
2023-12-20 13:34:31 +01:00