| 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 _SECURSTR_H |
| 28 |
#define _SECURSTR_H |
| 29 |
|
| 30 |
#include <nx-X11/extensions/security.h> |
| 31 |
|
| 32 |
#define SECURITY_EXTENSION_NAME "SECURITY" |
| 33 |
#define SECURITY_MAJOR_VERSION 1 |
| 34 |
#define SECURITY_MINOR_VERSION 0 |
| 35 |
|
| 36 |
#define X_SecurityQueryVersion 0 |
| 37 |
#define X_SecurityGenerateAuthorization 1 |
| 38 |
#define X_SecurityRevokeAuthorization 2 |
| 39 |
|
| 40 |
typedef struct { |
| 41 |
CARD8 reqType; |
| 42 |
CARD8 securityReqType; |
| 43 |
CARD16 length B16; |
| 44 |
CARD16 majorVersion B16; |
| 45 |
CARD16 minorVersion B16; |
| 46 |
} xSecurityQueryVersionReq; |
| 47 |
#define sz_xSecurityQueryVersionReq 8 |
| 48 |
|
| 49 |
typedef struct { |
| 50 |
CARD8 type; |
| 51 |
CARD8 pad0; |
| 52 |
CARD16 sequenceNumber B16; |
| 53 |
CARD32 length B32; |
| 54 |
CARD16 majorVersion B16; |
| 55 |
CARD16 minorVersion B16; |
| 56 |
CARD32 pad1 B32; |
| 57 |
CARD32 pad2 B32; |
| 58 |
CARD32 pad3 B32; |
| 59 |
CARD32 pad4 B32; |
| 60 |
CARD32 pad5 B32; |
| 61 |
} xSecurityQueryVersionReply; |
| 62 |
#define sz_xSecurityQueryVersionReply 32 |
| 63 |
|
| 64 |
typedef struct { |
| 65 |
CARD8 reqType; |
| 66 |
CARD8 securityReqType; |
| 67 |
CARD16 length B16; |
| 68 |
CARD16 nbytesAuthProto B16; |
| 69 |
CARD16 nbytesAuthData B16; |
| 70 |
CARD32 valueMask B32; |
| 71 |
/* auth protocol name padded to 4 bytes */ |
| 72 |
/* auth protocol data padded to 4 bytes */ |
| 73 |
/* list of CARD32 values, if any */ |
| 74 |
} xSecurityGenerateAuthorizationReq; |
| 75 |
#define sz_xSecurityGenerateAuthorizationReq 12 |
| 76 |
|
| 77 |
typedef struct { |
| 78 |
CARD8 type; |
| 79 |
CARD8 pad0; |
| 80 |
CARD16 sequenceNumber B16; |
| 81 |
CARD32 length B32; |
| 82 |
CARD32 authId B32; |
| 83 |
CARD16 dataLength B16; |
| 84 |
CARD16 pad1 B16; |
| 85 |
CARD32 pad2 B32; |
| 86 |
CARD32 pad3 B32; |
| 87 |
CARD32 pad4 B32; |
| 88 |
CARD32 pad5 B32; |
| 89 |
} xSecurityGenerateAuthorizationReply; |
| 90 |
#define sz_xSecurityGenerateAuthorizationReply 32 |
| 91 |
|
| 92 |
typedef struct { |
| 93 |
CARD8 reqType; |
| 94 |
CARD8 securityReqType; |
| 95 |
CARD16 length B16; |
| 96 |
CARD32 authId B32; |
| 97 |
} xSecurityRevokeAuthorizationReq; |
| 98 |
#define sz_xSecurityRevokeAuthorizationReq 8 |
| 99 |
|
| 100 |
typedef struct _xSecurityAuthorizationRevokedEvent { |
| 101 |
BYTE type; |
| 102 |
BYTE detail; |
| 103 |
CARD16 sequenceNumber B16; |
| 104 |
CARD32 authId B32; |
| 105 |
CARD32 pad0 B32; |
| 106 |
CARD32 pad1 B32; |
| 107 |
CARD32 pad2 B32; |
| 108 |
CARD32 pad3 B32; |
| 109 |
CARD32 pad4 B32; |
| 110 |
CARD32 pad5 B32; |
| 111 |
} xSecurityAuthorizationRevokedEvent; |
| 112 |
#define sz_xSecurityAuthorizationRevokedEvent 32 |
| 113 |
|
| 114 |
#endif /* _SECURSTR_H */ |