yrutschle
a80e2ceb27
remove obsolete declaration
2021-11-07 13:13:41 +01:00
yrutschle
e28fa91b0f
reap children properly
2021-11-07 13:13:05 +01:00
yrutschle
17313100b5
print cnx type when dumping it
2021-11-01 18:48:26 +01:00
yrutschle
4cd3ab8958
moved watcher add to watcher init
2021-10-28 15:41:09 +02:00
yrutschle
5ec1f7eb98
added missing header
2021-10-28 15:40:40 +02:00
Yves Rutschle
5b21375087
Merge pull request #310 from bket/fix_tests
...
Fix (some) failing tests
2021-10-28 15:07:51 +02:00
Björn Ketelaars
d57a155bf4
Fix (some) failing tests
...
Found a couple of failing tests on Alpine Linux and OpenBSD. For the
tests to even run `ip4-localhost` has to be changed to an IP-address
(127.0.0.1). `ip4-localhost` is typically not part of `/etc/hosts`.
Output failing tests:
```
not ok 5
udp: 0
prefix: tls:
listen [1]:
host: localhost
port: 9025
flushing deferred data to fd 9
selecting... max_fd=11 num_probing=0
activity on fd8
closing fd 8
closing fd 9
selecting... max_fd=11 num_probing=0
# Failed test at ./t line 59.
# got: '1'
# expected: 'sslh-select: Connect and write nothing'
```
```
not ok 22 - sslh-select:ssh: probe connected correctly
# Failed test 'sslh-select:ssh: probe connected correctly'
# at ./t line 59.
# got: 'regex'
# expected: 'ssh'
```
```
not ok 68 - sslh-select:ssh: probe connected correctly
# Failed test 'sslh-select:ssh: probe connected correctly'
# at ./t line 59.
# got: 'regex'
# expected: 'ssh'
```
Diff works around issues causing tests 22 and 68 to fail. As of yet, no
workaround for test 5 has been found.
2021-10-27 19:52:06 +02:00
yrutschle
ec033efbbc
refactor more code from sslh-select to processes.c
2021-10-26 21:45:44 +02:00
yrutschle
3389000ff3
move action processing to its own file
2021-10-17 16:02:49 +02:00
yrutschle
25abd765cb
refactor: abstract watchers from loop data
2021-10-11 22:40:46 +02:00
yrutschle
2cdd60dd18
make systemd-sslh-generator work again ( fix #308 again)
2021-10-04 21:34:22 +02:00
yrutschle
b0aeeff465
Include log header before defining macros that depend on log levels. ( fix #308 )
2021-10-04 09:11:41 +02:00
yrutschle
c9eff6e38d
removed obsolete declarations
2021-10-03 17:25:31 +02:00
yrutschle
0cde3d794a
check return values ( fix #61 )
2021-10-02 21:27:31 +02:00
yrutschle
ed48d3964f
removed obsolete prototye
2021-10-02 21:23:39 +02:00
yrutschle
7b0d486d3d
removed obsolete check to verbose
2021-10-02 21:23:17 +02:00
yrutschle
0e118a109c
Overhaul of the logging system: logs all have classes, and
...
each class can be configured independently to write to
stderr or syslog.
2021-10-02 15:40:32 +02:00
yrutschle
9955cc6560
describe verbose options
2021-10-02 15:38:22 +02:00
yrutschle
caa62875c1
remove --verbose option
2021-09-27 13:28:21 +02:00
yrutschle
c8fce0a02f
make sure no error will go to stderr if in inetd ( fix #303 )
2021-09-27 13:21:16 +02:00
yrutschle
4277d27063
migrate last messages to new log system
2021-09-27 13:16:30 +02:00
yrutschle
16bf1a6aca
make echosrv independant from common macros
2021-09-27 13:01:20 +02:00
yrutschle
4f0f5017bc
remove obsolete prototype
2021-09-27 12:55:57 +02:00
yrutschle
70b31a48d9
migrate generic system call failure checks to new log system
2021-09-27 12:53:41 +02:00
yrutschle
66caf8a31b
remove log_message
2021-09-27 12:51:37 +02:00
yrutschle
4d3cc9c925
migrate some more common.c to new log system
2021-09-27 12:46:51 +02:00
yrutschle
2e11001087
migrate UDP to new log system
2021-09-27 12:43:03 +02:00
yrutschle
6ea7d48f86
migrate tls.c and probe.c to new log system
2021-09-26 16:55:31 +02:00
yrutschle
3fb1201b3f
merged transparent proxy setups together, clarifying what is not known to work
2021-09-26 16:28:06 +02:00
yrutschle
e9e7ada069
convert to hash-based titles
2021-09-26 16:13:23 +02:00
yrutschle
e6cbbe9511
migrate common.c to new logging system
2021-09-26 15:53:21 +02:00
yrutschle
e5f16b93ce
hexdump writes to parametrable msg_info
2021-09-19 21:54:47 +02:00
yrutschle
673c40954e
migrate sslh-fork to new log system
2021-09-19 20:29:43 +02:00
yrutschle
f7b6f669a4
sslh-select to use new log system
2021-09-19 20:24:46 +02:00
yrutschle
dbad46a358
remove obsolete debug code
2021-09-19 15:19:37 +02:00
yrutschle
098a55fd1d
new logging system: now with message classes
2021-09-19 15:14:38 +02:00
yrutschle
5e27806545
new logging system: now with message classes
2021-09-19 15:13:04 +02:00
yrutschle
317c08604b
move logging code to its own file
2021-09-15 21:51:11 +02:00
yrutschle
3013658b20
test to drop connection before writing anything ( fix #285 )
v1.22c
2021-08-28 16:33:20 +02:00
yrutschle
a704c7f7f5
fix #302
2021-08-28 16:03:58 +02:00
yrutschle
1a3341c2a4
be more defensive when allocating and extending gap
v1.22b
2021-08-24 20:07:28 +02:00
yrutschle
4a6bbda60d
remove obsolete usage string and added lost version option
2021-08-24 14:10:14 +02:00
yrutschle
fa848f2ae9
do not timeout TCP connections ( fix #300 )
2021-08-24 13:38:18 +02:00
Yves Rutschle
6aa19d080a
updated version numbers for release
v1.22
2021-08-17 21:55:18 +02:00
yrutschle
a43385b8db
remove hardcoded quick50 and teamspeak. to be replaced with a generalised regex setup to come in next version
2021-08-13 18:03:59 +02:00
yrutschle
1261a5f4c7
updated some references to obsolete ssl option
2021-08-06 22:43:38 +02:00
yrutschle
40da147efd
keep track of next UDP timeout to only go through all connections when that happens
2021-08-06 22:29:00 +02:00
yrutschle
e4936454c5
refactor: take time only once when computing UPD timeouts
2021-08-05 17:05:08 +02:00
yrutschle
63f9c4a582
added syslog probe ( fixes #34 )
2021-08-04 15:29:05 +02:00
yrutschle
0e45107797
advertise new UDP protocols
2021-08-01 22:02:42 +02:00