search for: opie_query

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

2001 Nov 04
2
OPIE patch for current CVS
...nclude "includes.h" +RCSID("$Id"); + +#ifdef OPIE + +#include <opie.h> + +#include "xmalloc.h" +#include "auth.h" + +static void * +opie_init_ctx(Authctxt *authctxt) +{ + return authctxt; +} + +#define PROMPT "\nOPIE Password: " + +static int +opie_query(void *ctx, char **name, char **infotxt, + u_int* numprompts, char ***prompts, u_int **echo_on) +{ + Authctxt *authctxt = ctx; + char challenge[OPIE_CHALLENGE_MAX+64], *p; + int len; + struct opie opie; + + if (opiechallenge(&opie, authctxt->user, challenge) != 0) + return -1; + + opieve...