2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 //%% (c) Copyright 1993, 1994 Hewlett-Packard Company
24 //%% (c) Copyright 1993, 1994 International Business Machines Corp.
25 //%% (c) Copyright 1993, 1994 Sun Microsystems, Inc.
26 //%% (c) Copyright 1993, 1994 Novell, Inc.
27 //%% $TOG: api_auth.C /main/1 1999/08/30 13:41:59 mgreess $
28 /* @(#)api_mp.C 1.48 93/07/30
32 * Copyright (c) 1990 by Sun Microsystems, Inc.
34 * This file contains API functions related to the MP. For
35 * each API function named tt_<name> there is a _tt_<name> function in
36 * some file named api_mp_*.cc.
39 #include "api/c/tt_c.h"
40 #include "api/c/api_auth.h"
45 return _tt_AuthFileName();
49 tt_LockAuthFile(char *file_name, int retries, int timeout, long dead)
51 return _tt_LockAuthFile(file_name, retries, timeout, dead);
55 tt_UnlockAuthFile(char *file_name)
57 _tt_UnlockAuthFile(file_name);
61 tt_ReadAuthFileEntry(FILE *auth_file)
63 return _tt_ReadAuthFileEntry(auth_file);
67 tt_FreeAuthFileEntry(Tt_AuthFileEntry auth)
69 _tt_FreeAuthFileEntry(auth);
73 tt_WriteAuthFileEntry(FILE *auth_file, Tt_AuthFileEntry auth)
75 return _tt_WriteAuthFileEntry(auth_file, auth);
79 tt_GetAuthFileEntry(char *protocol_name, char *network_id, char *auth_name)
81 return _tt_GetAuthFileEntry(protocol_name, network_id, auth_name);
85 tt_GenerateMagicCookie(int len)
87 return _tt_GenerateMagicCookie(len);