diff options
Diffstat (limited to 'auth.h')
-rw-r--r-- | auth.h | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth.h,v 1.50 2004/05/23 23:59:53 dtucker Exp $ */ | 1 | /* $OpenBSD: auth.h,v 1.51 2005/06/06 11:20:36 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
@@ -30,6 +30,7 @@ | |||
30 | 30 | ||
31 | #include "key.h" | 31 | #include "key.h" |
32 | #include "hostfile.h" | 32 | #include "hostfile.h" |
33 | #include "buffer.h" | ||
33 | #include <openssl/rsa.h> | 34 | #include <openssl/rsa.h> |
34 | 35 | ||
35 | #ifdef HAVE_LOGIN_CAP | 36 | #ifdef HAVE_LOGIN_CAP |
@@ -52,6 +53,7 @@ struct Authctxt { | |||
52 | int valid; /* user exists and is allowed to login */ | 53 | int valid; /* user exists and is allowed to login */ |
53 | int attempt; | 54 | int attempt; |
54 | int failures; | 55 | int failures; |
56 | int server_caused_failure; | ||
55 | int force_pwchange; | 57 | int force_pwchange; |
56 | char *user; /* username sent by the client */ | 58 | char *user; /* username sent by the client */ |
57 | char *service; | 59 | char *service; |
@@ -68,6 +70,7 @@ struct Authctxt { | |||
68 | char *krb5_ticket_file; | 70 | char *krb5_ticket_file; |
69 | char *krb5_ccname; | 71 | char *krb5_ccname; |
70 | #endif | 72 | #endif |
73 | Buffer *loginmsg; | ||
71 | void *methoddata; | 74 | void *methoddata; |
72 | }; | 75 | }; |
73 | /* | 76 | /* |
@@ -161,7 +164,6 @@ char *get_challenge(Authctxt *); | |||
161 | int verify_response(Authctxt *, const char *); | 164 | int verify_response(Authctxt *, const char *); |
162 | void abandon_challenge_response(Authctxt *); | 165 | void abandon_challenge_response(Authctxt *); |
163 | 166 | ||
164 | char *expand_filename(const char *, struct passwd *); | ||
165 | char *authorized_keys_file(struct passwd *); | 167 | char *authorized_keys_file(struct passwd *); |
166 | char *authorized_keys_file2(struct passwd *); | 168 | char *authorized_keys_file2(struct passwd *); |
167 | 169 | ||
@@ -185,7 +187,14 @@ void auth_debug_reset(void); | |||
185 | 187 | ||
186 | struct passwd *fakepw(void); | 188 | struct passwd *fakepw(void); |
187 | 189 | ||
190 | int sys_auth_passwd(Authctxt *, const char *); | ||
191 | |||
188 | #define AUTH_FAIL_MSG "Too many authentication failures for %.100s" | 192 | #define AUTH_FAIL_MSG "Too many authentication failures for %.100s" |
189 | 193 | ||
190 | #define SKEY_PROMPT "\nS/Key Password: " | 194 | #define SKEY_PROMPT "\nS/Key Password: " |
195 | |||
196 | #if defined(KRB5) && !defined(HEIMDAL) | ||
197 | #include <krb5.h> | ||
198 | krb5_error_code ssh_krb5_cc_gen(krb5_context, krb5_ccache *); | ||
199 | #endif | ||
191 | #endif | 200 | #endif |