diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | auth2.c | 6 |
2 files changed, 7 insertions, 4 deletions
@@ -5,6 +5,9 @@ | |||
5 | - stevesk@cvs.openbsd.org 2001/09/20 00:15:54 | 5 | - stevesk@cvs.openbsd.org 2001/09/20 00:15:54 |
6 | [sshd.8] | 6 | [sshd.8] |
7 | fix ClientAliveCountMax | 7 | fix ClientAliveCountMax |
8 | - markus@cvs.openbsd.org 2001/09/20 13:46:48 | ||
9 | [auth2.c] | ||
10 | key_read returns now -1 or 1 | ||
8 | 11 | ||
9 | 20010919 | 12 | 20010919 |
10 | - (bal) OpenBSD Sync | 13 | - (bal) OpenBSD Sync |
@@ -6538,4 +6541,4 @@ | |||
6538 | - Wrote replacements for strlcpy and mkdtemp | 6541 | - Wrote replacements for strlcpy and mkdtemp |
6539 | - Released 1.0pre1 | 6542 | - Released 1.0pre1 |
6540 | 6543 | ||
6541 | $Id: ChangeLog,v 1.1551 2001/09/20 23:09:16 mouring Exp $ | 6544 | $Id: ChangeLog,v 1.1552 2001/09/20 23:11:26 mouring Exp $ |
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: auth2.c,v 1.69 2001/07/23 18:14:58 stevesk Exp $"); | 26 | RCSID("$OpenBSD: auth2.c,v 1.70 2001/09/20 13:46:48 markus Exp $"); |
27 | 27 | ||
28 | #include <openssl/evp.h> | 28 | #include <openssl/evp.h> |
29 | 29 | ||
@@ -698,7 +698,7 @@ user_key_allowed2(struct passwd *pw, Key *key, char *file) | |||
698 | if (!*cp || *cp == '\n' || *cp == '#') | 698 | if (!*cp || *cp == '\n' || *cp == '#') |
699 | continue; | 699 | continue; |
700 | 700 | ||
701 | if (key_read(found, &cp) == -1) { | 701 | if (key_read(found, &cp) != 1) { |
702 | /* no key? check if there are options for this key */ | 702 | /* no key? check if there are options for this key */ |
703 | int quoted = 0; | 703 | int quoted = 0; |
704 | debug2("user_key_allowed: check options: '%s'", cp); | 704 | debug2("user_key_allowed: check options: '%s'", cp); |
@@ -712,7 +712,7 @@ user_key_allowed2(struct passwd *pw, Key *key, char *file) | |||
712 | /* Skip remaining whitespace. */ | 712 | /* Skip remaining whitespace. */ |
713 | for (; *cp == ' ' || *cp == '\t'; cp++) | 713 | for (; *cp == ' ' || *cp == '\t'; cp++) |
714 | ; | 714 | ; |
715 | if (key_read(found, &cp) == -1) { | 715 | if (key_read(found, &cp) != 1) { |
716 | debug2("user_key_allowed: advance: '%s'", cp); | 716 | debug2("user_key_allowed: advance: '%s'", cp); |
717 | /* still no key? advance to next line*/ | 717 | /* still no key? advance to next line*/ |
718 | continue; | 718 | continue; |