117ca54c3Smrg/*
217ca54c3SmrgCopyright 1996, 1998  The Open Group
317ca54c3Smrg
417ca54c3SmrgPermission to use, copy, modify, distribute, and sell this software and its
517ca54c3Smrgdocumentation for any purpose is hereby granted without fee, provided that
617ca54c3Smrgthe above copyright notice appear in all copies and that both that
717ca54c3Smrgcopyright notice and this permission notice appear in supporting
817ca54c3Smrgdocumentation.
917ca54c3Smrg
1017ca54c3SmrgThe above copyright notice and this permission notice shall be included
1117ca54c3Smrgin all copies or substantial portions of the Software.
1217ca54c3Smrg
1317ca54c3SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1417ca54c3SmrgOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1517ca54c3SmrgMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
1617ca54c3SmrgIN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
1717ca54c3SmrgOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
1817ca54c3SmrgARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
1917ca54c3SmrgOTHER DEALINGS IN THE SOFTWARE.
2017ca54c3Smrg
2117ca54c3SmrgExcept as contained in this notice, the name of The Open Group shall
2217ca54c3Smrgnot be used in advertising or otherwise to promote the sale, use or
2317ca54c3Smrgother dealings in this Software without prior written authorization
2417ca54c3Smrgfrom The Open Group.
2517ca54c3Smrg*/
2617ca54c3Smrg
2717ca54c3Smrg#ifndef _SECUR_H
2817ca54c3Smrg#define _SECUR_H
2917ca54c3Smrg
3017ca54c3Smrg#define SECURITY_EXTENSION_NAME		"SECURITY"
3117ca54c3Smrg#define SECURITY_MAJOR_VERSION		1
3217ca54c3Smrg#define SECURITY_MINOR_VERSION		0
3317ca54c3Smrg
3417ca54c3Smrg#define XSecurityNumberEvents		1
3517ca54c3Smrg#define XSecurityNumberErrors		2
3617ca54c3Smrg#define XSecurityBadAuthorization	0
3717ca54c3Smrg#define XSecurityBadAuthorizationProtocol 1
3817ca54c3Smrg
3917ca54c3Smrg/* trust levels */
4017ca54c3Smrg#define XSecurityClientTrusted		0
4117ca54c3Smrg#define XSecurityClientUntrusted	1
4217ca54c3Smrg
4317ca54c3Smrg/* authorization attribute masks */
4417ca54c3Smrg#define XSecurityTimeout		(1<<0)
4517ca54c3Smrg#define XSecurityTrustLevel		(1<<1)
4617ca54c3Smrg#define XSecurityGroup  		(1<<2)
4717ca54c3Smrg#define XSecurityEventMask		(1<<3)
4817ca54c3Smrg#define XSecurityAllAuthorizationAttributes \
4917ca54c3Smrg (XSecurityTimeout | XSecurityTrustLevel | XSecurityGroup | XSecurityEventMask)
5017ca54c3Smrg
5117ca54c3Smrg/* event masks */
5217ca54c3Smrg#define XSecurityAuthorizationRevokedMask (1<<0)
5317ca54c3Smrg#define XSecurityAllEventMasks XSecurityAuthorizationRevokedMask
5417ca54c3Smrg
5517ca54c3Smrg/* event offsets */
5617ca54c3Smrg#define XSecurityAuthorizationRevoked 0
5717ca54c3Smrg
5817ca54c3Smrg#define XSecurityAuthorizationName	"XC-QUERY-SECURITY-1"
5917ca54c3Smrg#define XSecurityAuthorizationNameLen	19
6017ca54c3Smrg
6117ca54c3Smrg#endif /* _SECUR_H */
62