174462Salfred/* $NetBSD: svc_auth.h,v 1.8 2000/06/02 22:57:57 fvdl Exp $ */ 274462Salfred 3261057Smav/*- 4261057Smav * Copyright (c) 2009, Sun Microsystems, Inc. 5261057Smav * All rights reserved. 68858Srgrimes * 7261057Smav * Redistribution and use in source and binary forms, with or without 8261057Smav * modification, are permitted provided that the following conditions are met: 9261057Smav * - Redistributions of source code must retain the above copyright notice, 10261057Smav * this list of conditions and the following disclaimer. 11261057Smav * - Redistributions in binary form must reproduce the above copyright notice, 12261057Smav * this list of conditions and the following disclaimer in the documentation 13261057Smav * and/or other materials provided with the distribution. 14261057Smav * - Neither the name of Sun Microsystems, Inc. nor the names of its 15261057Smav * contributors may be used to endorse or promote products derived 16261057Smav * from this software without specific prior written permission. 178858Srgrimes * 18261057Smav * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19261057Smav * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20261057Smav * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21261057Smav * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 22261057Smav * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23261057Smav * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24261057Smav * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25261057Smav * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26261057Smav * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27261057Smav * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28261057Smav * 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