secur.h revision 17ca54c3
1/* 2Copyright 1996, 1998 The Open Group 3 4Permission to use, copy, modify, distribute, and sell this software and its 5documentation for any purpose is hereby granted without fee, provided that 6the above copyright notice appear in all copies and that both that 7copyright notice and this permission notice appear in supporting 8documentation. 9 10The above copyright notice and this permission notice shall be included 11in all copies or substantial portions of the Software. 12 13THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 14OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 15MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 16IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 17OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 18ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 19OTHER DEALINGS IN THE SOFTWARE. 20 21Except as contained in this notice, the name of The Open Group shall 22not be used in advertising or otherwise to promote the sale, use or 23other dealings in this Software without prior written authorization 24from 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 */ 62