From 2a94396ccd9cf5ade728c53e02cba28e06af4378 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Thu, 23 Apr 1998 12:35:00 -0400 Subject: snapshot of project "lynx", label v2-8-1dev_7 --- WWW/Library/Implementation/HTAuth.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'WWW/Library/Implementation/HTAuth.c') diff --git a/WWW/Library/Implementation/HTAuth.c b/WWW/Library/Implementation/HTAuth.c index b8b4d010..573a24b7 100644 --- a/WWW/Library/Implementation/HTAuth.c +++ b/WWW/Library/Implementation/HTAuth.c @@ -99,8 +99,7 @@ PRIVATE HTAAUser *decompose_auth_string ARGS2(char *, authstring, */ username = cleartext; if (!(password = strchr(cleartext, ':'))) { - if (TRACE) - fprintf(stderr, "%s %s\n", + CTRACE(tfp, "%s %s\n", "decompose_auth_string: password field", "missing in authentication string.\n"); return NULL; @@ -116,9 +115,9 @@ PRIVATE HTAAUser *decompose_auth_string ARGS2(char *, authstring, (*(timestamp++) ='\0'), !(browsers_key=strchr(timestamp,':')) || (*(browsers_key++)='\0')) { - if (TRACE) fprintf(stderr, "%s %s\n", - "decompose_auth_string: Pubkey scheme", - "fields missing in authentication string"); + CTRACE(tfp, "%s %s\n", + "decompose_auth_string: Pubkey scheme", + "fields missing in authentication string"); return NULL; } } @@ -132,13 +131,12 @@ PRIVATE HTAAUser *decompose_auth_string ARGS2(char *, authstring, user->timestamp = timestamp; user->secret_key = browsers_key; - if (TRACE) { - if (scheme==HTAA_BASIC) - fprintf(stderr, "decompose_auth_string: %s (%s,%s)\n", + if (scheme == HTAA_BASIC) { + CTRACE(tfp, "decompose_auth_string: %s (%s,%s)\n", "Basic scheme authentication string:", username, password); - else - fprintf(stderr, "decompose_auth_string: %s (%s,%s,%s,%s,%s)\n", + } else { + CTRACE(tfp, "decompose_auth_string: %s (%s,%s,%s,%s,%s)\n", "Pubkey scheme authentication string:", username, password, i_net_adr, timestamp, browsers_key); } -- cgit 1.4.1-2-gfad0