diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-03-26 02:59:31 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-03-26 02:59:31 +0000 |
commit | f6d367b91a78f91bc876a4c444e185e315244fdb (patch) | |
tree | bb3573d27da78c745f24909c323cc3da7878ae72 /auth-rsa.c | |
parent | 2e9d866608e807bb05f835bbe2b6bdb87cfa7299 (diff) |
- markus@cvs.openbsd.org 2002/03/25 09:21:13
[auth-rsa.c]
return 0 (not NULL); tomh@po.crl.go.jp
Diffstat (limited to 'auth-rsa.c')
-rw-r--r-- | auth-rsa.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/auth-rsa.c b/auth-rsa.c index 9c5d484b1..c51400c2a 100644 --- a/auth-rsa.c +++ b/auth-rsa.c | |||
@@ -14,7 +14,7 @@ | |||
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include "includes.h" | 16 | #include "includes.h" |
17 | RCSID("$OpenBSD: auth-rsa.c,v 1.52 2002/03/18 17:50:31 provos Exp $"); | 17 | RCSID("$OpenBSD: auth-rsa.c,v 1.53 2002/03/25 09:21:13 markus Exp $"); |
18 | 18 | ||
19 | #include <openssl/rsa.h> | 19 | #include <openssl/rsa.h> |
20 | #include <openssl/md5.h> | 20 | #include <openssl/md5.h> |
@@ -165,7 +165,7 @@ auth_rsa_key_allowed(struct passwd *pw, BIGNUM *client_n, Key **rkey) | |||
165 | /* Restore the privileged uid. */ | 165 | /* Restore the privileged uid. */ |
166 | restore_uid(); | 166 | restore_uid(); |
167 | xfree(file); | 167 | xfree(file); |
168 | return (NULL); | 168 | return (0); |
169 | } | 169 | } |
170 | /* Open the file containing the authorized keys. */ | 170 | /* Open the file containing the authorized keys. */ |
171 | f = fopen(file, "r"); | 171 | f = fopen(file, "r"); |
@@ -173,7 +173,7 @@ auth_rsa_key_allowed(struct passwd *pw, BIGNUM *client_n, Key **rkey) | |||
173 | /* Restore the privileged uid. */ | 173 | /* Restore the privileged uid. */ |
174 | restore_uid(); | 174 | restore_uid(); |
175 | xfree(file); | 175 | xfree(file); |
176 | return (NULL); | 176 | return (0); |
177 | } | 177 | } |
178 | if (options.strict_modes && | 178 | if (options.strict_modes && |
179 | secure_filename(f, file, pw, line, sizeof(line)) != 0) { | 179 | secure_filename(f, file, pw, line, sizeof(line)) != 0) { |
@@ -181,7 +181,7 @@ auth_rsa_key_allowed(struct passwd *pw, BIGNUM *client_n, Key **rkey) | |||
181 | fclose(f); | 181 | fclose(f); |
182 | log("Authentication refused: %s", line); | 182 | log("Authentication refused: %s", line); |
183 | restore_uid(); | 183 | restore_uid(); |
184 | return (NULL); | 184 | return (0); |
185 | } | 185 | } |
186 | 186 | ||
187 | /* Flag indicating whether the key is allowed. */ | 187 | /* Flag indicating whether the key is allowed. */ |