1 /******************************************************************************
4 Copyright 1993, 1998 The Open Group
6 Permission to use, copy, modify, distribute, and sell this software and its
7 documentation for any purpose is hereby granted without fee, provided that
8 the above copyright notice appear in all copies and that both that
9 copyright notice and this permission notice appear in supporting
12 The above copyright notice and this permission notice shall be included in
13 all copies or substantial portions of the Software.
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 Except as contained in this notice, the name of The Open Group shall not be
23 used in advertising or otherwise to promote the sale, use or other dealings
24 in this Software without prior written authorization from The Open Group.
26 Author: Ralph Mor, X Consortium
27 ******************************************************************************/
32 #include <X11/Xfuncproto.h>
39 * Data structure for entry in ICE authority file
44 unsigned short protocol_data_length;
48 unsigned short auth_data_length;
54 * Authentication data maintained in memory.
61 unsigned short auth_data_length;
67 * Return values from IceLockAuthFile
70 #define IceAuthLockSuccess 0 /* lock succeeded */
71 #define IceAuthLockError 1 /* lock unexpectely failed, check errno */
72 #define IceAuthLockTimeout 2 /* lock failed, timeouts expired */
79 extern char *IceAuthFileName (
83 extern int IceLockAuthFile (
84 char * /* file_name */,
90 extern void IceUnlockAuthFile (
91 char * /* file_name */
94 extern IceAuthFileEntry *IceReadAuthFileEntry (
95 FILE * /* auth_file */
98 extern void IceFreeAuthFileEntry (
99 IceAuthFileEntry * /* auth */
102 extern Status IceWriteAuthFileEntry (
103 FILE * /* auth_file */,
104 IceAuthFileEntry * /* auth */
107 extern IceAuthFileEntry *IceGetAuthFileEntry (
108 const char * /* protocol_name */,
109 const char * /* network_id */,
110 const char * /* auth_name */
113 extern char *IceGenerateMagicCookie (
117 extern void IceSetPaAuthData (
118 int /* numEntries */,
119 IceAuthDataEntry * /* entries */
124 #endif /* _ICEUTIL_H_ */