|
||||
File indexing completed on 2025-01-18 10:14:19
0001 /* 0002 Copyright 1996, 1998 The Open Group 0003 0004 Permission to use, copy, modify, distribute, and sell this software and its 0005 documentation for any purpose is hereby granted without fee, provided that 0006 the above copyright notice appear in all copies and that both that 0007 copyright notice and this permission notice appear in supporting 0008 documentation. 0009 0010 The above copyright notice and this permission notice shall be included 0011 in all copies or substantial portions of the Software. 0012 0013 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 0014 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 0015 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 0016 IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 0017 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 0018 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 0019 OTHER DEALINGS IN THE SOFTWARE. 0020 0021 Except as contained in this notice, the name of The Open Group shall 0022 not be used in advertising or otherwise to promote the sale, use or 0023 other dealings in this Software without prior written authorization 0024 from The Open Group. 0025 */ 0026 0027 #ifndef _SECURITY_H 0028 #define _SECURITY_H 0029 0030 #define _XAUTH_STRUCT_ONLY 0031 #include <X11/Xauth.h> 0032 0033 #include <X11/extensions/secur.h> 0034 0035 _XFUNCPROTOBEGIN 0036 0037 Status XSecurityQueryExtension ( 0038 Display *dpy, 0039 int *major_version_return, 0040 int *minor_version_return); 0041 0042 Xauth *XSecurityAllocXauth(void); 0043 0044 void XSecurityFreeXauth(Xauth *auth); 0045 0046 /* type for returned auth ids */ 0047 typedef unsigned long XSecurityAuthorization; 0048 0049 typedef struct { 0050 unsigned int timeout; 0051 unsigned int trust_level; 0052 XID group; 0053 long event_mask; 0054 } XSecurityAuthorizationAttributes; 0055 0056 Xauth *XSecurityGenerateAuthorization( 0057 Display *dpy, 0058 Xauth *auth_in, 0059 unsigned long valuemask, 0060 XSecurityAuthorizationAttributes *attributes, 0061 XSecurityAuthorization *auth_id_return); 0062 0063 Status XSecurityRevokeAuthorization( 0064 Display *dpy, 0065 XSecurityAuthorization auth_id); 0066 0067 _XFUNCPROTOEND 0068 0069 typedef struct { 0070 int type; /* event base + XSecurityAuthorizationRevoked */ 0071 unsigned long serial; /* # of last request processed by server */ 0072 Bool send_event; /* true if this came from a SendEvent request */ 0073 Display *display; /* Display the event was read from */ 0074 XSecurityAuthorization auth_id; /* revoked authorization id */ 0075 } XSecurityAuthorizationRevokedEvent; 0076 0077 #endif /* _SECURITY_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |