1 /* $Xorg: securstr.h,v 1.4 2001/02/09 02:03:24 xorgcvs Exp $ */ 2 /* 3 Copyright 1996, 1998 The Open Group 4 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 9 documentation. 10 11 The above copyright notice and this permission notice shall be included 12 in all copies or substantial portions of the Software. 13 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. 21 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 25 from The Open Group. 26 */ 27 /* $XFree86: xc/include/extensions/securstr.h,v 1.2 2001/08/01 00:44:35 tsi Exp $ */ 28 29 #ifndef _SECURSTR_H 30 #define _SECURSTR_H 31 32 #include <X11/extensions/security.h> 33 34 #define SECURITY_EXTENSION_NAME "SECURITY" 35 #define SECURITY_MAJOR_VERSION 1 36 #define SECURITY_MINOR_VERSION 0 37 38 #define X_SecurityQueryVersion 0 39 #define X_SecurityGenerateAuthorization 1 40 #define X_SecurityRevokeAuthorization 2 41 42 typedef struct { 43 CARD8 reqType; 44 CARD8 securityReqType; 45 CARD16 length B16; 46 CARD16 majorVersion B16; 47 CARD16 minorVersion B16; 48 } xSecurityQueryVersionReq; 49 #define sz_xSecurityQueryVersionReq 8 50 51 typedef struct { 52 CARD8 type; 53 CARD8 pad0; 54 CARD16 sequenceNumber B16; 55 CARD32 length B32; 56 CARD16 majorVersion B16; 57 CARD16 minorVersion B16; 58 CARD32 pad1 B32; 59 CARD32 pad2 B32; 60 CARD32 pad3 B32; 61 CARD32 pad4 B32; 62 CARD32 pad5 B32; 63 } xSecurityQueryVersionReply; 64 #define sz_xSecurityQueryVersionReply 32 65 66 typedef struct { 67 CARD8 reqType; 68 CARD8 securityReqType; 69 CARD16 length B16; 70 CARD16 nbytesAuthProto B16; 71 CARD16 nbytesAuthData B16; 72 CARD32 valueMask B32; 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 78 79 typedef struct { 80 CARD8 type; 81 CARD8 pad0; 82 CARD16 sequenceNumber B16; 83 CARD32 length B32; 84 CARD32 authId B32; 85 CARD16 dataLength B16; 86 CARD16 pad1 B16; 87 CARD32 pad2 B32; 88 CARD32 pad3 B32; 89 CARD32 pad4 B32; 90 CARD32 pad5 B32; 91 } xSecurityGenerateAuthorizationReply; 92 #define sz_xSecurityGenerateAuthorizationReply 32 93 94 typedef struct { 95 CARD8 reqType; 96 CARD8 securityReqType; 97 CARD16 length B16; 98 CARD32 authId B32; 99 } xSecurityRevokeAuthorizationReq; 100 #define sz_xSecurityRevokeAuthorizationReq 8 101 102 typedef struct _xSecurityAuthorizationRevokedEvent { 103 BYTE type; 104 BYTE detail; 105 CARD16 sequenceNumber B16; 106 CARD32 authId B32; 107 CARD32 pad0 B32; 108 CARD32 pad1 B32; 109 CARD32 pad2 B32; 110 CARD32 pad3 B32; 111 CARD32 pad4 B32; 112 CARD32 pad5 B32; 113 } xSecurityAuthorizationRevokedEvent; 114 #define sz_xSecurityAuthorizationRevokedEvent 32 115 116 #endif /* _SECURSTR_H */ 117