version 1.6, 2001/06/03 20:06:11 |
version 1.7, 2001/06/23 15:12:17 |
|
|
#include "auth.h" |
#include "auth.h" |
#include "log.h" |
#include "log.h" |
|
|
static int auth2_challenge_start(Authctxt *authctxt); |
static int auth2_challenge_start(Authctxt *); |
static int send_userauth_info_request(Authctxt *authctxt); |
static int send_userauth_info_request(Authctxt *); |
static void input_userauth_info_response(int type, int plen, void *ctxt); |
static void input_userauth_info_response(int, int, void *); |
|
|
#ifdef BSD_AUTH |
#ifdef BSD_AUTH |
extern KbdintDevice bsdauth_device; |
extern KbdintDevice bsdauth_device; |
|
|
KbdintDevice *device; |
KbdintDevice *device; |
}; |
}; |
|
|
KbdintAuthctxt * |
static KbdintAuthctxt * |
kbdint_alloc(const char *devs) |
kbdint_alloc(const char *devs) |
{ |
{ |
KbdintAuthctxt *kbdintctxt; |
KbdintAuthctxt *kbdintctxt; |
|
|
|
|
return kbdintctxt; |
return kbdintctxt; |
} |
} |
void |
static void |
kbdint_reset_device(KbdintAuthctxt *kbdintctxt) |
kbdint_reset_device(KbdintAuthctxt *kbdintctxt) |
{ |
{ |
if (kbdintctxt->ctxt) { |
if (kbdintctxt->ctxt) { |
|
|
} |
} |
kbdintctxt->device = NULL; |
kbdintctxt->device = NULL; |
} |
} |
void |
static void |
kbdint_free(KbdintAuthctxt *kbdintctxt) |
kbdint_free(KbdintAuthctxt *kbdintctxt) |
{ |
{ |
if (kbdintctxt->device) |
if (kbdintctxt->device) |
|
|
xfree(kbdintctxt); |
xfree(kbdintctxt); |
} |
} |
/* get next device */ |
/* get next device */ |
int |
static int |
kbdint_next_device(KbdintAuthctxt *kbdintctxt) |
kbdint_next_device(KbdintAuthctxt *kbdintctxt) |
{ |
{ |
size_t len; |
size_t len; |