summaryrefslogtreecommitdiff
path: root/tests/fcgi-auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fcgi-auth.c')
-rw-r--r--tests/fcgi-auth.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/fcgi-auth.c b/tests/fcgi-auth.c
deleted file mode 100644
index 92cd3731..00000000
--- a/tests/fcgi-auth.c
+++ /dev/null
@@ -1,31 +0,0 @@
-#include "config.h"
-#ifdef HAVE_FASTCGI_FASTCGI_H
-#include <fastcgi/fcgi_stdio.h>
-#else
-#include <fcgi_stdio.h>
-#endif
-#include <stdlib.h>
-#include <unistd.h>
-#include <string.h>
-
-int main () {
- char* p;
-
- while (FCGI_Accept() >= 0) {
- /* wait for fastcgi authorizer request */
-
- printf("Content-type: text/html\r\n");
-
- if (((p = getenv("QUERY_STRING")) == NULL) ||
- strcmp(p, "ok") != 0) {
- printf("Status: 403 Forbidden\r\n\r\n");
- } else {
- printf("\r\n");
- /* default Status is 200 - allow access */
- }
-
- printf("foobar\r\n");
- }
-
- return 0;
-}