11 Commits

Author SHA1 Message Date
6c3795ea75 openssl: evp support and custom openssl engine support
- output all loaded ciphers and engines.
- Add new global option "defaultopensslengine" to customize the
  default openssl engine. If not defined, openssl will handle the
  default engine automatically.
- Add simple openssl performance test with defaultopensslengine
  set to rdrand (Intel).
- removed unneeded testcase files in runtime folder.
- corrected whitelist settings for debug.files in TLS testcases
2024-05-02 12:07:14 +02:00
9428a9f666 testbench: adapt contentcheck for tlscommands tests
Under io / cpu stress, the OpenSSL tls error can be SSL_ERROR_SYSCALL
instead of SSL_ERROR_SSL. The outcome it the same from the
test perspective.

closes: https://github.com/rsyslog/rsyslog/issues/4784
2022-01-26 17:04:59 +01:00
edc1b186c1 openssl: Correct gnutlsPriorityString (custom ciphers) behaviour
- Only apply default anon ciphers if gnutlsPriorityString is NULL and
  Authentication Mode is set to anon. Otherwise we do not set them
  as they overwrite custom Ciphers.
- Added two tests for custom cipher configuration (anon/certvalid mode).
- Add call for applyGnutlsPriorityString if gnutlsPriorityString changes.
- Merged openssl init code from Connect into osslInitSession

closes: https://github.com/rsyslog/rsyslog/issues/4686
2021-09-21 11:21:14 +02:00
Rainer Gerhards
13f5dfe2e2
imtcp: permit to use different certificate files per input/action 2021-08-04 10:23:24 +02:00
901eb09860 openssl: add check for LIBRESSL
Disable use of "@SECLEVEL" in default cipher string and
avoid SSL_CONF_CTX_set_flags() API when LIBRESSL is used.
This means tlscommands will not work.

closes: https://github.com/rsyslog/rsyslog/issues/4210
2020-03-11 08:17:01 +01:00
Rainer Gerhards
dffb2bb8f7
testbench: modernize tests
also make them more robust against slow testbench machines
2020-01-08 10:22:29 +01:00
73934b06c5 ossl driver: fix wrong OpenSSL Version check
(OPENSSL_VERSION_NUMBER)

Fix OpenSSL Version check in:
- SetGnutlsPriorityString function in nsd_ossl.c
- initTLS() function tcpflood.c

See https://www.openssl.org/docs/man1.1.0/man3/OPENSSL_VERSION_NUMBER.html
for more.

Removed "MinProtocol=TLSv1.1" from two testcases because MinProtocol
is only supported by OpenSSl 1.1.0 or higher and was not really
necessary for the testcases.

closes https://github.com/rsyslog/rsyslog/issues/3939
2019-11-05 15:02:22 +01:00
aa17c24570 openssl: added link to doc for gnutlsPriorityString error msg
When openssl version is too old, a documention link will be added
to the error message now.

Also changed openssl too old check in testsuite
2019-10-08 15:36:28 +02:00
de6151b292 testsuite: Fixed wrong parameter check in diag.sh (tcpflood())
When first parameter is check_only, the tcpflood funtion shall not
abort the test itself (The fail is intended if this option is set).

closes issue #3625
2019-05-10 09:28:41 +02:00
Rainer Gerhards
37187427bf
dnscache: fix looking issue detected by Coverity Scan
This leads to a refactoring of the looking code; issue was caused
by new TTL cache expiration code which placed not semantics on the
cache. These were not properly handled under all circumstances.
2019-04-16 15:41:32 +02:00
598eec659e tcpflood: Added support setting OpenSSL command parameters.
Also added a test based on imtcp-tls-ossl-basic.sh which tests
the new -k parameter with tcpflood called:
imtcp-tls-ossl-basic-tlscommands.sh

Fixed OpenSSL error reporting in tcpflood which was running into
a loop when OpenSSL error stack was printed out.
2019-04-12 12:45:20 +02:00