version 1.2, 2002/05/31 11:35:15 |
version 1.2.6.1, 2003/09/16 21:20:24 |
|
|
/* import */ |
/* import */ |
extern ServerOptions options; |
extern ServerOptions options; |
extern u_char *session_id2; |
extern u_char *session_id2; |
extern int session_id2_len; |
extern u_int session_id2_len; |
|
|
static int |
static int |
userauth_pubkey(Authctxt *authctxt) |
userauth_pubkey(Authctxt *authctxt) |
|
|
pktype = key_type_from_name(pkalg); |
pktype = key_type_from_name(pkalg); |
if (pktype == KEY_UNSPEC) { |
if (pktype == KEY_UNSPEC) { |
/* this is perfectly legal */ |
/* this is perfectly legal */ |
log("userauth_pubkey: unsupported public key algorithm: %s", |
logit("userauth_pubkey: unsupported public key algorithm: %s", |
pkalg); |
pkalg); |
goto done; |
goto done; |
} |
} |
|
|
if (options.strict_modes && |
if (options.strict_modes && |
secure_filename(f, file, pw, line, sizeof(line)) != 0) { |
secure_filename(f, file, pw, line, sizeof(line)) != 0) { |
fclose(f); |
fclose(f); |
log("Authentication refused: %s", line); |
logit("Authentication refused: %s", line); |
restore_uid(); |
restore_uid(); |
return 0; |
return 0; |
} |
} |