version 1.17, 2002/03/18 17:50:31 |
version 1.17.2.3, 2002/06/26 15:30:37 |
|
|
return authctxt; |
return authctxt; |
} |
} |
|
|
static int |
int |
skey_query(void *ctx, char **name, char **infotxt, |
skey_query(void *ctx, char **name, char **infotxt, |
u_int* numprompts, char ***prompts, u_int **echo_on) |
u_int* numprompts, char ***prompts, u_int **echo_on) |
{ |
{ |
|
|
if (skeychallenge(&skey, authctxt->user, challenge) == -1) |
if (skeychallenge(&skey, authctxt->user, challenge) == -1) |
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)); |
|
|
return 0; |
return 0; |
} |
} |
|
|
static int |
int |
skey_respond(void *ctx, u_int numresponses, char **responses) |
skey_respond(void *ctx, u_int numresponses, char **responses) |
{ |
{ |
Authctxt *authctxt = ctx; |
Authctxt *authctxt = ctx; |