version 1.22, 2000/12/03 11:15:02 |
version 1.23, 2000/12/19 23:17:55 |
|
|
|
|
/* import */ |
/* import */ |
extern ServerOptions options; |
extern ServerOptions options; |
extern unsigned char *session_id2; |
extern u_char *session_id2; |
extern int session_id2_len; |
extern int session_id2_len; |
|
|
static Authctxt *x_authctxt = NULL; |
static Authctxt *x_authctxt = NULL; |
|
|
input_service_request(int type, int plen, void *ctxt) |
input_service_request(int type, int plen, void *ctxt) |
{ |
{ |
Authctxt *authctxt = ctxt; |
Authctxt *authctxt = ctxt; |
unsigned int len; |
u_int len; |
int accept = 0; |
int accept = 0; |
char *service = packet_get_string(&len); |
char *service = packet_get_string(&len); |
packet_done(); |
packet_done(); |
|
|
char *password; |
char *password; |
int authenticated = 0; |
int authenticated = 0; |
int change; |
int change; |
unsigned int len; |
u_int len; |
change = packet_get_char(); |
change = packet_get_char(); |
if (change) |
if (change) |
log("password change not supported"); |
log("password change not supported"); |
|
|
Buffer b; |
Buffer b; |
Key *key; |
Key *key; |
char *pkalg, *pkblob, *sig; |
char *pkalg, *pkblob, *sig; |
unsigned int alen, blen, slen; |
u_int alen, blen, slen; |
int have_sig, pktype; |
int have_sig, pktype; |
int authenticated = 0; |
int authenticated = 0; |
|
|
|
|
authmethods_get(void) |
authmethods_get(void) |
{ |
{ |
Authmethod *method = NULL; |
Authmethod *method = NULL; |
unsigned int size = 0; |
u_int size = 0; |
char *list; |
char *list; |
|
|
for (method = authmethods; method->name != NULL; method++) { |
for (method = authmethods; method->name != NULL; method++) { |
|
|
char line[8192], file[1024]; |
char line[8192], file[1024]; |
int found_key = 0; |
int found_key = 0; |
FILE *f; |
FILE *f; |
unsigned long linenum = 0; |
u_long linenum = 0; |
struct stat st; |
struct stat st; |
Key *found; |
Key *found; |
|
|