version 1.21, 2006/03/19 18:51:18 |
version 1.22, 2006/03/25 00:05:41 |
|
|
*name = xstrdup(""); |
*name = xstrdup(""); |
*infotxt = xstrdup(""); |
*infotxt = xstrdup(""); |
*numprompts = 1; |
*numprompts = 1; |
*prompts = xmalloc(*numprompts * sizeof(char *)); |
*prompts = xcalloc(*numprompts, sizeof(char *)); |
*echo_on = xmalloc(*numprompts * sizeof(u_int)); |
*echo_on = xcalloc(*numprompts, sizeof(u_int)); |
(*echo_on)[0] = 0; |
|
|
|
len = strlen(challenge) + strlen(SKEY_PROMPT) + 1; |
xasprintf(*prompts, "%s%s", challenge, SKEY_PROMPT); |
p = xmalloc(len); |
|
strlcpy(p, challenge, len); |
|
strlcat(p, SKEY_PROMPT, len); |
|
(*prompts)[0] = p; |
|
|
|
return 0; |
return 0; |
} |
} |