summaryrefslogtreecommitdiff
path: root/main/main.c
diff options
context:
space:
mode:
authorRui Hirokawa <hirokawa@php.net>2005-04-04 15:06:36 +0000
committerRui Hirokawa <hirokawa@php.net>2005-04-04 15:06:36 +0000
commit8235a70ef964c5c8d1fe7632a750b9e5c580c716 (patch)
treeda2b59d8efeafa417f0a23c5be6a0c3570729f9c /main/main.c
parent4558cdade685dc38681bd09db821d9c5fad8d716 (diff)
downloadphp-git-8235a70ef964c5c8d1fe7632a750b9e5c580c716.tar.gz
added a server variable PHP_AUTH_DIGEST to support HTTP Digest Authentication.
Diffstat (limited to 'main/main.c')
-rw-r--r--main/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/main.c b/main/main.c
index e310abd7c4..e0ed5c3756 100644
--- a/main/main.c
+++ b/main/main.c
@@ -1736,6 +1736,11 @@ PHPAPI int php_handle_auth_data(const char *auth TSRMLS_DC)
SG(request_info).auth_user = SG(request_info).auth_password = NULL;
}
+ if (auth && auth[0] != '\0' && strncmp(auth, "Digest ", 7) == 0) {
+ SG(request_info).auth_digest = estrdup(auth);
+ ret = 0;
+ }
+
return ret;
}
/* }}} */