202f6a1400bcfc57b431fd87ca4df8e2d09177be
[krb5.git] / src / include / krb5 / los-proto.h
1 /*
2  * include/krb5/los-proto.h
3  *
4  * Copyright 1990,1991 by the Massachusetts Institute of Technology.
5  * All Rights Reserved.
6  *
7  * Export of this software from the United States of America may
8  *   require a specific license from the United States Government.
9  *   It is the responsibility of any person or organization contemplating
10  *   export to obtain such a license before exporting.
11  * 
12  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
13  * distribute this software and its documentation for any purpose and
14  * without fee is hereby granted, provided that the above copyright
15  * notice appear in all copies and that both that copyright notice and
16  * this permission notice appear in supporting documentation, and that
17  * the name of M.I.T. not be used in advertising or publicity pertaining
18  * to distribution of the software without specific, written prior
19  * permission.  M.I.T. makes no representations about the suitability of
20  * this software for any purpose.  It is provided "as is" without express
21  * or implied warranty.
22  * 
23  *
24  * Function prototypes for Kerberos V5 library (libos)
25  */
26
27 #ifndef KRB5_LIBOS_PROTO__
28 #define KRB5_LIBOS_PROTO__
29
30 #include <stdio.h>
31
32 krb5_error_code INTERFACE krb5_init_os_context
33         PROTOTYPE((krb5_context));
34 void INTERFACE krb5_free_os_context
35         PROTOTYPE((krb5_context));
36
37 /* libos.spec */
38 krb5_error_code INTERFACE krb5_read_password
39         PROTOTYPE((krb5_context,
40                    char *,
41                    char *,
42                    char *,
43                    int * ));
44 krb5_error_code INTERFACE krb5_lock_file
45         PROTOTYPE((krb5_context,
46                    FILE *,
47                    char *,
48                    int  ));
49 krb5_error_code INTERFACE krb5_unlock_file
50         PROTOTYPE((krb5_context,
51                    FILE *,
52                    char * ));
53 int INTERFACE krb5_net_read
54         PROTOTYPE((krb5_context,
55                    int ,
56                    char *,
57                    int  ));
58 int INTERFACE krb5_net_write
59         PROTOTYPE((krb5_context,
60                    int ,
61                    const char *,
62                    int  ));
63 krb5_error_code INTERFACE krb5_sendto_kdc
64         PROTOTYPE((krb5_context,
65                    const krb5_data *,
66                    const krb5_data *,
67                    krb5_data * ));
68 krb5_error_code INTERFACE krb5_get_krbhst
69         PROTOTYPE((krb5_context,
70                    const krb5_data *,
71                    char *** ));
72 krb5_error_code INTERFACE krb5_free_krbhst
73         PROTOTYPE((krb5_context,
74                    char * const * ));
75 krb5_error_code INTERFACE krb5_aname_to_localname
76         PROTOTYPE((krb5_context,
77                    krb5_const_principal,
78                    const int,
79                    char * ));
80 krb5_error_code INTERFACE krb5_get_host_realm
81         PROTOTYPE((krb5_context,
82                    const char *,
83                    char *** ));
84 krb5_error_code INTERFACE krb5_free_host_realm
85         PROTOTYPE((krb5_context,
86                    char * const * ));
87 krb5_error_code INTERFACE krb5_get_realm_domain
88         PROTOTYPE((krb5_context,
89                    const char *,
90                    char ** ));
91 krb5_boolean INTERFACE krb5_kuserok
92         PROTOTYPE((krb5_context,
93                    krb5_principal, const char *));
94 krb5_error_code INTERFACE krb5_random_confounder
95         PROTOTYPE((int,
96                    krb5_pointer ));
97 krb5_error_code INTERFACE krb5_gen_replay_name
98     PROTOTYPE((krb5_context,
99                    const krb5_address *,
100                const char *,
101                char **));
102 krb5_error_code INTERFACE krb5_gen_portaddr
103     PROTOTYPE((krb5_context,
104                    const krb5_address *,
105                krb5_const_pointer,
106                krb5_address **));
107 krb5_error_code INTERFACE krb5_create_secure_file
108         PROTOTYPE((krb5_context,
109                    const char * pathname));
110 krb5_error_code INTERFACE krb5_sync_disk_file
111         PROTOTYPE((krb5_context,
112                    FILE *fp));
113
114
115 krb5_error_code INTERFACE krb5_read_message 
116         PROTOTYPE((krb5_context,
117                    krb5_pointer, 
118                    krb5_data *));
119 krb5_error_code INTERFACE krb5_write_message 
120         PROTOTYPE((krb5_context,
121                    krb5_pointer, 
122                    krb5_data *));
123
124 krb5_error_code INTERFACE krb5_os_init_context
125         PROTOTYPE((krb5_context));
126
127 void INTERFACE krb5_os_free_context
128         PROTOTYPE((krb5_context));
129
130 krb5_error_code krb5_find_config_files
131         PROTOTYPE(());
132
133 #endif /* KRB5_LIBOS_PROTO__ */