nfs-ganesha 1.4
|
00001 /* 00002 Copyright (c) 2000 The Regents of the University of Michigan. 00003 All rights reserved. 00004 00005 Copyright (c) 2000 Dug Song <dugsong@UMICH.EDU>. 00006 All rights reserved, all wrongs reversed. 00007 00008 Redistribution and use in source and binary forms, with or without 00009 modification, are permitted provided that the following conditions 00010 are met: 00011 00012 1. Redistributions of source code must retain the above copyright 00013 notice, this list of conditions and the following disclaimer. 00014 2. Redistributions in binary form must reproduce the above copyright 00015 notice, this list of conditions and the following disclaimer in the 00016 documentation and/or other materials provided with the distribution. 00017 3. Neither the name of the University nor the names of its 00018 contributors may be used to endorse or promote products derived 00019 from this software without specific prior written permission. 00020 00021 THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED 00022 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 00023 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00024 DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 00025 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00026 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00027 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 00028 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 00029 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 00030 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00031 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00032 00033 */ 00034 #ifdef HAVE_CONFIG_H 00035 #include "config.h" 00036 #endif 00037 00038 #ifdef _SOLARIS 00039 #include "solaris_port.h" 00040 #endif 00041 00042 #include "rpcal.h" 00043 00044 bool_t Svcauth_none_destroy(SVCAUTH *); 00045 bool_t Svcauth_none_wrap(SVCAUTH *, XDR *, xdrproc_t, caddr_t); 00046 00047 struct svc_auth_ops Svc_auth_none_ops = { 00048 Svcauth_none_wrap, 00049 Svcauth_none_wrap, 00050 Svcauth_none_destroy 00051 }; 00052 00053 SVCAUTH Svc_auth_none = { 00054 &Svc_auth_none_ops, 00055 NULL, 00056 }; 00057 00058 bool_t Svcauth_none_destroy(SVCAUTH * auth) 00059 { 00060 return (TRUE); 00061 } 00062 00063 bool_t Svcauth_none_wrap(SVCAUTH * auth, XDR * xdrs, xdrproc_t xdr_func, caddr_t xdr_ptr) 00064 { 00065 return ((*xdr_func) (xdrs, xdr_ptr)); 00066 } 00067 00068 enum auth_stat 00069 Gssrpc__svcauth_none(struct svc_req *rqst, struct rpc_msg *msg, bool_t * no_dispatch) 00070 { 00071 rqst->rq_xprt->xp_auth = &Svc_auth_none; 00072 00073 return (AUTH_OK); 00074 }