File indexing completed on 2025-01-18 10:14:19
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
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
0068
0069
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