cc98bf4f20cd2d63f30ad32ee7ca53d96a1dc9ed
[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 #include "afs/param.h"
12
13 #ifdef KERNEL
14 # ifndef UKERNEL
15 #  include "h/types.h"
16 # else /* !UKERNEL */
17 #  include "afs/sysincludes.h"
18 # endif /* !UKERNEL */
19 #endif /* KERNEL */
20
21 #include "rx.h"
22
23 /* The null security object.  No authentication, no nothing. */
24
25 static struct rx_securityOps null_ops;
26 static struct rx_securityClass null_object = { &null_ops, 0, 0 };
27
28 struct rx_securityClass *
29 rxnull_NewServerSecurityObject(void)
30 {
31     return &null_object;
32 }
33
34 struct rx_securityClass *
35 rxnull_NewClientSecurityObject(void)
36 {
37     return &null_object;
38 }