summaryrefslogtreecommitdiff
path: root/tests/mod-fastcgi.t
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2020-12-26 03:47:02 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2020-12-26 03:47:41 -0500
commit0c6a6d06c6d2fe71ed5bdfc6d61ea87a13fcf819 (patch)
tree473b5e3172255868456ebae9b4404fd944a3046b /tests/mod-fastcgi.t
parente16b4503e2df94bdcac356d2738668611a586364 (diff)
downloadlighttpd-git-0c6a6d06c6d2fe71ed5bdfc6d61ea87a13fcf819.tar.gz
[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.)
Diffstat (limited to 'tests/mod-fastcgi.t')
-rwxr-xr-xtests/mod-fastcgi.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/mod-fastcgi.t b/tests/mod-fastcgi.t
index 0e7ae4a8..8bf846be 100755
--- a/tests/mod-fastcgi.t
+++ b/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