Diff for /libwww/Library/src/HTAABrow.c between versions 2.21 and 2.22

version 2.21, 1995/07/13 22:40:47 version 2.22, 1995/08/24 17:08:42
Line 617  PUBLIC BOOL HTAA_composeAuth ARGS1(HTReq Line 617  PUBLIC BOOL HTAA_composeAuth ARGS1(HTReq
             sprintf(msg, "%s %s `%s'",              sprintf(msg, "%s %s `%s'",
                     "This client doesn't know how to compose authentication",                      "This client doesn't know how to compose authentication",
                     "information for scheme", HTAAScheme_name(req->scheme));                      "information for scheme", HTAAScheme_name(req->scheme));
             HTAlert(msg);              HTAlert(req, msg);
             auth_string = NULL;              auth_string = NULL;
         }          }
     } /* switch scheme */      } /* switch scheme */
Line 668  PUBLIC BOOL HTAA_composeAuth ARGS1(HTReq Line 668  PUBLIC BOOL HTAA_composeAuth ARGS1(HTReq
 PUBLIC BOOL HTPasswordDialog ARGS1(HTRequest *, req)  PUBLIC BOOL HTPasswordDialog ARGS1(HTRequest *, req)
 {  {
     if (!req || !req->setup || !req->realm || !req->dialog_msg) {      if (!req || !req->setup || !req->realm || !req->dialog_msg) {
         HTAlert("HTPasswordDialog() called with an illegal parameter");          if (PROT_TRACE)
               fprintf(TDEST, "Access...... called with an illegal parameter");
         return NO;          return NO;
     }      }
     if (req->setup->reprompt &&      if (req->setup->reprompt &&
         HTConfirm("Authorization failed. Retry?") != YES) {          HTConfirm(req, "Authorization failed. Retry?") != YES) {
         return NO;          return NO;
     } else {      } else {
         char *username = req->realm->username;          char *username = req->realm->username;
         char *password = NULL;          char *password = NULL;
   
         HTPromptUsernameAndPassword(req->dialog_msg, &username, &password);          HTPromptUsernameAndPassword(req,req->dialog_msg, &username, &password);
   
         if (req->realm->username) free(req->realm->username);          if (req->realm->username) free(req->realm->username);
         if (req->realm->password) free(req->realm->password);          if (req->realm->password) free(req->realm->password);
Line 777  PUBLIC BOOL HTAA_retryWithAuth ARGS1(HTR Line 778  PUBLIC BOOL HTAA_retryWithAuth ARGS1(HTR
             server = HTAAServer_new(hostname, portnumber);              server = HTAAServer_new(hostname, portnumber);
         }          }
         else {          else {
             HTAlert("Access without authorization denied -- retrying");              HTAlert(req, "Access without authorization denied -- retrying");
         }          }
   
         if (!req->prot_template)          if (!req->prot_template)

Removed from v.2.21  
changed lines
  Added in v.2.22


Webmaster