auth-proto.h revision 49887
129088Smarkm/*-
229088Smarkm * Copyright (c) 1991, 1993
329088Smarkm *	The Regents of the University of California.  All rights reserved.
429088Smarkm *
529088Smarkm * Redistribution and use in source and binary forms, with or without
629088Smarkm * modification, are permitted provided that the following conditions
729088Smarkm * are met:
829088Smarkm * 1. Redistributions of source code must retain the above copyright
929088Smarkm *    notice, this list of conditions and the following disclaimer.
1029088Smarkm * 2. Redistributions in binary form must reproduce the above copyright
1129088Smarkm *    notice, this list of conditions and the following disclaimer in the
1229088Smarkm *    documentation and/or other materials provided with the distribution.
1329088Smarkm * 3. All advertising materials mentioning features or use of this software
1429088Smarkm *    must display the following acknowledgement:
1529088Smarkm *	This product includes software developed by the University of
1629088Smarkm *	California, Berkeley and its contributors.
1729088Smarkm * 4. Neither the name of the University nor the names of its contributors
1829088Smarkm *    may be used to endorse or promote products derived from this software
1929088Smarkm *    without specific prior written permission.
2029088Smarkm *
2129088Smarkm * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2229088Smarkm * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2329088Smarkm * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2429088Smarkm * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2529088Smarkm * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2629088Smarkm * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2729088Smarkm * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2829088Smarkm * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2929088Smarkm * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3029088Smarkm * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3129088Smarkm * SUCH DAMAGE.
3229088Smarkm *
3329088Smarkm *	@(#)auth-proto.h	8.1 (Berkeley) 6/4/93
3429088Smarkm */
3529088Smarkm
3629088Smarkm/*
3729088Smarkm * Copyright (C) 1990 by the Massachusetts Institute of Technology
3829088Smarkm *
3929088Smarkm * Export of this software from the United States of America is assumed
4029088Smarkm * to require a specific license from the United States Government.
4129088Smarkm * It is the responsibility of any person or organization contemplating
4229088Smarkm * export to obtain such a license before exporting.
4329088Smarkm *
4429088Smarkm * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
4529088Smarkm * distribute this software and its documentation for any purpose and
4629088Smarkm * without fee is hereby granted, provided that the above copyright
4729088Smarkm * notice appear in all copies and that both that copyright notice and
4829088Smarkm * this permission notice appear in supporting documentation, and that
4929088Smarkm * the name of M.I.T. not be used in advertising or publicity pertaining
5029088Smarkm * to distribution of the software without specific, written prior
5129088Smarkm * permission.  M.I.T. makes no representations about the suitability of
5229088Smarkm * this software for any purpose.  It is provided "as is" without express
5329088Smarkm * or implied warranty.
5429088Smarkm */
5529088Smarkm
5629088Smarkm#if	!defined(P)
5729088Smarkm#ifdef	__STDC__
5829088Smarkm#define	P(x)	x
5929088Smarkm#else
6029088Smarkm#define	P(x)	()
6129088Smarkm#endif
6229088Smarkm#endif
6329088Smarkm
6429088Smarkm#if	defined(AUTHENTICATION)
6529088SmarkmAuthenticator *findauthenticator P((int, int));
6629088Smarkm
6729088Smarkmvoid auth_init P((char *, int));
6829088Smarkmint auth_cmd P((int, char **));
6929088Smarkmvoid auth_request P((void));
7029088Smarkmvoid auth_send P((unsigned char *, int));
7129088Smarkmvoid auth_send_retry P((void));
7229088Smarkmvoid auth_is P((unsigned char *, int));
7329088Smarkmvoid auth_reply P((unsigned char *, int));
7429088Smarkmvoid auth_finished P((Authenticator *, int));
7529088Smarkmint auth_wait P((char *));
7629088Smarkmvoid auth_disable_name P((char *));
7729088Smarkmvoid auth_gen_printsub P((unsigned char *, int, unsigned char *, int));
7829181Smarkmvoid auth_name P((unsigned char *, int));
7929181Smarkmvoid auth_printsub P((unsigned char *, int, unsigned char *, int));
8029181Smarkmint auth_sendname P((unsigned char *, int));
8129181Smarkmvoid auth_encrypt_user P((char *));
8229088Smarkm
8329088Smarkm#ifdef	KRB4
8429088Smarkmint kerberos4_init P((Authenticator *, int));
8529088Smarkmint kerberos4_send P((Authenticator *));
8629088Smarkmvoid kerberos4_is P((Authenticator *, unsigned char *, int));
8729088Smarkmvoid kerberos4_reply P((Authenticator *, unsigned char *, int));
8829088Smarkmint kerberos4_status P((Authenticator *, char *, int));
8929088Smarkmvoid kerberos4_printsub P((unsigned char *, int, unsigned char *, int));
9029088Smarkm#endif
9129088Smarkm
9229088Smarkm#ifdef	KRB5
9329088Smarkmint kerberos5_init P((Authenticator *, int));
9429088Smarkmint kerberos5_send P((Authenticator *));
9529088Smarkmvoid kerberos5_is P((Authenticator *, unsigned char *, int));
9629088Smarkmvoid kerberos5_reply P((Authenticator *, unsigned char *, int));
9729088Smarkmint kerberos5_status P((Authenticator *, char *, int));
9829088Smarkmvoid kerberos5_printsub P((unsigned char *, int, unsigned char *, int));
9929088Smarkm#endif
10049887Snsayer#ifdef SRA
10149887Snsayerint sra_init P((Authenticator *, int));
10249887Snsayerint sra_send P((Authenticator *));
10349887Snsayervoid sra_is P((Authenticator *, unsigned char *, int));
10449887Snsayervoid sra_reply P((Authenticator *, unsigned char *, int));
10549887Snsayerint sra_status P((Authenticator *, char *, int));
10649887Snsayervoid sra_printsub P((unsigned char *, int, unsigned char *, int));
10729088Smarkm#endif
10849887Snsayer#endif
109