search for: opie_respond

Displaying 1 result from an estimated 1 matches for "opie_respond".

2001 Nov 04
2
OPIE patch for current CVS
...rompts * sizeof(char*)); + *echo_on = xmalloc(*numprompts * sizeof(u_int)); + (*echo_on)[0] = 0; + + len = strlen(challenge) + strlen(PROMPT) + 1; + p = xmalloc(len); + p[0] = '\0'; + strlcat(p, challenge, len); + strlcat(p, PROMPT, len); + (*prompts)[0] = p; + + return 0; +} + +static int +opie_respond(void *ctx, u_int numresponses, char **responses) +{ + struct opie opie; + char challenge[OPIE_CHALLENGE_MAX]; + Authctxt *authctxt = ctx; + + if (opiechallenge(&opie, authctxt->user, challenge) != 0) + return -1; + + if (authctxt->valid && + numresponses == 1 && +...