Import Upstream version 1.8.5
[hcoop/debian/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 #else /* KERNEL */
20 # include <roken.h>
21 #endif /* KERNEL */
22
23 #include "rx.h"
24
25 /* The null security object. No authentication, no nothing. */
26
27 static struct rx_securityOps null_ops;
28 static struct rx_securityClass null_object = { &null_ops, 0, 0 };
29
30 struct rx_securityClass *
31 rxnull_NewServerSecurityObject(void)
32 {
33 return &null_object;
34 }
35
36 struct rx_securityClass *
37 rxnull_NewClientSecurityObject(void)
38 {
39 return &null_object;
40 }