xref: /illumos-gate/usr/src/uts/common/rpc/sec/sec_gen.c (revision ddb365bfc9e868ad24ccdcb0dc91af18b10df082)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright (c) 1994-1999 by Sun Microsystems, Inc.
24  * All rights reserved.
25  */
26 
27 /*
28  *  From  common/syscall/systeminfo.c
29  */
30 
31 #include <sys/types.h>
32 #include <sys/systeminfo.h>	/* for SI_KERB stuff */
33 
34 #include <sys/errno.h>
35 #include <rpc/types.h>
36 #include <rpc/xdr.h>
37 #include <rpc/auth.h>
38 #include <rpc/clnt.h>
39 #include <rpc/svc_auth.h>
40 
41 
42 /*
43  * authany_wrap() is a NO-OP routines for ah_wrap().
44  */
45 /* ARGSUSED */
46 int
47 authany_wrap(AUTH *auth, caddr_t buf, u_int buflen,
48     XDR *xdrs, xdrproc_t xfunc, caddr_t xwhere)
49 {
50 	return (*xfunc)(xdrs, xwhere);
51 }
52 
53 /*
54  * authany_unwrap() is a NO-OP routines for ah_unwrap().
55  */
56 /* ARGSUSED */
57 int
58 authany_unwrap(AUTH *auth, XDR *xdrs, xdrproc_t xfunc, caddr_t xwhere)
59 {
60 	return (*xfunc)(xdrs, xwhere);
61 }
62