diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-06-05 20:25:05 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-06-05 20:25:05 +0000 |
commit | bfb3a0e973214fabc1be744b8c7e4a89a0c5570c (patch) | |
tree | 8227151356ee10ae6762c42442f272b0db418973 /auth.h | |
parent | e2595448766a4149bbd2652830d1b086a066af13 (diff) |
- markus@cvs.openbsd.org 2001/05/20 17:20:36
[auth-rsa.c auth.c auth.h auth2.c servconf.c servconf.h sshd.8
sshd_config]
configurable authorized_keys{,2} location; originally from peter@;
ok djm@
Diffstat (limited to 'auth.h')
-rw-r--r-- | auth.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -21,7 +21,7 @@ | |||
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.16 2001/05/18 14:13:28 markus Exp $ | 24 | * $OpenBSD: auth.h,v 1.17 2001/05/20 17:20:35 markus Exp $ |
25 | */ | 25 | */ |
26 | #ifndef AUTH_H | 26 | #ifndef AUTH_H |
27 | #define AUTH_H | 27 | #define AUTH_H |
@@ -159,6 +159,16 @@ int verify_response(Authctxt *authctxt, const char *response); | |||
159 | 159 | ||
160 | struct passwd * auth_get_user(void); | 160 | struct passwd * auth_get_user(void); |
161 | 161 | ||
162 | |||
163 | /* expand a filename - return buffer is allocated by xmalloc */ | ||
164 | char *expand_filename(const char *template, struct passwd *pw); | ||
165 | char *authorized_keys_file(struct passwd *pw); | ||
166 | char *authorized_keys_file2(struct passwd *pw); | ||
167 | |||
168 | /* check a file and the path to it */ | ||
169 | int | ||
170 | secure_filename(FILE *f, const char *file, uid_t u, char *err, size_t errlen); | ||
171 | |||
162 | #define AUTH_FAIL_MAX 6 | 172 | #define AUTH_FAIL_MAX 6 |
163 | #define AUTH_FAIL_LOG (AUTH_FAIL_MAX/2) | 173 | #define AUTH_FAIL_LOG (AUTH_FAIL_MAX/2) |
164 | #define AUTH_FAIL_MSG "Too many authentication failures for %.100s" | 174 | #define AUTH_FAIL_MSG "Too many authentication failures for %.100s" |