Commit | Line | Data |
---|---|---|
85c66981 | 1 | /*- |
8aa89157 KB |
2 | * Copyright (c) 1991, 1993 |
3 | * The Regents of the University of California. All rights reserved. | |
85c66981 DB |
4 | * |
5 | * %sccs.include.redist.c% | |
6 | * | |
8aa89157 | 7 | * @(#)auth.h 8.1 (Berkeley) %G% |
85c66981 DB |
8 | */ |
9 | ||
10 | /* | |
11 | * Copyright (C) 1990 by the Massachusetts Institute of Technology | |
12 | * | |
13 | * Export of this software from the United States of America is assumed | |
14 | * to require a specific license from the United States Government. | |
15 | * It is the responsibility of any person or organization contemplating | |
16 | * export to obtain such a license before exporting. | |
17 | * | |
18 | * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and | |
19 | * distribute this software and its documentation for any purpose and | |
20 | * without fee is hereby granted, provided that the above copyright | |
21 | * notice appear in all copies and that both that copyright notice and | |
22 | * this permission notice appear in supporting documentation, and that | |
23 | * the name of M.I.T. not be used in advertising or publicity pertaining | |
24 | * to distribution of the software without specific, written prior | |
25 | * permission. M.I.T. makes no representations about the suitability of | |
26 | * this software for any purpose. It is provided "as is" without express | |
27 | * or implied warranty. | |
28 | */ | |
29 | ||
30 | #ifndef __AUTH__ | |
31 | #define __AUTH__ | |
32 | ||
33 | #define AUTH_REJECT 0 /* Rejected */ | |
34 | #define AUTH_UNKNOWN 1 /* We don't know who he is, but he's okay */ | |
35 | #define AUTH_OTHER 2 /* We know him, but not his name */ | |
36 | #define AUTH_USER 3 /* We know he name */ | |
37 | #define AUTH_VALID 4 /* We know him, and he needs no password */ | |
38 | ||
39 | #if !defined(P) | |
40 | #ifdef __STDC__ | |
41 | #define P(x) x | |
42 | #else | |
43 | #define P(x) () | |
44 | #endif | |
45 | #endif | |
46 | ||
47 | typedef struct XauthP { | |
48 | int type; | |
49 | int way; | |
50 | int (*init) P((struct XauthP *, int)); | |
51 | int (*send) P((struct XauthP *)); | |
52 | void (*is) P((struct XauthP *, unsigned char *, int)); | |
53 | void (*reply) P((struct XauthP *, unsigned char *, int)); | |
54 | int (*status) P((struct XauthP *, char *, int)); | |
55 | void (*printsub) P((unsigned char *, int, unsigned char *, int)); | |
56 | } Authenticator; | |
57 | ||
58 | #include "auth-proto.h" | |
59 | ||
60 | extern auth_debug_mode; | |
61 | #endif |