[BACK]Return to auth-bsdauth.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/auth-bsdauth.c between version 1.3 and 1.3.2.2

version 1.3, 2002/03/18 17:50:31 version 1.3.2.2, 2002/10/11 14:51:51
Line 57 
Line 57 
                 debug3("bsdauth_query: style %s",                  debug3("bsdauth_query: style %s",
                     authctxt->style ? authctxt->style : "<default>");                      authctxt->style ? authctxt->style : "<default>");
                 authctxt->as = auth_userchallenge(authctxt->user,                  authctxt->as = auth_userchallenge(authctxt->user,
                      authctxt->style, "auth-ssh", &challenge);                      authctxt->style, "auth-ssh", &challenge);
                 if (authctxt->as == NULL)                  if (authctxt->as == NULL)
                         challenge = NULL;                          challenge = NULL;
                 debug2("bsdauth_query: <%s>", challenge ? challenge : "empty");                  debug2("bsdauth_query: <%s>", challenge ? challenge : "empty");
Line 66 
Line 66 
         if (challenge == NULL)          if (challenge == NULL)
                 return -1;                  return -1;
   
         *name       = xstrdup("");          *name = xstrdup("");
         *infotxt    = xstrdup("");          *infotxt = xstrdup("");
         *numprompts = 1;          *numprompts = 1;
         *prompts = xmalloc(*numprompts * sizeof(char*));          *prompts = xmalloc(*numprompts * sizeof(char *));
         *echo_on = xmalloc(*numprompts * sizeof(u_int));          *echo_on = xmalloc(*numprompts * sizeof(u_int));
         (*echo_on)[0] = 0;          (*echo_on)[0] = 0;
         (*prompts)[0] = xstrdup(challenge);          (*prompts)[0] = xstrdup(challenge);

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.3.2.2