ben 98/08/09 05:34:18
Modified: src/modules/standard mod_digest.c
Log:
Improve logging.
Revision Changes Path
1.38 +4 -3 apache-1.3/src/modules/standard/mod_digest.c
Index: mod_digest.c
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/modules/standard/mod_digest.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- mod_digest.c 1998/08/06 17:30:57 1.37
+++ mod_digest.c 1998/08/09 12:34:17 1.38
@@ -143,6 +143,7 @@
int s, vk = 0, vv = 0;
const char *t;
char *key, *value;
+ const char *scheme;
if (!(t = ap_auth_type(r)) || strcasecmp(t, "Digest"))
return DECLINED;
@@ -158,10 +159,10 @@
return AUTH_REQUIRED;
}
- if (strcasecmp(ap_getword(r->pool, &auth_line, ' '), "Digest")) {
+ if (strcasecmp(scheme=ap_getword(r->pool, &auth_line, ' '), "Digest")) {
/* Client tried to authenticate using wrong auth scheme */
- ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, r,
- "client used wrong authentication scheme: %s", r->uri);
+ ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, r->server,
+ "client used wrong authentication scheme: %s for %s",
scheme, r->uri);
ap_note_digest_auth_failure(r);
return AUTH_REQUIRED;
}