syslogd(8) uses new libtls certificate and key file loading. So
authorbluhm <bluhm@openbsd.org>
Wed, 17 Aug 2016 12:22:27 +0000 (12:22 +0000)
committerbluhm <bluhm@openbsd.org>
Wed, 17 Aug 2016 12:22:27 +0000 (12:22 +0000)
the tests behave a little bit different now.

regress/usr.sbin/syslogd/args-client-tls4.pl
regress/usr.sbin/syslogd/args-client-tls6.pl
regress/usr.sbin/syslogd/args-tls-cafile-empty.pl
regress/usr.sbin/syslogd/args-tls-cafile-noexist.pl
regress/usr.sbin/syslogd/args-tls-cafile-toobig.pl

index 84b104e..3ff39dd 100644 (file)
@@ -29,7 +29,7 @@ our %args = (
        ktrace => {
            qr{NAMI  "/etc/ssl/private/127.0.0.1:6514.key"} => 1,
            qr{NAMI  "/etc/ssl/private/127.0.0.1.key"} => 1,
-           qr{NAMI  "/etc/ssl/127.0.0.1:6514.crt"} => 1,
+           qr{NAMI  "/etc/ssl/127.0.0.1:6514.crt"} => 0,
            qr{NAMI  "/etc/ssl/127.0.0.1.crt"} => 1,
        },
        loggrep => {
index aa51ca0..4296f62 100644 (file)
@@ -29,7 +29,7 @@ our %args = (
        ktrace => {
            qr{NAMI  "/etc/ssl/private/\[::1\]:6514.key"} => 1,
            qr{NAMI  "/etc/ssl/private/::1.key"} => 1,
-           qr{NAMI  "/etc/ssl/\[::1\]:6514.crt"} => 1,
+           qr{NAMI  "/etc/ssl/\[::1\]:6514.crt"} => 0,
            qr{NAMI  "/etc/ssl/::1.crt"} => 1,
        },
        loggrep => {
index d476b68..2f0e758 100644 (file)
@@ -13,7 +13,7 @@ our %args = (
     syslogd => {
        loghost => '@tls://localhost:$connectport',
        loggrep => {
-           qr/CAfile empty, size 0/ => 1,
+           qr/CAfile empty/ => 1,
            qr/Logging to FORWTLS \@tls:\/\/localhost:\d+/ => '>=4',
            qr/syslogd: tls_connect_socket .*: /.
                qr/ssl verify memory setup failure/ => 2,
index 47599da..25374a7 100644 (file)
@@ -13,7 +13,7 @@ our %args = (
     syslogd => {
        loghost => '@tls://localhost:$connectport',
        loggrep => {
-           qr/open CAfile: No such file or directory/ => 2,
+           qr/syslogd: load client TLS CA failed/ => 2,
            qr/Logging to FORWTLS \@tls:\/\/localhost:\d+/ => '>=4',
            qr/syslogd: tls_connect_socket .*: /.
                qr/ssl verify memory setup failure/ => 2,
index 51bde1a..6d5e364 100644 (file)
@@ -13,7 +13,7 @@ our %args = (
     syslogd => {
        loghost => '@tls://localhost:$connectport',
        loggrep => {
-           qr/CAfile larger than 50MB/ => 2,
+           qr/CAfile toobig/ => 1,
            qr/Logging to FORWTLS \@tls:\/\/localhost:\d+/ => '>=4',
            qr/syslogd: tls_connect_socket .*: /.
                qr/ssl verify memory setup failure/ => 2,