summaryrefslogtreecommitdiff
path: root/regress/usr.sbin
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2024-07-01 12:06:46 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2024-07-01 12:06:46 +0000
commited40669e26c5a05d1afa2e38ed43fd68f5cf7af3 (patch)
tree81eb2739e1ec9556a3f913e342f62b42b1b141cb /regress/usr.sbin
parentf369fcda61009f788650ed3aaaf06e2be46eb516 (diff)
Explicit TLS handshake with syslog client.
Add a new TLS handshake callback for incoming connections. This will allow to inspect the client certificate later. For now only print a debug message and check it in regress. with and OK henning@
Diffstat (limited to 'regress/usr.sbin')
-rw-r--r--regress/usr.sbin/syslogd/args-client-tls.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/regress/usr.sbin/syslogd/args-client-tls.pl b/regress/usr.sbin/syslogd/args-client-tls.pl
index 2fa726d9ae1..8a385f23bcd 100644
--- a/regress/usr.sbin/syslogd/args-client-tls.pl
+++ b/regress/usr.sbin/syslogd/args-client-tls.pl
@@ -32,7 +32,9 @@ our %args = (
loggrep => {
qr{Keyfile /etc/ssl/private/localhost.key} => 1,
qr{Certfile /etc/ssl/localhost.crt} => 1,
+ qr/Accepting tcp connection/ => 1,
qr/syslogd\[\d+\]: tls logger .* accepted/ => 1,
+ qr/Completed tls handshake/ => 1,
qr/syslogd\[\d+\]: tls logger .* connection close/ => 1,
},
},