47 Commits

Author SHA1 Message Date
Nikos Mavrogiannopoulos
cf56c9754b Switch from http-parser to llhttp
http-parser is an unmaintained library that has been replaced by llhttp.

Resolves: #598

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2024-04-28 13:37:19 +02: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
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
6e05add266 code coverage: work with lcov 2.0
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2023-12-12 11:27:53 +01:00
Nikos Mavrogiannopoulos
1ca50d7337 Removed gnulib
Supporting gnulib brought a whole class of problems due to its complexity.
Removing its support eliminates this class of problems and simplifies the
code significantly.

This sets the locale explicitly on server startup to eliminate the
need for custom string comparison functions.

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2023-06-13 16:54:38 +02:00
Nikos Mavrogiannopoulos
d98a06e143 Fixed operation of make distcheck
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2023-05-08 09:43:16 +02:00
Nikos Mavrogiannopoulos
e7a9529051 improved code coverage identification
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2022-12-02 19:59:52 +01:00
Nikos Mavrogiannopoulos
413edf38bf Makefile.am: LICENSE -> COPYING
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2022-06-02 08:51:20 +02:00
Dimitri Papadopoulos
2cec6c92d1 Silence the codespell recipe in Makefile
Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
2021-12-23 11:52:17 +01:00
Dimitri Papadopoulos
c009134915 Add codespell CI runner
Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
2021-12-23 10:04:30 +01:00
Nikos Mavrogiannopoulos
dfadd45b9b Makefile: removed unused rules
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2020-11-12 16:37:25 +01:00
Nikos Mavrogiannopoulos
b94449211f AUTHORS: auto-generate
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2019-12-27 22:53:22 +01:00
Nikos Mavrogiannopoulos
9f51f86b55 Makefile: removed dependency on git2cl
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2019-07-01 21:56:03 +02:00
Nikos Mavrogiannopoulos
dfab7f6e30 Create coverage report and depend on pre-built CI images
It will be made available at:
https://ocserv.gitlab.io/ocserv/coverage/

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2018-03-12 21:54:44 +01:00
Nikos Mavrogiannopoulos
760199a33c doc: man-pages are modified to be generated using ronn
That eliminates the need for autogen and also combines
doc/sample.config and manpage contents. Now the doc/sample.config
is the primary config documentation location.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2018-01-23 21:07:18 +01:00
Nikos Mavrogiannopoulos
1b8079a11a Replaced the configuration parser with inih parser
That eliminates the dependency on libopts as well as autogen.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2018-01-23 21:07:18 +01:00
Nikos Mavrogiannopoulos
533677bd73 ocserv: use getopt for command line parsing
The complexity of its command line options didn't require
the use of libopts, and by eliminating that dependency for cmd
parsing, we can chose another parser for config file parsing.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2018-01-23 21:07:18 +01:00
Nikos Mavrogiannopoulos
6b7d09485e ocpasswd: removed dependency on autogen
The complexity of its command line options didn't require
the linking to yet another library.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2018-01-23 21:07:18 +01:00
Nikos Mavrogiannopoulos
3d940695d8 Added contribution guide and require DCO
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
2017-01-10 16:52:18 +01:00
Nikos Mavrogiannopoulos
2c64c99baa Reverted recursive make in src/
This simplifies the make process and allows for greater parallelism
during build.
2016-12-13 15:37:07 +01:00
Nikos Mavrogiannopoulos
1b7e00ed02 Use unique names for autogen files
This addresses issue in parallel builds caused by autogen
using the same temporary files for both occtl and ocpasswd
files.

Resolves #76
2016-12-13 09:39:51 +01:00
Nikos Mavrogiannopoulos
e42c5ed7e7 autogen: store and use auto-generated autogen .in files in git builds
This simplifies the generation of the files (delegated to configure),
and allows systems without autogen to be used to compile git sources.
2016-11-17 08:28:11 +01:00
Nikos Mavrogiannopoulos
5caf3f82ad .gitlab-ci.yml: enhanced separate build dir check with code coverage output 2016-04-29 16:33:41 +02:00
Nikos Mavrogiannopoulos
795730a681 configure: Add a code coverage option
Configure with:
  ./configure --enable-code-coverage
