xref: /original-bsd/lib/libtelnet/auth-proto.h (revision bd226a66)
1 /*-
2  * Copyright (c) 1991 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)auth-proto.h	5.2 (Berkeley) 03/22/91
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 #if	!defined(P)
31 #ifdef	__STDC__
32 #define	P(x)	x
33 #else
34 #define	P(x)	()
35 #endif
36 #endif
37 
38 #if	defined(AUTHENTICATE)
39 Authenticator *findauthenticator P((int, int));
40 
41 void auth_init P((char *, int));
42 int auth_cmd P((int, char **));
43 void auth_request P((void));
44 void auth_send P((unsigned char *, int));
45 void auth_send_retry P((void));
46 void auth_is P((unsigned char *, int));
47 void auth_reply P((unsigned char *, int));
48 void auth_finished P((Authenticator *, int));
49 int auth_wait P((char *));
50 void auth_disable_name P((char *));
51 void auth_gen_printsub P((unsigned char *, int, unsigned char *, int));
52 
53 #ifdef	KRB4
54 int kerberos4_init P((Authenticator *, int));
55 int kerberos4_send P((Authenticator *));
56 void kerberos4_is P((Authenticator *, unsigned char *, int));
57 void kerberos4_reply P((Authenticator *, unsigned char *, int));
58 int kerberos4_status P((Authenticator *, char *, int));
59 void kerberos4_printsub P((unsigned char *, int, unsigned char *, int));
60 #endif
61 
62 #ifdef	KRB5
63 int kerberos5_init P((Authenticator *, int));
64 int kerberos5_send P((Authenticator *));
65 void kerberos5_is P((Authenticator *, unsigned char *, int));
66 void kerberos5_reply P((Authenticator *, unsigned char *, int));
67 int kerberos5_status P((Authenticator *, char *, int));
68 void kerberos5_printsub P((unsigned char *, int, unsigned char *, int));
69 #endif
70 #endif
71