Commit Graph

97 Commits

Author SHA1 Message Date
Nikos Mavrogiannopoulos
4a372f4e05 Replace header_check() mess with a gperf table 2015-01-16 11:07:10 +01:00
Nikos Mavrogiannopoulos
dcf47899e0 Moved HTTP parts of worker to worker-http.c 2015-01-16 10:56:35 +01:00
Nikos Mavrogiannopoulos
85d3162f45 Added support for LZS 2015-01-15 22:58:17 +01:00
Nikos Mavrogiannopoulos
3c023ffe5e Added support for LZ4 compression 2015-01-15 16:39:36 +01:00
Nikos Mavrogiannopoulos
766afb591a Added support for reading user configuration from radius. 2014-12-09 15:38:27 +01:00
Nikos Mavrogiannopoulos
2194e11b39 Added support for radius authentication 2014-12-09 10:59:18 +01:00
Nikos Mavrogiannopoulos
baa3e4701e Supplementary configuration is now read by the security module.
That allows sec-mod to handle both authentication and accounting.
That deprecates the session-control configuration option.
2014-12-08 13:52:28 +01:00
Nikos Mavrogiannopoulos
53005a2cfd use hash tables to locate proc entries
That would avoid a walk on all connected clients, when a
new UDP session starts.
2014-10-27 15:01:05 +01:00
Nikos Mavrogiannopoulos
60bea96cce corrected included protobuf's path, to align with protobuf 1.0.0 2014-08-24 08:15:42 +02:00
Nikos Mavrogiannopoulos
3de707b0fe introduced str_append_printf() 2014-06-26 13:46:31 +02:00
Nikos Mavrogiannopoulos
ade4f84e70 autogenerate args files if version.inc is update. 2014-05-31 21:47:56 +02:00
Joerg Mayer
d879c9761a ocserv: Fix out of tree builds
Signed-off-by: Joerg Mayer <jmayer@loplof.de>
2014-05-27 09:32:29 +02:00
Nikos Mavrogiannopoulos
659cc9850c Corrected filename in Makefile. 2014-05-19 18:26:06 +02:00
Nikos Mavrogiannopoulos
d99c527758 memory reorganization in sec-mod.
It no longer relies on main pool, it uses it's own pool.
In addition the DEBUG_LEAKS definition was added to allow debugging
leaks.
2014-05-15 16:44:43 +02:00
Nikos Mavrogiannopoulos
e7171ac859 Supplementary group/user configuration is now modular.
That will ease the addition of other backends that can be used to
read the user/group configuration. The only backend supported now
is file.
2014-05-15 11:36:30 +02:00
Nikos Mavrogiannopoulos
231316f624 cleanup the inclusion of protobuf sources. 2014-05-15 10:44:35 +02:00
Nikos Mavrogiannopoulos
53f3129da9 Authentication modules were moved to subdirectory auth/ 2014-05-14 14:35:50 +02:00
Nikos Mavrogiannopoulos
09704b8819 Password authentication is now delegated to sec-mod.
That prevents any memory from the authentication modules to be leaked
to a worker process. As a result, the status zombie and dead no longer
exists.
2014-05-14 11:37:01 +02:00
Nikos Mavrogiannopoulos
4b1dc9b38e Added missing files. 2014-05-10 23:12:15 +02:00
Nikos Mavrogiannopoulos
969e684960 Use talloc() for all allocations to reduce the possibility of memory leaks. 2014-05-09 16:13:11 +02:00
Nikos Mavrogiannopoulos
71104b36a3 Added support for unix sockets for the occtl communication.
D-BUS support is left, but is not enabled by default.
2014-05-07 13:54:58 +02:00
Nikos Mavrogiannopoulos
6f694915c7 Added talloc. 2014-05-06 16:22:50 +02:00
Nikos Mavrogiannopoulos
a5f2bb1705 Added LIBGNUTLS_CFLAGS to ocserv's CFLAGS 2014-03-31 16:26:23 +02:00
Nikos Mavrogiannopoulos
28e5d62f3f The worker process receives the client's IPs from the main process.
That eliminates the need to read the IP address from the tun device
(which can be quite tricky to implement in a clean portable way).
2014-01-31 20:53:45 +01:00
Nikos Mavrogiannopoulos
6a9600aa61 When libreadline isn't available try editline. 2014-01-21 14:34:35 +01:00
Nikos Mavrogiannopoulos
d4272b8e72 Changes to avoid the embedded protobuf files being included when not needed. 2014-01-20 23:26:56 +01:00
Nikos Mavrogiannopoulos
8884cfc940 protocolbuf-c was made an optional dependency. 2014-01-20 11:23:19 +01:00
Nikos Mavrogiannopoulos
766ab8ee21 Added function to print network interface statistics. 2014-01-14 10:20:47 +01:00
Nikos Mavrogiannopoulos
40ac1f2727 combined EXTRA_DIST 2014-01-11 14:45:08 +01:00
Nikos Mavrogiannopoulos
43f7001480 added missing file 2014-01-11 14:36:08 +01:00
Nikos Mavrogiannopoulos
0eef3bd5be Added occtl.8 2014-01-11 13:27:53 +01:00
Nikos Mavrogiannopoulos
503cd9576d Add usernames and session IDs to readline cache.
This allows auto-completion to show user, and show id,
after list users is executed.
2014-01-10 10:48:55 +01:00
Nikos Mavrogiannopoulos
349e658fd7 print the connection time in a compact way 2014-01-09 15:32:36 +01:00
Nikos Mavrogiannopoulos
9da260fe24 Use pager in list users command. 2014-01-09 13:24:28 +01:00
Nikos Mavrogiannopoulos
3694f4271c Added occtl a D-BUS client to query and send commands to server. 2014-01-08 16:25:36 +01:00
Nikos Mavrogiannopoulos
0cf7529c72 Added support for control commands using D-BUS. 2014-01-08 11:15:06 +01:00
Nikos Mavrogiannopoulos
6cf43e6d20 Added support for systemd's socket activatable service. 2013-12-30 21:37:34 +01:00
Nikos Mavrogiannopoulos
058b986967 Converted IPC messaging to protocolbuffers-c
That adds a dependency on protocolbuffers-c, but simplifies
the worker-main communication protocol handling.
2013-12-21 12:38:01 +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
413ba6120c avoid @AUTOGEN@ 2013-12-13 18:36:34 +01:00
Nikos Mavrogiannopoulos
a1fda9bd27 Added newline 2013-12-13 18:32:42 +01:00
Nikos Mavrogiannopoulos
6cb553e9a8 Added the net-priority configuration option.
That option allows setting the protocol-defined priority (via SO_PRIORITY)
for the UDP and TCP sockets, per user/group or globally.
2013-12-09 14:40:55 +01:00
Nikos Mavrogiannopoulos
d5dcee6fb0 fixed issue when compiling with -j 2013-12-05 20:53:24 +01:00
Nikos Mavrogiannopoulos
7d70006a2d Check for local http_parser library. If found use it instead of the included one. 2013-11-10 15:14:37 +01:00
Nikos Mavrogiannopoulos
aff7acedb2 separated auto-generated files into special libraries to allow compilation using make -jx, x>1 2013-11-08 18:22:25 +01:00
Nikos Mavrogiannopoulos
eb36a15550 reorganized file generation and removed auto-generated files. 2013-11-05 20:01:49 +01:00
Mike Miller
5b1f23b55f Allow linking with system libopts if installed 2013-11-05 19:45:00 +01:00
Nikos Mavrogiannopoulos
68762f5862 removed unneeded check for gdbm 2013-11-05 19:39:56 +01:00
Nikos Mavrogiannopoulos
1e8d036727 Move ocserv to sbin 2013-11-05 19:39:14 +01:00
Nikos Mavrogiannopoulos
2f5141b00f Added directives to allow bandwidth limitation. 2013-11-03 17:06:02 +01:00