version 1.29, 2001/01/19 15:55:10 |
version 1.30, 2001/01/20 15:55:20 |
|
|
int |
int |
user_key_allowed(struct passwd *pw, Key *key) |
user_key_allowed(struct passwd *pw, Key *key) |
{ |
{ |
char line[8192], file[1024]; |
char line[8192], file[MAXPATHNAME]; |
int found_key = 0; |
int found_key = 0; |
FILE *f; |
FILE *f; |
u_long linenum = 0; |
u_long linenum = 0; |
|
|
} |
} |
} |
} |
if (key_equal(found, key) && |
if (key_equal(found, key) && |
auth_parse_options(pw, options, linenum) == 1) { |
auth_parse_options(pw, options, file, linenum) == 1) { |
found_key = 1; |
found_key = 1; |
debug("matching key found: file %s, line %ld", |
debug("matching key found: file %s, line %ld", |
file, linenum); |
file, linenum); |