Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:14:19

0001 /*
0002 Copyright 1996, 1998  The Open Group
0003 
0004 Permission to use, copy, modify, distribute, and sell this software and its
0005 documentation for any purpose is hereby granted without fee, provided that
0006 the above copyright notice appear in all copies and that both that
0007 copyright notice and this permission notice appear in supporting
0008 documentation.
0009 
0010 The above copyright notice and this permission notice shall be included
0011 in all copies or substantial portions of the Software.
0012 
0013 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
0014 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
0015 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
0016 IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
0017 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
0018 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0019 OTHER DEALINGS IN THE SOFTWARE.
0020 
0021 Except as contained in this notice, the name of The Open Group shall
0022 not be used in advertising or otherwise to promote the sale, use or
0023 other dealings in this Software without prior written authorization
0024 from The Open Group.
0025 */
0026 
0027 #ifndef _SECUR_H
0028 #define _SECUR_H
0029 
0030 #define SECURITY_EXTENSION_NAME     "SECURITY"
0031 #define SECURITY_MAJOR_VERSION      1
0032 #define SECURITY_MINOR_VERSION      0
0033 
0034 #define XSecurityNumberEvents       1
0035 #define XSecurityNumberErrors       2
0036 #define XSecurityBadAuthorization   0
0037 #define XSecurityBadAuthorizationProtocol 1
0038 
0039 /* trust levels */
0040 #define XSecurityClientTrusted      0
0041 #define XSecurityClientUntrusted    1
0042 
0043 /* authorization attribute masks */
0044 #define XSecurityTimeout        (1<<0)
0045 #define XSecurityTrustLevel     (1<<1)
0046 #define XSecurityGroup          (1<<2)
0047 #define XSecurityEventMask      (1<<3)
0048 #define XSecurityAllAuthorizationAttributes \
0049  (XSecurityTimeout | XSecurityTrustLevel | XSecurityGroup | XSecurityEventMask)
0050 
0051 /* event masks */
0052 #define XSecurityAuthorizationRevokedMask (1<<0)
0053 #define XSecurityAllEventMasks XSecurityAuthorizationRevokedMask
0054 
0055 /* event offsets */
0056 #define XSecurityAuthorizationRevoked 0
0057 
0058 #define XSecurityAuthorizationName  "XC-QUERY-SECURITY-1"
0059 #define XSecurityAuthorizationNameLen   19
0060 
0061 #endif /* _SECUR_H */