18360efbdSAlfred Perlstein /* $NetBSD: svc_auth.h,v 1.8 2000/06/02 22:57:57 fvdl Exp $ */ 28360efbdSAlfred Perlstein 3*2e322d37SHiroki Sato /*- 4*2e322d37SHiroki Sato * Copyright (c) 2009, Sun Microsystems, Inc. 5*2e322d37SHiroki Sato * All rights reserved. 6dba7a33eSGarrett Wollman * 7*2e322d37SHiroki Sato * Redistribution and use in source and binary forms, with or without 8*2e322d37SHiroki Sato * modification, are permitted provided that the following conditions are met: 9*2e322d37SHiroki Sato * - Redistributions of source code must retain the above copyright notice, 10*2e322d37SHiroki Sato * this list of conditions and the following disclaimer. 11*2e322d37SHiroki Sato * - Redistributions in binary form must reproduce the above copyright notice, 12*2e322d37SHiroki Sato * this list of conditions and the following disclaimer in the documentation 13*2e322d37SHiroki Sato * and/or other materials provided with the distribution. 14*2e322d37SHiroki Sato * - Neither the name of Sun Microsystems, Inc. nor the names of its 15*2e322d37SHiroki Sato * contributors may be used to endorse or promote products derived 16*2e322d37SHiroki Sato * from this software without specific prior written permission. 17dba7a33eSGarrett Wollman * 18*2e322d37SHiroki Sato * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19*2e322d37SHiroki Sato * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20*2e322d37SHiroki Sato * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21*2e322d37SHiroki Sato * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 22*2e322d37SHiroki Sato * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23*2e322d37SHiroki Sato * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24*2e322d37SHiroki Sato * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25*2e322d37SHiroki Sato * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26*2e322d37SHiroki Sato * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27*2e322d37SHiroki Sato * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28*2e322d37SHiroki Sato * POSSIBILITY OF SUCH DAMAGE. 2986b9a9ccSGarrett Wollman * 3086b9a9ccSGarrett Wollman * from: @(#)svc_auth.h 1.6 86/07/16 SMI 318360efbdSAlfred Perlstein * @(#)svc_auth.h 2.1 88/07/29 4.0 RPCSRC 32a4add9a9SPeter Wemm * $FreeBSD$ 33dba7a33eSGarrett Wollman */ 34dba7a33eSGarrett Wollman 35dba7a33eSGarrett Wollman /* 36dba7a33eSGarrett Wollman * svc_auth.h, Service side of rpc authentication. 37dba7a33eSGarrett Wollman * 38dba7a33eSGarrett Wollman * Copyright (C) 1984, Sun Microsystems, Inc. 39dba7a33eSGarrett Wollman */ 40dba7a33eSGarrett Wollman 418360efbdSAlfred Perlstein #ifndef _RPC_SVC_AUTH_H 428360efbdSAlfred Perlstein #define _RPC_SVC_AUTH_H 439a03398dSBruce Evans 44dba7a33eSGarrett Wollman /* 45dba7a33eSGarrett Wollman * Server side authenticator 46dba7a33eSGarrett Wollman */ 4786b9a9ccSGarrett Wollman __BEGIN_DECLS 484efa8f3eSDoug Rabson extern struct svc_auth_ops svc_auth_null_ops; 494efa8f3eSDoug Rabson 50bb28f3c2SWarner Losh extern enum auth_stat _authenticate(struct svc_req *, struct rpc_msg *); 51bb28f3c2SWarner Losh extern int svc_auth_reg(int, enum auth_stat (*)(struct svc_req *, 52bb28f3c2SWarner Losh struct rpc_msg *)); 538360efbdSAlfred Perlstein 5486b9a9ccSGarrett Wollman __END_DECLS 5586b9a9ccSGarrett Wollman 568360efbdSAlfred Perlstein #endif /* !_RPC_SVC_AUTH_H */ 57