version 1.1.6.1, 2002/03/07 17:37:45 |
version 1.1.6.2, 2002/05/17 00:03:23 |
|
|
#include "xmalloc.h" |
#include "xmalloc.h" |
#include "auth.h" |
#include "auth.h" |
#include "log.h" |
#include "log.h" |
|
#include "monitor_wrap.h" |
|
|
static void * |
static void * |
bsdauth_init_ctx(Authctxt *authctxt) |
bsdauth_init_ctx(Authctxt *authctxt) |
|
|
return authctxt; |
return authctxt; |
} |
} |
|
|
static int |
int |
bsdauth_query(void *ctx, char **name, char **infotxt, |
bsdauth_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) |
{ |
{ |
|
|
return 0; |
return 0; |
} |
} |
|
|
static int |
int |
bsdauth_respond(void *ctx, u_int numresponses, char **responses) |
bsdauth_respond(void *ctx, u_int numresponses, char **responses) |
{ |
{ |
Authctxt *authctxt = ctx; |
Authctxt *authctxt = ctx; |
|
|
bsdauth_init_ctx, |
bsdauth_init_ctx, |
bsdauth_query, |
bsdauth_query, |
bsdauth_respond, |
bsdauth_respond, |
|
bsdauth_free_ctx |
|
}; |
|
|
|
KbdintDevice mm_bsdauth_device = { |
|
"bsdauth", |
|
bsdauth_init_ctx, |
|
mm_bsdauth_query, |
|
mm_bsdauth_respond, |
bsdauth_free_ctx |
bsdauth_free_ctx |
}; |
}; |
#endif |
#endif |