diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-06-25 04:30:16 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-06-25 04:30:16 +0000 |
commit | 83647ce474c37c8533e2aaf02f7366fbc0602ad9 (patch) | |
tree | 940fb5b1b82e7714a67188b8758d05674f935697 /auth.h | |
parent | 7d5ed3a07b0f00e961d636514ac42d4f1bc57a3e (diff) |
- markus@cvs.openbsd.org 2001/06/23 00:20:57
[auth2.c auth.c auth.h auth-rh-rsa.c]
*known_hosts2 is obsolete for hostbased authentication and
only used for backward compat. merge ssh1/2 hostkey check
and move it to auth.c
Diffstat (limited to 'auth.h')
-rw-r--r-- | auth.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -21,11 +21,13 @@ | |||
21 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 21 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 | * | 23 | * |
24 | * $OpenBSD: auth.h,v 1.17 2001/05/20 17:20:35 markus Exp $ | 24 | * $OpenBSD: auth.h,v 1.18 2001/06/23 00:20:58 markus Exp $ |
25 | */ | 25 | */ |
26 | #ifndef AUTH_H | 26 | #ifndef AUTH_H |
27 | #define AUTH_H | 27 | #define AUTH_H |
28 | 28 | ||
29 | #include "key.h" | ||
30 | #include "hostfile.h" | ||
29 | #include <openssl/rsa.h> | 31 | #include <openssl/rsa.h> |
30 | 32 | ||
31 | #ifdef HAVE_LOGIN_CAP | 33 | #ifdef HAVE_LOGIN_CAP |
@@ -159,7 +161,6 @@ int verify_response(Authctxt *authctxt, const char *response); | |||
159 | 161 | ||
160 | struct passwd * auth_get_user(void); | 162 | struct passwd * auth_get_user(void); |
161 | 163 | ||
162 | |||
163 | /* expand a filename - return buffer is allocated by xmalloc */ | 164 | /* expand a filename - return buffer is allocated by xmalloc */ |
164 | char *expand_filename(const char *template, struct passwd *pw); | 165 | char *expand_filename(const char *template, struct passwd *pw); |
165 | char *authorized_keys_file(struct passwd *pw); | 166 | char *authorized_keys_file(struct passwd *pw); |
@@ -169,6 +170,11 @@ char *authorized_keys_file2(struct passwd *pw); | |||
169 | int | 170 | int |
170 | secure_filename(FILE *f, const char *file, uid_t u, char *err, size_t errlen); | 171 | secure_filename(FILE *f, const char *file, uid_t u, char *err, size_t errlen); |
171 | 172 | ||
173 | /* helper for hostbased auth */ | ||
174 | HostStatus | ||
175 | check_key_in_hostfiles(struct passwd *pw, Key *key, const char *host, | ||
176 | const char *sysfile, const char *userfile); | ||
177 | |||
172 | #define AUTH_FAIL_MAX 6 | 178 | #define AUTH_FAIL_MAX 6 |
173 | #define AUTH_FAIL_LOG (AUTH_FAIL_MAX/2) | 179 | #define AUTH_FAIL_LOG (AUTH_FAIL_MAX/2) |
174 | #define AUTH_FAIL_MSG "Too many authentication failures for %.100s" | 180 | #define AUTH_FAIL_MSG "Too many authentication failures for %.100s" |