18360efbdSAlfred Perlstein /* $NetBSD: svc_auth.h,v 1.8 2000/06/02 22:57:57 fvdl Exp $ */ 28360efbdSAlfred Perlstein 32e322d37SHiroki Sato /*- 4*2321c474SPedro F. Giffuni * SPDX-License-Identifier: BSD-3-Clause 5*2321c474SPedro F. Giffuni * 62e322d37SHiroki Sato * Copyright (c) 2009, Sun Microsystems, Inc. 72e322d37SHiroki Sato * All rights reserved. 8dba7a33eSGarrett Wollman * 92e322d37SHiroki Sato * Redistribution and use in source and binary forms, with or without 102e322d37SHiroki Sato * modification, are permitted provided that the following conditions are met: 112e322d37SHiroki Sato * - Redistributions of source code must retain the above copyright notice, 122e322d37SHiroki Sato * this list of conditions and the following disclaimer. 132e322d37SHiroki Sato * - Redistributions in binary form must reproduce the above copyright notice, 142e322d37SHiroki Sato * this list of conditions and the following disclaimer in the documentation 152e322d37SHiroki Sato * and/or other materials provided with the distribution. 162e322d37SHiroki Sato * - Neither the name of Sun Microsystems, Inc. nor the names of its 172e322d37SHiroki Sato * contributors may be used to endorse or promote products derived 182e322d37SHiroki Sato * from this software without specific prior written permission. 19dba7a33eSGarrett Wollman * 202e322d37SHiroki Sato * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 212e322d37SHiroki Sato * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 222e322d37SHiroki Sato * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 232e322d37SHiroki Sato * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 242e322d37SHiroki Sato * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 252e322d37SHiroki Sato * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 262e322d37SHiroki Sato * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 272e322d37SHiroki Sato * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 282e322d37SHiroki Sato * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 292e322d37SHiroki Sato * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 302e322d37SHiroki Sato * POSSIBILITY OF SUCH DAMAGE. 3186b9a9ccSGarrett Wollman * 3286b9a9ccSGarrett Wollman * from: @(#)svc_auth.h 1.6 86/07/16 SMI 338360efbdSAlfred Perlstein * @(#)svc_auth.h 2.1 88/07/29 4.0 RPCSRC 34a4add9a9SPeter Wemm * $FreeBSD$ 35dba7a33eSGarrett Wollman */ 36dba7a33eSGarrett Wollman 37dba7a33eSGarrett Wollman /* 38dba7a33eSGarrett Wollman * svc_auth.h, Service side of rpc authentication. 39dba7a33eSGarrett Wollman * 40dba7a33eSGarrett Wollman * Copyright (C) 1984, Sun Microsystems, Inc. 41dba7a33eSGarrett Wollman */ 42dba7a33eSGarrett Wollman 438360efbdSAlfred Perlstein #ifndef _RPC_SVC_AUTH_H 448360efbdSAlfred Perlstein #define _RPC_SVC_AUTH_H 459a03398dSBruce Evans 46dba7a33eSGarrett Wollman /* 47dba7a33eSGarrett Wollman * Server side authenticator 48dba7a33eSGarrett Wollman */ 4986b9a9ccSGarrett Wollman __BEGIN_DECLS 504efa8f3eSDoug Rabson extern struct svc_auth_ops svc_auth_null_ops; 514efa8f3eSDoug Rabson 52bb28f3c2SWarner Losh extern enum auth_stat _authenticate(struct svc_req *, struct rpc_msg *); 53bb28f3c2SWarner Losh extern int svc_auth_reg(int, enum auth_stat (*)(struct svc_req *, 54bb28f3c2SWarner Losh struct rpc_msg *)); 558360efbdSAlfred Perlstein 5686b9a9ccSGarrett Wollman __END_DECLS 5786b9a9ccSGarrett Wollman 588360efbdSAlfred Perlstein #endif /* !_RPC_SVC_AUTH_H */ 59