2 Copyright 1996, 1998 The Open Group
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
10 The above copyright notice and this permission notice shall be included
11 in all copies or substantial portions of the Software.
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.
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
30 #include <X11/extensions/secur.h>
32 #define X_SecurityQueryVersion 0
33 #define X_SecurityGenerateAuthorization 1
34 #define X_SecurityRevokeAuthorization 2
38 CARD8 securityReqType;
40 CARD16 majorVersion B16;
41 CARD16 minorVersion B16;
42 } xSecurityQueryVersionReq;
43 #define sz_xSecurityQueryVersionReq 8
48 CARD16 sequenceNumber B16;
50 CARD16 majorVersion B16;
51 CARD16 minorVersion B16;
57 } xSecurityQueryVersionReply;
58 #define sz_xSecurityQueryVersionReply 32
62 CARD8 securityReqType;
64 CARD16 nbytesAuthProto B16;
65 CARD16 nbytesAuthData B16;
67 /* auth protocol name padded to 4 bytes */
68 /* auth protocol data padded to 4 bytes */
69 /* list of CARD32 values, if any */
70 } xSecurityGenerateAuthorizationReq;
71 #define sz_xSecurityGenerateAuthorizationReq 12
76 CARD16 sequenceNumber B16;
79 CARD16 dataLength B16;
85 } xSecurityGenerateAuthorizationReply;
86 #define sz_xSecurityGenerateAuthorizationReply 32
90 CARD8 securityReqType;
93 } xSecurityRevokeAuthorizationReq;
94 #define sz_xSecurityRevokeAuthorizationReq 8
96 typedef struct _xSecurityAuthorizationRevokedEvent {
99 CARD16 sequenceNumber B16;
107 } xSecurityAuthorizationRevokedEvent;
108 #define sz_xSecurityAuthorizationRevokedEvent 32
110 #endif /* _SECURPROTO_H */