174462Salfred/*	$NetBSD: svc_auth.h,v 1.8 2000/06/02 22:57:57 fvdl Exp $	*/
274462Salfred
3261046Smav/*-
4261046Smav * Copyright (c) 2009, Sun Microsystems, Inc.
5261046Smav * All rights reserved.
68858Srgrimes *
7261046Smav * Redistribution and use in source and binary forms, with or without
8261046Smav * modification, are permitted provided that the following conditions are met:
9261046Smav * - Redistributions of source code must retain the above copyright notice,
10261046Smav *   this list of conditions and the following disclaimer.
11261046Smav * - Redistributions in binary form must reproduce the above copyright notice,
12261046Smav *   this list of conditions and the following disclaimer in the documentation
13261046Smav *   and/or other materials provided with the distribution.
14261046Smav * - Neither the name of Sun Microsystems, Inc. nor the names of its
15261046Smav *   contributors may be used to endorse or promote products derived
16261046Smav *   from this software without specific prior written permission.
178858Srgrimes *
18261046Smav * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19261046Smav * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20261046Smav * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21261046Smav * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22261046Smav * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23261046Smav * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24261046Smav * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25261046Smav * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26261046Smav * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27261046Smav * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28261046Smav * POSSIBILITY OF SUCH DAMAGE.
298858Srgrimes *
301903Swollman *	from: @(#)svc_auth.h 1.6 86/07/16 SMI
3174462Salfred *	@(#)svc_auth.h	2.1 88/07/29 4.0 RPCSRC
3250473Speter * $FreeBSD$
331839Swollman */
341839Swollman
351839Swollman/*
361839Swollman * svc_auth.h, Service side of rpc authentication.
378858Srgrimes *
381839Swollman * Copyright (C) 1984, Sun Microsystems, Inc.
391839Swollman */
401839Swollman
4174462Salfred#ifndef _RPC_SVC_AUTH_H
4274462Salfred#define _RPC_SVC_AUTH_H
431839Swollman
441839Swollman/*
451839Swollman * Server side authenticator
461839Swollman */
471903Swollman__BEGIN_DECLS
48182891Sdfrextern struct svc_auth_ops svc_auth_null_ops;
49182891Sdfr
5093032Simpextern enum auth_stat _authenticate(struct svc_req *, struct rpc_msg *);
5193032Simpextern int svc_auth_reg(int, enum auth_stat (*)(struct svc_req *,
5293032Simp			  struct rpc_msg *));
5374462Salfred
541903Swollman__END_DECLS
551903Swollman
5674462Salfred#endif /* !_RPC_SVC_AUTH_H */
57