mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-13 04:50:41 +01:00
- Extracted basic OpenSSL helper functions into own module net_ossl.h/net_ossl.c Both are compiled into lmnsd_ossl. - Cleanup of OpenSSL code, fixed minor compiler and linking issues. - Added DTLS Sender option DTLS into tcpflood for testbench. - Add initial implementation of imdtls input module. Added to configure and makefile - Add initial implementation of omdtls output module. Added to configure and makefile - Add multiple basic tests for imdtls receiving data by using tcpflood. - Add multiple send-receive test for imdtls and omdtls based on existing tls tests. - Add timeout and sessionbreak tests for imdtls stress testing. closes: https://github.com/rsyslog/rsyslog/issues/5211
29 lines
844 B
Bash
Executable File
29 lines
844 B
Bash
Executable File
#!/bin/bash
|
|
# added 2018-11-07 by Rainer Gerhards
|
|
# This file is part of the rsyslog project, released under ASL 2.0
|
|
. ${srcdir:=.}/diag.sh init
|
|
generate_conf
|
|
export PORT_RCVR="$(get_free_port)"
|
|
|
|
add_conf '
|
|
global( defaultNetstreamDriverCAFile="'$srcdir/tls-certs/ca.pem'"
|
|
defaultNetstreamDriverCertFile="'$srcdir/tls-certs/cert-fail.pem'"
|
|
defaultNetstreamDriverKeyFile="'$srcdir/tls-certs/cert.pem'"
|
|
)
|
|
|
|
module( load="../plugins/imdtls/.libs/imdtls" )
|
|
input( type="imdtls"
|
|
port="'$PORT_RCVR'")
|
|
|
|
action(type="omfile" file="'$RSYSLOG_OUT_LOG'")
|
|
'
|
|
# note: we do not need to generate any messages, config error occurs on startup
|
|
startup
|
|
|
|
sleep 5 # TODO: FIXME - just checking if we terminate too early
|
|
shutdown_when_empty
|
|
wait_shutdown
|
|
content_check "Error: Certificate file could not be accessed"
|
|
content_check "OpenSSL Error Stack:"
|
|
exit_test
|