-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix TLS-based destinations in case of a missing client key/cert #1917
Conversation
Build FAILURE, the tests were executed on test branch: master and test suite: functions |
4d15bec
to
a69eec6
Compare
key_file and cert_file are optional (the client cert is not mandatory). Signed-off-by: László Várady <laszlo.varady@balabit.com>
Build SUCCESS, the tests were executed on test branch: master and test suite: functions |
Build SUCCESS, the tests were executed on test branch: master and test suite: functions |
1 similar comment
Build SUCCESS, the tests were executed on test branch: master and test suite: functions |
file_exists() has a side effect: it logs when the file can't be opened. Since the && operator is evaluated lazily, the error messages of cert_file were not displayed when the first invocation of file_exists failed (on key_file). Signed-off-by: László Várady <laszlo.varady@balabit.com>
Signed-off-by: László Várady <laszlo.varady@balabit.com>
Build SUCCESS, the tests were executed on test branch: master and test suite: functions |
1 similar comment
Build SUCCESS, the tests were executed on test branch: master and test suite: functions |
@furiel I don't think it's possible. That optimization would be far from an equivalent transformation. But yes, we should refactor this function, its side effect is really misleading. |
…we are just a TLS client, to workaround syslog-ng/syslog-ng#1917
key_file and cert_file are optional (the client cert is not mandatory).
Fixes #1916