|
Lines 32-37
RCSID("$OpenBSD: auth2-chall.c,v 1.21 20
Link Here
|
| 32 |
#include "xmalloc.h" |
32 |
#include "xmalloc.h" |
| 33 |
#include "dispatch.h" |
33 |
#include "dispatch.h" |
| 34 |
#include "log.h" |
34 |
#include "log.h" |
|
|
35 |
#include "servconf.h" |
| 36 |
|
| 37 |
/* import */ |
| 38 |
extern ServerOptions options; |
| 35 |
|
39 |
|
| 36 |
static int auth2_challenge_start(Authctxt *); |
40 |
static int auth2_challenge_start(Authctxt *); |
| 37 |
static int send_userauth_info_request(Authctxt *); |
41 |
static int send_userauth_info_request(Authctxt *); |
|
Lines 71-82
struct KbdintAuthctxt
Link Here
|
| 71 |
u_int nreq; |
75 |
u_int nreq; |
| 72 |
}; |
76 |
}; |
| 73 |
|
77 |
|
|
|
78 |
#ifdef USE_PAM |
| 79 |
void |
| 80 |
remove_kbdint_device(const char *devname) |
| 81 |
{ |
| 82 |
int i; |
| 83 |
|
| 84 |
for (i = 0; devices[i] != NULL; i++) |
| 85 |
if (strcmp(devices[i]->name, devname) == 0) { |
| 86 |
devices[i] = devices[i+1]; |
| 87 |
i--; |
| 88 |
} |
| 89 |
} |
| 90 |
#endif |
| 91 |
|
| 74 |
static KbdintAuthctxt * |
92 |
static KbdintAuthctxt * |
| 75 |
kbdint_alloc(const char *devs) |
93 |
kbdint_alloc(const char *devs) |
| 76 |
{ |
94 |
{ |
| 77 |
KbdintAuthctxt *kbdintctxt; |
95 |
KbdintAuthctxt *kbdintctxt; |
| 78 |
Buffer b; |
96 |
Buffer b; |
| 79 |
int i; |
97 |
int i; |
|
|
98 |
|
| 99 |
#ifdef USE_PAM |
| 100 |
if (!options.use_pam) |
| 101 |
remove_kbdint_device("pam"); |
| 102 |
#endif |
| 80 |
|
103 |
|
| 81 |
kbdintctxt = xmalloc(sizeof(KbdintAuthctxt)); |
104 |
kbdintctxt = xmalloc(sizeof(KbdintAuthctxt)); |
| 82 |
if (strcmp(devs, "") == 0) { |
105 |
if (strcmp(devs, "") == 0) { |