1 | /*
|
---|
2 | Copyright 1996, 1998 The Open Group
|
---|
3 |
|
---|
4 | Permission to use, copy, modify, distribute, and sell this software and its
|
---|
5 | documentation for any purpose is hereby granted without fee, provided that
|
---|
6 | the above copyright notice appear in all copies and that both that
|
---|
7 | copyright notice and this permission notice appear in supporting
|
---|
8 | documentation.
|
---|
9 |
|
---|
10 | The above copyright notice and this permission notice shall be included
|
---|
11 | in all copies or substantial portions of the Software.
|
---|
12 |
|
---|
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
---|
14 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
---|
15 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
---|
16 | IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
---|
17 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
---|
18 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
---|
19 | OTHER DEALINGS IN THE SOFTWARE.
|
---|
20 |
|
---|
21 | Except as contained in this notice, the name of The Open Group shall
|
---|
22 | not be used in advertising or otherwise to promote the sale, use or
|
---|
23 | other dealings in this Software without prior written authorization
|
---|
24 | from The Open Group.
|
---|
25 | */
|
---|
26 |
|
---|
27 | #ifndef _SECUR_H
|
---|
28 | #define _SECUR_H
|
---|
29 |
|
---|
30 | #define SECURITY_EXTENSION_NAME "SECURITY"
|
---|
31 | #define SECURITY_MAJOR_VERSION 1
|
---|
32 | #define SECURITY_MINOR_VERSION 0
|
---|
33 |
|
---|
34 | #define XSecurityNumberEvents 1
|
---|
35 | #define XSecurityNumberErrors 2
|
---|
36 | #define XSecurityBadAuthorization 0
|
---|
37 | #define XSecurityBadAuthorizationProtocol 1
|
---|
38 |
|
---|
39 | /* trust levels */
|
---|
40 | #define XSecurityClientTrusted 0
|
---|
41 | #define XSecurityClientUntrusted 1
|
---|
42 |
|
---|
43 | /* authorization attribute masks */
|
---|
44 | #define XSecurityTimeout (1<<0)
|
---|
45 | #define XSecurityTrustLevel (1<<1)
|
---|
46 | #define XSecurityGroup (1<<2)
|
---|
47 | #define XSecurityEventMask (1<<3)
|
---|
48 | #define XSecurityAllAuthorizationAttributes \
|
---|
49 | (XSecurityTimeout | XSecurityTrustLevel | XSecurityGroup | XSecurityEventMask)
|
---|
50 |
|
---|
51 | /* event masks */
|
---|
52 | #define XSecurityAuthorizationRevokedMask (1<<0)
|
---|
53 | #define XSecurityAllEventMasks XSecurityAuthorizationRevokedMask
|
---|
54 |
|
---|
55 | /* event offsets */
|
---|
56 | #define XSecurityAuthorizationRevoked 0
|
---|
57 |
|
---|
58 | #define XSecurityAuthorizationName "XC-QUERY-SECURITY-1"
|
---|
59 | #define XSecurityAuthorizationNameLen 19
|
---|
60 |
|
---|
61 | #endif /* _SECUR_H */
|
---|