VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/libXext-1.3.1/X11/extensions/security.h@ 43280

Last change on this file since 43280 was 43280, checked in by vboxsync, 12 years ago

Additions/x11/x11include: added X.Org libXext include files.

  • Property svn:eol-style set to native
File size: 2.4 KB
Line 
1/*
2Copyright 1996, 1998 The Open Group
3
4Permission to use, copy, modify, distribute, and sell this software and its
5documentation for any purpose is hereby granted without fee, provided that
6the above copyright notice appear in all copies and that both that
7copyright notice and this permission notice appear in supporting
8documentation.
9
10The above copyright notice and this permission notice shall be included
11in all copies or substantial portions of the Software.
12
13THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
14OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
17OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
18ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
19OTHER DEALINGS IN THE SOFTWARE.
20
21Except as contained in this notice, the name of The Open Group shall
22not be used in advertising or otherwise to promote the sale, use or
23other dealings in this Software without prior written authorization
24from The Open Group.
25*/
26
27#ifndef _SECURITY_H
28#define _SECURITY_H
29
30#define _XAUTH_STRUCT_ONLY
31#include <X11/Xauth.h>
32
33#include <X11/extensions/secur.h>
34
35_XFUNCPROTOBEGIN
36
37Status XSecurityQueryExtension (
38 Display *dpy,
39 int *major_version_return,
40 int *minor_version_return);
41
42Xauth *XSecurityAllocXauth(void);
43
44void XSecurityFreeXauth(Xauth *auth);
45
46/* type for returned auth ids */
47typedef unsigned long XSecurityAuthorization;
48
49typedef struct {
50 unsigned int timeout;
51 unsigned int trust_level;
52 XID group;
53 long event_mask;
54} XSecurityAuthorizationAttributes;
55
56Xauth *XSecurityGenerateAuthorization(
57 Display *dpy,
58 Xauth *auth_in,
59 unsigned long valuemask,
60 XSecurityAuthorizationAttributes *attributes,
61 XSecurityAuthorization *auth_id_return);
62
63Status XSecurityRevokeAuthorization(
64 Display *dpy,
65 XSecurityAuthorization auth_id);
66
67_XFUNCPROTOEND
68
69typedef struct {
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;
76
77#endif /* _SECURITY_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette