xref: /freebsd/include/rpc/svc_auth.h (revision bb28f3c29b4c91af1b0e79e456294bb08735648a)
18360efbdSAlfred Perlstein /*	$NetBSD: svc_auth.h,v 1.8 2000/06/02 22:57:57 fvdl Exp $	*/
28360efbdSAlfred Perlstein 
3dba7a33eSGarrett Wollman /*
4dba7a33eSGarrett Wollman  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5dba7a33eSGarrett Wollman  * unrestricted use provided that this legend is included on all tape
6dba7a33eSGarrett Wollman  * media and as a part of the software program in whole or part.  Users
7dba7a33eSGarrett Wollman  * may copy or modify Sun RPC without charge, but are not authorized
8dba7a33eSGarrett Wollman  * to license or distribute it to anyone else except as part of a product or
9dba7a33eSGarrett Wollman  * program developed by the user.
10dba7a33eSGarrett Wollman  *
11dba7a33eSGarrett Wollman  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
1271d9c781SMike Pritchard  * WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
13dba7a33eSGarrett Wollman  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
14dba7a33eSGarrett Wollman  *
15dba7a33eSGarrett Wollman  * Sun RPC is provided with no support and without any obligation on the
16dba7a33eSGarrett Wollman  * part of Sun Microsystems, Inc. to assist in its use, correction,
17dba7a33eSGarrett Wollman  * modification or enhancement.
18dba7a33eSGarrett Wollman  *
19dba7a33eSGarrett Wollman  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
20dba7a33eSGarrett Wollman  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
21dba7a33eSGarrett Wollman  * OR ANY PART THEREOF.
22dba7a33eSGarrett Wollman  *
23dba7a33eSGarrett Wollman  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
24dba7a33eSGarrett Wollman  * or profits or other special, indirect and consequential damages, even if
25dba7a33eSGarrett Wollman  * Sun has been advised of the possibility of such damages.
26dba7a33eSGarrett Wollman  *
27dba7a33eSGarrett Wollman  * Sun Microsystems, Inc.
28dba7a33eSGarrett Wollman  * 2550 Garcia Avenue
29dba7a33eSGarrett Wollman  * Mountain View, California  94043
3086b9a9ccSGarrett Wollman  *
3186b9a9ccSGarrett Wollman  *	from: @(#)svc_auth.h 1.6 86/07/16 SMI
328360efbdSAlfred Perlstein  *	@(#)svc_auth.h	2.1 88/07/29 4.0 RPCSRC
33a4add9a9SPeter Wemm  * $FreeBSD$
34dba7a33eSGarrett Wollman  */
35dba7a33eSGarrett Wollman 
36dba7a33eSGarrett Wollman /*
37dba7a33eSGarrett Wollman  * svc_auth.h, Service side of rpc authentication.
38dba7a33eSGarrett Wollman  *
39dba7a33eSGarrett Wollman  * Copyright (C) 1984, Sun Microsystems, Inc.
40dba7a33eSGarrett Wollman  */
41dba7a33eSGarrett Wollman 
428360efbdSAlfred Perlstein #ifndef _RPC_SVC_AUTH_H
438360efbdSAlfred Perlstein #define _RPC_SVC_AUTH_H
449a03398dSBruce Evans 
45dba7a33eSGarrett Wollman /*
46dba7a33eSGarrett Wollman  * Server side authenticator
47dba7a33eSGarrett Wollman  */
4886b9a9ccSGarrett Wollman __BEGIN_DECLS
49bb28f3c2SWarner Losh extern enum auth_stat _authenticate(struct svc_req *, struct rpc_msg *);
50bb28f3c2SWarner Losh extern int svc_auth_reg(int, enum auth_stat (*)(struct svc_req *,
51bb28f3c2SWarner Losh 			  struct rpc_msg *));
528360efbdSAlfred Perlstein 
5386b9a9ccSGarrett Wollman __END_DECLS
5486b9a9ccSGarrett Wollman 
558360efbdSAlfred Perlstein #endif /* !_RPC_SVC_AUTH_H */
56