1 /* $XConsortium: securstr.h /main/4 1996/11/12 12:17:47 swick $ */
3 Copyright (c) 1996 X Consortium
5 Permission is hereby granted, free of charge, to any person obtaining
6 a copy of this software and associated documentation files (the
7 "Software"), to deal in the Software without restriction, including
8 without limitation the rights to use, copy, modify, merge, publish,
9 distribute, sublicense, and sell copies of the Software, and to
10 permit persons to whom the Software is furnished to do so, subject to
11 the following conditions:
13 The above copyright notice and this permission notice shall be included
14 in all copies or substantial portions of the Software.
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
20 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 OTHER DEALINGS IN THE SOFTWARE.
24 Except as contained in this notice, the name of the X Consortium shall
25 not be used in advertising or otherwise to promote the sale, use or
26 other dealings in this Software without prior written authorization
27 from the X Consortium.
35 #define SECURITY_EXTENSION_NAME "SECURITY"
36 #define SECURITY_MAJOR_VERSION 1
37 #define SECURITY_MINOR_VERSION 0
39 #define X_SecurityQueryVersion 0
40 #define X_SecurityGenerateAuthorization 1
41 #define X_SecurityRevokeAuthorization 2
45 CARD8 securityReqType;
47 CARD16 majorVersion B16;
48 CARD16 minorVersion B16;
49 } xSecurityQueryVersionReq;
50 #define sz_xSecurityQueryVersionReq 8
55 CARD16 sequenceNumber B16;
57 CARD16 majorVersion B16;
58 CARD16 minorVersion B16;
64 } xSecurityQueryVersionReply;
65 #define sz_xSecurityQueryVersionReply 32
69 CARD8 securityReqType;
71 CARD16 nbytesAuthProto B16;
72 CARD16 nbytesAuthData B16;
74 /* auth protocol name padded to 4 bytes */
75 /* auth protocol data padded to 4 bytes */
76 /* list of CARD32 values, if any */
77 } xSecurityGenerateAuthorizationReq;
78 #define sz_xSecurityGenerateAuthorizationReq 12
83 CARD16 sequenceNumber B16;
86 CARD16 dataLength B16;
92 } xSecurityGenerateAuthorizationReply;
93 #define sz_xSecurityGenerateAuthorizationReply 32
97 CARD8 securityReqType;
100 } xSecurityRevokeAuthorizationReq;
101 #define sz_xSecurityRevokeAuthorizationReq 8
103 typedef struct _xSecurityAuthorizationRevokedEvent {
106 CARD16 sequenceNumber B16;
114 } xSecurityAuthorizationRevokedEvent;
115 #define sz_xSecurityAuthorizationRevokedEvent 32
117 #endif /* _SECURSTR_H */