Fix so that UKERNEL can keep using system xdr
[openafs.git] / src / rx / rx_null.c
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 #include <afsconfig.h>
11 #ifdef  KERNEL
12 #include "afs/param.h"
13 #else
14 #include <afs/param.h>
15 #endif
16
17
18 #ifdef KERNEL
19 #ifndef UKERNEL
20 #include "h/types.h"
21 #else /* !UKERNEL */
22 #include "afs/sysincludes.h"
23 #endif /* !UKERNEL */
24 #include "rx/rx.h"
25 #else /* KERNEL */
26 #include "rx.h"
27 #endif /* KERNEL */
28
29 /* The null security object.  No authentication, no nothing. */
30
31 static struct rx_securityOps null_ops;
32 static struct rx_securityClass null_object = { &null_ops, 0, 0 };
33
34 struct rx_securityClass *
35 rxnull_NewServerSecurityObject(void)
36 {
37     return &null_object;
38 }
39
40 struct rx_securityClass *
41 rxnull_NewClientSecurityObject(void)
42 {
43     return &null_object;
44 }