1 /* $Xorg: securstr.h,v 1.4 2001/02/09 02:03:24 xorgcvs Exp $ */
3 Copyright 1996, 1998 The Open Group
5 Permission to use, copy, modify, distribute, and sell this software and its
6 documentation for any purpose is hereby granted without fee, provided that
7 the above copyright notice appear in all copies and that both that
8 copyright notice and this permission notice appear in supporting
11 The above copyright notice and this permission notice shall be included
12 in all copies or substantial portions of the Software.
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17 IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
18 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 OTHER DEALINGS IN THE SOFTWARE.
22 Except as contained in this notice, the name of The Open Group shall
23 not be used in advertising or otherwise to promote the sale, use or
24 other dealings in this Software without prior written authorization
27 /* $XFree86: xc/include/extensions/securstr.h,v 1.2 2001/08/01 00:44:35 tsi Exp $ */
32 #include <X11/extensions/security.h>
34 #define SECURITY_EXTENSION_NAME "SECURITY"
35 #define SECURITY_MAJOR_VERSION 1
36 #define SECURITY_MINOR_VERSION 0
38 #define X_SecurityQueryVersion 0
39 #define X_SecurityGenerateAuthorization 1
40 #define X_SecurityRevokeAuthorization 2
44 CARD8 securityReqType
;
46 CARD16 majorVersion B16
;
47 CARD16 minorVersion B16
;
48 } xSecurityQueryVersionReq
;
49 #define sz_xSecurityQueryVersionReq 8
54 CARD16 sequenceNumber B16
;
56 CARD16 majorVersion B16
;
57 CARD16 minorVersion B16
;
63 } xSecurityQueryVersionReply
;
64 #define sz_xSecurityQueryVersionReply 32
68 CARD8 securityReqType
;
70 CARD16 nbytesAuthProto B16
;
71 CARD16 nbytesAuthData B16
;
73 /* auth protocol name padded to 4 bytes */
74 /* auth protocol data padded to 4 bytes */
75 /* list of CARD32 values, if any */
76 } xSecurityGenerateAuthorizationReq
;
77 #define sz_xSecurityGenerateAuthorizationReq 12
82 CARD16 sequenceNumber B16
;
85 CARD16 dataLength B16
;
91 } xSecurityGenerateAuthorizationReply
;
92 #define sz_xSecurityGenerateAuthorizationReply 32
96 CARD8 securityReqType
;
99 } xSecurityRevokeAuthorizationReq
;
100 #define sz_xSecurityRevokeAuthorizationReq 8
102 typedef struct _xSecurityAuthorizationRevokedEvent
{
105 CARD16 sequenceNumber B16
;
113 } xSecurityAuthorizationRevokedEvent
;
114 #define sz_xSecurityAuthorizationRevokedEvent 32
116 #endif /* _SECURSTR_H */