Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / lib / tt / lib / api / c / api_auth.C
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
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)
10  * any later version.
11  *
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
16  * details.
17  *
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
22  */
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
29  *
30  * api_mp.cc
31  *
32  * Copyright (c) 1990 by Sun Microsystems, Inc.
33  * 
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.
37  */
38
39 #include "api/c/tt_c.h"
40 #include "api/c/api_auth.h"
41
42 char *
43 tt_AuthFileName()
44 {
45     return _tt_AuthFileName();
46 }
47
48 int
49 tt_LockAuthFile(char *file_name, int retries, int timeout, long dead)
50 {
51     return _tt_LockAuthFile(file_name, retries, timeout, dead);
52 }
53
54 void
55 tt_UnlockAuthFile(char *file_name)
56 {
57     _tt_UnlockAuthFile(file_name);
58 }
59
60 Tt_AuthFileEntry
61 tt_ReadAuthFileEntry(FILE *auth_file)
62 {
63     return _tt_ReadAuthFileEntry(auth_file);
64 }
65
66 void
67 tt_FreeAuthFileEntry(Tt_AuthFileEntry auth)
68 {
69     _tt_FreeAuthFileEntry(auth);
70 }
71
72 int
73 tt_WriteAuthFileEntry(FILE *auth_file, Tt_AuthFileEntry auth)
74 {
75     return _tt_WriteAuthFileEntry(auth_file, auth);
76 }
77
78 Tt_AuthFileEntry
79 tt_GetAuthFileEntry(char *protocol_name, char *network_id, char *auth_name)
80 {
81     return _tt_GetAuthFileEntry(protocol_name, network_id, auth_name);
82 }
83
84 char *
85 tt_GenerateMagicCookie(int len)
86 {
87     return _tt_GenerateMagicCookie(len);
88 }