Show coverage output with:
  make && make check && make code-coverage-capture

It does not take into account tests run under docker.
2016-04-16 12:39:18 +02:00
Nikos Mavrogiannopoulos
90da5ee1ed updated Makefile and configure for new .def paths 2015-10-31 00:12:04 +01:00
Nikos Mavrogiannopoulos
43ebfb9986 .gitlab-ci.yml: don't check libopts match in make dist 2015-09-23 00:07:11 +02:00
Nikos Mavrogiannopoulos
5dd511d0aa Makefile: use srcdir to reach libopts 2015-09-22 16:15:38 +02:00
Nikos Mavrogiannopoulos
a8ea052bbf doc: converted README.radius to markdown and link it from README.md 2015-09-19 20:43:44 +02:00
Nikos Mavrogiannopoulos
1f29345d42 Makefile: use the foreign automake rules
That allows to compile without following the strict GNU standards.
2015-09-19 12:48:44 +02:00
Nikos Mavrogiannopoulos
dca5fb3d9b prior to release check that the version of libopts matches the included 2015-08-22 21:48:54 +02:00
Nikos Mavrogiannopoulos
6b6adae25e corrected args file generation 2014-01-11 14:46:34 +01:00
Nikos Mavrogiannopoulos
316c36fc05 generated files added to BUILT_SOURCES to fix parallel compilation 2013-12-13 18:45:13 +01:00
Nikos Mavrogiannopoulos
438b76ff58 Distribute the autogen'erated files as .bak and enable them only if local libopts is being used. 2013-11-09 13:10:04 +01:00
Nikos Mavrogiannopoulos
b899cba222 ensure that auto-generated files will be auto-generated during compilation. 2013-11-06 00:09:19 +01:00
Nikos Mavrogiannopoulos
14a06cec0c autogenerate changelog prior to release 2013-11-05 20:04:42 +01:00
Mike Miller
5b1f23b55f Allow linking with system libopts if installed 2013-11-05 19:45:00 +01:00
Nikos Mavrogiannopoulos
cc0612ddeb Added lib-link.m4 via gnulib. 2013-11-05 19:34:08 +01:00
Nikos Mavrogiannopoulos
355dbdbef0 regenerate autogen'ed files when making a distribution. 2013-07-23 21:39:47 +02:00
Nikos Mavrogiannopoulos
3e6e90f734 Added test suite that depends on openconnect. 2013-07-06 17:11:26 +02:00
Nikos Mavrogiannopoulos
fdee3b6169 automate the clang static check of code. 2013-07-05 15:07:54 +02:00
Nikos Mavrogiannopoulos
e5fd319026 emulate gettime 2013-05-20 11:01:29 +02:00
Nikos Mavrogiannopoulos
02895efaf7 Added license file 2013-03-25 20:02:15 +01:00
Jason Cooper
992601bbd8 add cscope/ctags make targets
Newcomers to the code often use these tools to learn their way around.
Integrate them into the build so that we don't accidentally track their
files.

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2013-02-26 18:33:05 +01:00
Nikos Mavrogiannopoulos
121b2491aa HUP signal reloads configuration 2013-02-12 18:57:05 +01:00
Nikos Mavrogiannopoulos
519f0a13ef Several changes to compile on old linux kernels, and in constrained libgnutls libraries 2013-02-09 12:15:55 +01:00
Nikos Mavrogiannopoulos
8c2735d1e1 use autogen for command line options 2013-01-30 01:39:14 +01:00
Nikos Mavrogiannopoulos
f210a96e02 Added automake/autoconf system 2013-01-13 11:25:05 +01:00