windows-64-bit-type-safety-20051105
[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 RCSID
18     ("$Header$");
19
20 #ifdef KERNEL
21 #ifndef UKERNEL
22 #include "h/types.h"
23 #else /* !UKERNEL */
24 #include "afs/sysincludes.h"
25 #endif /* !UKERNEL */
26 #include "rx/rx.h"
27 #else /* KERNEL */
28 #include "rx.h"
29 #endif /* KERNEL */
30
31 /* The null security object.  No authentication, no nothing. */
32
33 static struct rx_securityOps null_ops;
34 static struct rx_securityClass null_object = { &null_ops, 0, 0 };
35
36 struct rx_securityClass *
37 rxnull_NewServerSecurityObject(void)
38 {
39     return &null_object;
40 }
41
42 struct rx_securityClass *
43 rxnull_NewClientSecurityObject(void)
44 {
45     return &null_object;
46 }