diff options
author | Damien Miller <djm@mindrot.org> | 2003-05-14 13:43:25 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-05-14 13:43:25 +1000 |
commit | 8ce778a9f040d04b6fe28f24dc8c5fac5dd5797c (patch) | |
tree | f5df07ff4cc6428672d85b73b68dd9cc12b28b48 /auth.h | |
parent | 5d421c04e6eb1b1a62f633beca356d9d8bfc6041 (diff) |
- markus@cvs.openbsd.org 2003/04/16 14:35:27
[auth.h]
document struct Authctxt; with solar
Diffstat (limited to 'auth.h')
-rw-r--r-- | auth.h | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -1,5 +1,4 @@ | |||
1 | /* $OpenBSD: auth.h,v 1.41 2002/09/26 11:38:43 markus Exp $ */ | 1 | /* $OpenBSD: auth.h,v 1.42 2003/04/16 14:35:27 markus Exp $ */ |
2 | /* $FreeBSD: src/crypto/openssh/auth.h,v 1.10 2003/03/31 13:45:36 des Exp $ */ | ||
3 | 2 | ||
4 | /* | 3 | /* |
5 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
@@ -49,13 +48,13 @@ typedef struct KbdintDevice KbdintDevice; | |||
49 | 48 | ||
50 | struct Authctxt { | 49 | struct Authctxt { |
51 | int success; | 50 | int success; |
52 | int postponed; | 51 | int postponed; /* authentication needs another step */ |
53 | int valid; | 52 | int valid; /* user exists and is allowed to login */ |
54 | int attempt; | 53 | int attempt; |
55 | int failures; | 54 | int failures; |
56 | char *user; | 55 | char *user; /* username sent by the client */ |
57 | char *service; | 56 | char *service; |
58 | struct passwd *pw; | 57 | struct passwd *pw; /* set if 'valid' */ |
59 | char *style; | 58 | char *style; |
60 | void *kbdintctxt; | 59 | void *kbdintctxt; |
61 | #ifdef BSD_AUTH | 60 | #ifdef BSD_AUTH |
@@ -72,6 +71,12 @@ struct Authctxt { | |||
72 | char *krb5_ticket_file; | 71 | char *krb5_ticket_file; |
73 | #endif | 72 | #endif |
74 | }; | 73 | }; |
74 | /* | ||
75 | * Every authentication method has to handle authentication requests for | ||
76 | * non-existing users, or for users that are not allowed to login. In this | ||
77 | * case 'valid' is set to 0, but 'user' points to the username requested by | ||
78 | * the client. | ||
79 | */ | ||
75 | 80 | ||
76 | struct Authmethod { | 81 | struct Authmethod { |
77 | char *name; | 82 | char *name; |