Browse Source

[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 6 months ago
parent
commit
0c6a6d06c6
  1. 4
      tests/mod-fastcgi.t

4
tests/mod-fastcgi.t

@ -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