github.com/rajveermalviya/gamen@v0.1.2-0.20220930195403-9be15877c1aa/internal/xcb/include/X11/extensions/securproto.h (about) 1 /* 2 Copyright 1996, 1998 The Open Group 3 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 8 documentation. 9 10 The above copyright notice and this permission notice shall be included 11 in all copies or substantial portions of the Software. 12 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. 20 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 24 from The Open Group. 25 */ 26 27 #ifndef _SECURPROTO_H 28 #define _SECURPROTO_H 29 30 #include <X11/extensions/secur.h> 31 32 #define X_SecurityQueryVersion 0 33 #define X_SecurityGenerateAuthorization 1 34 #define X_SecurityRevokeAuthorization 2 35 36 typedef struct { 37 CARD8 reqType; 38 CARD8 securityReqType; 39 CARD16 length; 40 CARD16 majorVersion; 41 CARD16 minorVersion; 42 } xSecurityQueryVersionReq; 43 #define sz_xSecurityQueryVersionReq 8 44 45 typedef struct { 46 CARD8 type; 47 CARD8 pad0; 48 CARD16 sequenceNumber; 49 CARD32 length; 50 CARD16 majorVersion; 51 CARD16 minorVersion; 52 CARD32 pad1; 53 CARD32 pad2; 54 CARD32 pad3; 55 CARD32 pad4; 56 CARD32 pad5; 57 } xSecurityQueryVersionReply; 58 #define sz_xSecurityQueryVersionReply 32 59 60 typedef struct { 61 CARD8 reqType; 62 CARD8 securityReqType; 63 CARD16 length; 64 CARD16 nbytesAuthProto; 65 CARD16 nbytesAuthData; 66 CARD32 valueMask; 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 72 73 typedef struct { 74 CARD8 type; 75 CARD8 pad0; 76 CARD16 sequenceNumber; 77 CARD32 length; 78 CARD32 authId; 79 CARD16 dataLength; 80 CARD16 pad1; 81 CARD32 pad2; 82 CARD32 pad3; 83 CARD32 pad4; 84 CARD32 pad5; 85 } xSecurityGenerateAuthorizationReply; 86 #define sz_xSecurityGenerateAuthorizationReply 32 87 88 typedef struct { 89 CARD8 reqType; 90 CARD8 securityReqType; 91 CARD16 length; 92 CARD32 authId; 93 } xSecurityRevokeAuthorizationReq; 94 #define sz_xSecurityRevokeAuthorizationReq 8 95 96 typedef struct _xSecurityAuthorizationRevokedEvent { 97 BYTE type; 98 BYTE detail; 99 CARD16 sequenceNumber; 100 CARD32 authId; 101 CARD32 pad0; 102 CARD32 pad1; 103 CARD32 pad2; 104 CARD32 pad3; 105 CARD32 pad4; 106 CARD32 pad5; 107 } xSecurityAuthorizationRevokedEvent; 108 #define sz_xSecurityAuthorizationRevokedEvent 32 109 110 #endif /* _SECURPROTO_H */