Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:14:19

0001 /*
0002 Copyright 1996, 1998  The Open Group
0003 
0004 Permission to use, copy, modify, distribute, and sell this software and its
0005 documentation for any purpose is hereby granted without fee, provided that
0006 the above copyright notice appear in all copies and that both that
0007 copyright notice and this permission notice appear in supporting
0008 documentation.
0009 
0010 The above copyright notice and this permission notice shall be included
0011 in all copies or substantial portions of the Software.
0012 
0013 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
0014 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
0015 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
0016 IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
0017 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
0018 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0019 OTHER DEALINGS IN THE SOFTWARE.
0020 
0021 Except as contained in this notice, the name of The Open Group shall
0022 not be used in advertising or otherwise to promote the sale, use or
0023 other dealings in this Software without prior written authorization
0024 from The Open Group.
0025 */
0026 
0027 #ifndef _SECURPROTO_H
0028 #define _SECURPROTO_H
0029 
0030 #include <X11/extensions/secur.h>
0031 
0032 #define X_SecurityQueryVersion      0
0033 #define X_SecurityGenerateAuthorization 1
0034 #define X_SecurityRevokeAuthorization   2
0035 
0036 typedef struct {
0037     CARD8       reqType;
0038     CARD8       securityReqType;
0039     CARD16      length B16;
0040     CARD16      majorVersion B16;
0041     CARD16      minorVersion B16;
0042 } xSecurityQueryVersionReq;
0043 #define sz_xSecurityQueryVersionReq     8
0044 
0045 typedef struct {
0046     CARD8   type;
0047     CARD8   pad0;
0048     CARD16  sequenceNumber B16;
0049     CARD32  length   B32;
0050     CARD16  majorVersion B16;
0051     CARD16  minorVersion B16;
0052     CARD32  pad1     B32;
0053     CARD32  pad2     B32;
0054     CARD32  pad3     B32;
0055     CARD32  pad4     B32;
0056     CARD32  pad5     B32;
0057  } xSecurityQueryVersionReply;
0058 #define sz_xSecurityQueryVersionReply   32
0059 
0060 typedef struct {
0061     CARD8       reqType;
0062     CARD8       securityReqType;
0063     CARD16      length B16;
0064     CARD16  nbytesAuthProto B16;
0065     CARD16  nbytesAuthData B16;
0066     CARD32  valueMask B32;
0067     /* auth protocol name padded to 4 bytes */
0068     /* auth protocol data padded to 4 bytes */
0069     /* list of CARD32 values, if any */
0070 } xSecurityGenerateAuthorizationReq;
0071 #define sz_xSecurityGenerateAuthorizationReq 12
0072 
0073 typedef struct {
0074     CARD8   type;
0075     CARD8   pad0;
0076     CARD16  sequenceNumber B16;
0077     CARD32  length   B32;
0078     CARD32  authId   B32;
0079     CARD16  dataLength   B16;
0080     CARD16  pad1     B16;
0081     CARD32  pad2     B32;
0082     CARD32  pad3     B32;
0083     CARD32  pad4     B32;
0084     CARD32  pad5     B32;
0085  } xSecurityGenerateAuthorizationReply;
0086 #define sz_xSecurityGenerateAuthorizationReply      32
0087 
0088 typedef struct {
0089     CARD8       reqType;
0090     CARD8       securityReqType;
0091     CARD16      length B16;
0092     CARD32  authId B32;
0093 } xSecurityRevokeAuthorizationReq;
0094 #define sz_xSecurityRevokeAuthorizationReq 8
0095 
0096 typedef struct _xSecurityAuthorizationRevokedEvent {
0097     BYTE    type;
0098     BYTE    detail;
0099     CARD16  sequenceNumber B16;
0100     CARD32  authId B32;
0101     CARD32  pad0     B32;
0102     CARD32  pad1     B32;
0103     CARD32  pad2     B32;
0104     CARD32  pad3     B32;
0105     CARD32  pad4     B32;
0106     CARD32  pad5     B32;
0107 } xSecurityAuthorizationRevokedEvent;
0108 #define sz_xSecurityAuthorizationRevokedEvent 32
0109 
0110 #endif /* _SECURPROTO_H */