version 1.3, 2002/03/18 17:50:31 |
version 1.3.2.2, 2002/10/11 14:51:51 |
|
|
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"); |
|
|
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); |