[tests] OpenBSD crypt() support limited to bcrypt

OpenBSD crypt() does not support (insecure) crypt-des or crypt-md5

(The password used in the tests and lighttpd.htpasswd is crypt-des.
 Something else could be used so that the tests can execute,
 though that something might be different on different platforms.)
master
Glenn Strauss 2 years ago
parent e16b4503e2
commit 0c6a6d06c6

@ -75,6 +75,9 @@ EOF
$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 , 'HTTP-Content' => '' } ];
ok($tf->handle_http($t) == 0, 'FastCGI + bin-copy-environment');
SKIP: {
skip "no crypt-des under openbsd", 2 if $^O eq 'openbsd';
$t->{REQUEST} = ( <<EOF
GET /get-server-env.php?env=REMOTE_USER HTTP/1.0
Host: auth.example.org
@ -92,6 +95,7 @@ EOF
);
$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'Basic' } ];
ok($tf->handle_http($t) == 0, '$_SERVER["AUTH_TYPE"]');
}
$t->{REQUEST} = ( <<EOF
GET /index.html?auth-ok HTTP/1.0

Loading…
Cancel
Save