=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/auth2-pubkey.c,v retrieving revision 1.6.2.2 retrieving revision 1.7 diff -u -r1.6.2.2 -r1.7 --- src/usr.bin/ssh/auth2-pubkey.c 2005/03/10 17:15:04 1.6.2.2 +++ src/usr.bin/ssh/auth2-pubkey.c 2004/06/21 17:36:31 1.7 @@ -23,9 +23,8 @@ */ #include "includes.h" -RCSID("$OpenBSD: auth2-pubkey.c,v 1.6.2.2 2005/03/10 17:15:04 brad Exp $"); +RCSID("$OpenBSD: auth2-pubkey.c,v 1.7 2004/06/21 17:36:31 avsm Exp $"); -#include "ssh.h" #include "ssh2.h" #include "xmalloc.h" #include "packet.h" @@ -41,7 +40,6 @@ #include "auth-options.h" #include "canohost.h" #include "monitor_wrap.h" -#include "misc.h" /* import */ extern ServerOptions options; @@ -165,7 +163,7 @@ static int user_key_allowed2(struct passwd *pw, Key *key, char *file) { - char line[SSH_MAX_PUBKEY_BYTES]; + char line[8192]; int found_key = 0; FILE *f; u_long linenum = 0; @@ -202,9 +200,9 @@ found_key = 0; found = key_new(key->type); - while (read_keyfile_line(f, file, line, sizeof(line), &linenum) != -1) { + while (fgets(line, sizeof(line), f)) { char *cp, *key_options = NULL; - + linenum++; /* Skip leading whitespace, empty and comment lines. */ for (cp = line; *cp == ' ' || *cp == '\t'; cp++) ;