diff options
| author | Rui Hirokawa <hirokawa@php.net> | 2005-04-04 15:06:36 +0000 |
|---|---|---|
| committer | Rui Hirokawa <hirokawa@php.net> | 2005-04-04 15:06:36 +0000 |
| commit | 8235a70ef964c5c8d1fe7632a750b9e5c580c716 (patch) | |
| tree | da2b59d8efeafa417f0a23c5be6a0c3570729f9c /main/main.c | |
| parent | 4558cdade685dc38681bd09db821d9c5fad8d716 (diff) | |
| download | php-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.c | 5 |
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; } /* }}} */ |
