2 Copyright 1996, 1998 The Open Group
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
10 The above copyright notice and this permission notice shall be included
11 in all copies or substantial portions of the Software.
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.
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
30 #define _XAUTH_STRUCT_ONLY
31 #include <X11/Xauth.h>
33 #include <X11/extensions/secur.h>
37 Status XSecurityQueryExtension (
39 int *major_version_return,
40 int *minor_version_return);
42 Xauth *XSecurityAllocXauth(void);
44 void XSecurityFreeXauth(Xauth *auth);
46 /* type for returned auth ids */
47 typedef unsigned long XSecurityAuthorization;
51 unsigned int trust_level;
54 } XSecurityAuthorizationAttributes;
56 Xauth *XSecurityGenerateAuthorization(
59 unsigned long valuemask,
60 XSecurityAuthorizationAttributes *attributes,
61 XSecurityAuthorization *auth_id_return);
63 Status XSecurityRevokeAuthorization(
65 XSecurityAuthorization auth_id);
70 int type; /* event base + XSecurityAuthorizationRevoked */
71 unsigned long serial; /* # of last request processed by server */
72 Bool send_event; /* true if this came from a SendEvent request */
73 Display *display; /* Display the event was read from */
74 XSecurityAuthorization auth_id; /* revoked authorization id */
75 } XSecurityAuthorizationRevokedEvent;
77 #endif /* _SECURITY_H */