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. 31dba7a33eSGarrett Wollman */ 32dba7a33eSGarrett Wollman 33dba7a33eSGarrett Wollman /* 34dba7a33eSGarrett Wollman * svc_auth.h, Service side of rpc authentication. 35dba7a33eSGarrett Wollman * 36dba7a33eSGarrett Wollman * Copyright (C) 1984, Sun Microsystems, Inc. 37dba7a33eSGarrett Wollman */ 38dba7a33eSGarrett Wollman 398360efbdSAlfred Perlstein #ifndef _RPC_SVC_AUTH_H 408360efbdSAlfred Perlstein #define _RPC_SVC_AUTH_H 419a03398dSBruce Evans 42dba7a33eSGarrett Wollman /* 43dba7a33eSGarrett Wollman * Server side authenticator 44dba7a33eSGarrett Wollman */ 4586b9a9ccSGarrett Wollman __BEGIN_DECLS 464efa8f3eSDoug Rabson extern struct svc_auth_ops svc_auth_null_ops; 474efa8f3eSDoug Rabson 48bb28f3c2SWarner Losh extern enum auth_stat _authenticate(struct svc_req *, struct rpc_msg *); 49bb28f3c2SWarner Losh extern int svc_auth_reg(int, enum auth_stat (*)(struct svc_req *, 50bb28f3c2SWarner Losh struct rpc_msg *)); 518360efbdSAlfred Perlstein 5286b9a9ccSGarrett Wollman __END_DECLS 5386b9a9ccSGarrett Wollman 548360efbdSAlfred Perlstein #endif /* !_RPC_SVC_AUTH_H */ 55