| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | # add 2019-02-26 by Rainer Gerhards, released under ASL 2.0 |
| 3 | . ${srcdir:=.}/diag.sh init |
| 4 | generate_conf |
| 5 | add_conf ' |
| 6 | module( load="../plugins/imtcp/.libs/imtcp" |
| 7 | StreamDriver.Name="ossl" |
| 8 | streamdriver.TlsVerifyDepth="1" ) |
| 9 | |
| 10 | # input is not really needed, just given for completeness |
| 11 | input(type="imtcp" port="0" listenPortFileName="'$RSYSLOG_DYNNAME'.tcpflood_port") |
| 12 | action(type="omfile" file="'$RSYSLOG_OUT_LOG'") |
| 13 | ' |
| 14 | |
| 15 | startup |
| 16 | shutdown_when_empty |
| 17 | wait_shutdown |
| 18 | content_check "streamdriver.TlsVerifyDepth must be 2 or higher" |
| 19 | |
| 20 | exit_test |