]> git.sesse.net Git - rdpsrv/blob - Xserver/include/extensions/securstr.h
Support RDP5 logon packets.
[rdpsrv] / Xserver / include / extensions / securstr.h
1 /* $XConsortium: securstr.h /main/4 1996/11/12 12:17:47 swick $ */
2 /*
3 Copyright (c) 1996  X Consortium
4
5 Permission is hereby granted, free of charge, to any person obtaining
6 a copy of this software and associated documentation files (the
7 "Software"), to deal in the Software without restriction, including
8 without limitation the rights to use, copy, modify, merge, publish,
9 distribute, sublicense, and sell copies of the Software, and to
10 permit persons to whom the Software is furnished to do so, subject to
11 the following conditions:
12
13 The above copyright notice and this permission notice shall be included
14 in all copies or substantial portions of the Software.
15
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
20 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 OTHER DEALINGS IN THE SOFTWARE.
23
24 Except as contained in this notice, the name of the X Consortium shall
25 not be used in advertising or otherwise to promote the sale, use or
26 other dealings in this Software without prior written authorization
27 from the X Consortium.
28 */
29
30 #ifndef _SECURSTR_H
31 #define _SECURSTR_H
32
33 #include "security.h"
34
35 #define SECURITY_EXTENSION_NAME         "SECURITY"
36 #define SECURITY_MAJOR_VERSION          1
37 #define SECURITY_MINOR_VERSION          0
38
39 #define X_SecurityQueryVersion          0
40 #define X_SecurityGenerateAuthorization 1
41 #define X_SecurityRevokeAuthorization   2
42
43 typedef struct {
44     CARD8       reqType;
45     CARD8       securityReqType;
46     CARD16      length B16;
47     CARD16      majorVersion B16;
48     CARD16      minorVersion B16;
49 } xSecurityQueryVersionReq;
50 #define sz_xSecurityQueryVersionReq     8
51
52 typedef struct {
53     CARD8   type;
54     CARD8   pad0;
55     CARD16  sequenceNumber B16;
56     CARD32  length       B32;
57     CARD16  majorVersion B16;
58     CARD16  minorVersion B16;
59     CARD32  pad1         B32;
60     CARD32  pad2         B32;
61     CARD32  pad3         B32;
62     CARD32  pad4         B32;
63     CARD32  pad5         B32;
64  } xSecurityQueryVersionReply;
65 #define sz_xSecurityQueryVersionReply   32
66
67 typedef struct {
68     CARD8       reqType;
69     CARD8       securityReqType;
70     CARD16      length B16;
71     CARD16      nbytesAuthProto B16;
72     CARD16      nbytesAuthData B16;
73     CARD32      valueMask B32; 
74     /* auth protocol name padded to 4 bytes */
75     /* auth protocol data padded to 4 bytes */
76     /* list of CARD32 values, if any */
77 } xSecurityGenerateAuthorizationReq;
78 #define sz_xSecurityGenerateAuthorizationReq 12
79
80 typedef struct {
81     CARD8   type;
82     CARD8   pad0;
83     CARD16  sequenceNumber B16;
84     CARD32  length       B32;
85     CARD32  authId       B32;
86     CARD16  dataLength   B16;
87     CARD16  pad1         B16;
88     CARD32  pad2         B32;
89     CARD32  pad3         B32;
90     CARD32  pad4         B32;
91     CARD32  pad5         B32;
92  } xSecurityGenerateAuthorizationReply;
93 #define sz_xSecurityGenerateAuthorizationReply          32
94
95 typedef struct {
96     CARD8       reqType;
97     CARD8       securityReqType;
98     CARD16      length B16;
99     CARD32      authId B32;
100 } xSecurityRevokeAuthorizationReq;
101 #define sz_xSecurityRevokeAuthorizationReq 8
102
103 typedef struct _xSecurityAuthorizationRevokedEvent {
104     BYTE        type;
105     BYTE        detail;
106     CARD16      sequenceNumber B16;
107     CARD32      authId B32;
108     CARD32      pad0     B32;
109     CARD32      pad1     B32;
110     CARD32      pad2     B32;
111     CARD32      pad3     B32;
112     CARD32      pad4     B32;
113     CARD32      pad5     B32;
114 } xSecurityAuthorizationRevokedEvent;
115 #define sz_xSecurityAuthorizationRevokedEvent 32
116
117 #endif /* _SECURSTR_H */