Imported Upstream version 1.17
[platform/upstream/krb5.git] / src / include / gssrpc / rename.h
1 /* include/gssrpc/rename.h */
2 /*
3  * Copyright (C) 2004 by the Massachusetts Institute of Technology.
4  * All rights reserved.
5  *
6  * Export of this software from the United States of America may
7  *   require a specific license from the United States Government.
8  *   It is the responsibility of any person or organization contemplating
9  *   export to obtain such a license before exporting.
10  *
11  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
12  * distribute this software and its documentation for any purpose and
13  * without fee is hereby granted, provided that the above copyright
14  * notice appear in all copies and that both that copyright notice and
15  * this permission notice appear in supporting documentation, and that
16  * the name of M.I.T. not be used in advertising or publicity pertaining
17  * to distribution of the software without specific, written prior
18  * permission.  Furthermore if you modify this software you must label
19  * your software as modified software and not distribute it in such a
20  * fashion that it might be confused with the original M.I.T. software.
21  * M.I.T. makes no representations about the suitability of
22  * this software for any purpose.  It is provided "as is" without express
23  * or implied warranty.
24  */
25
26 /*
27  *
28  * Namespace mangling for various purposes.
29  *
30  * Symbols in the object code need to be renamed to not conflict with
31  * an OS-provided RPC implementation.  Without renaming, the conflicts
32  * can cause problems with things like RPC-enabled NSS
33  * implementations.
34  *
35  * Symbols in headers should not conflict with implementation-reserved
36  * namespace (prefixes "_[A-Z_]" for any purpose; prefix "_"
37  * for file scope identifiers and tag names), or unnecessarily impinge
38  * on user namespace.
39  *
40  * The renaming of the header directory is done to avoid problems when
41  * the OS header files include <rpc/foo.h> and might get ours instead.
42  * OS vendors should replace all the <gssrpc/foo.h> inclusions with
43  * <rpc/foo.h> inclusions, as appropriate.  Additionally, vendors
44  * should probably put some symbols into the implementation namespace.
45  *
46  * For example, inclusion protection should change from "GSSRPC_*_H"
47  * to "_RPC_*_H", struct tags should get "__" prefixes, etc.
48  *
49  * This implementation reserves the object code prefix "gssrpc_".
50  * External names in the RPC API not beginning with "_" get renamed
51  * with the prefix "gssrpc_" via #define, e.g., "foo" -> "gssrpc_foo".
52  * External names in the RPC API beginning with "_" get textually
53  * rewritten.
54  */
55
56 #ifndef GSSRPC_RENAME_H
57 #define GSSRPC_RENAME_H
58
59 /* auth.h */
60
61 #define xdr_des_block           gssrpc_xdr_des_block
62
63 #define authany_wrap            gssrpc_authany_wrap
64 #define authany_unwrap          gssrpc_authany_unwrap
65
66 #define authunix_create         gssrpc_authunix_create
67 #define authunix_create_default gssrpc_authunix_create_default
68 #define authnone_create         gssrpc_authnone_create
69 #define authdes_create          gssrpc_authdes_create
70 #define xdr_opaque_auth         gssrpc_xdr_opaque_auth
71
72 /* auth_gss.c */
73
74 #define auth_debug_gss          gssrpc_auth_debug_gss
75 #define misc_debug_gss          gssrpc_misc_debug_gss
76
77 /* auth_gss.h */
78
79 #define xdr_rpc_gss_buf         gssrpc_xdr_rpc_gss_buf
80 #define xdr_rpc_gss_cred        gssrpc_xdr_rpc_gss_cred
81 #define xdr_rpc_gss_init_args   gssrpc_xdr_rpc_gss_init_args
82 #define xdr_rpc_gss_init_res    gssrpc_xdr_rpc_gss_init_res
83 #define xdr_rpc_gss_data        gssrpc_xdr_rpc_gss_data
84 #define xdr_rpc_gss_wrap_data   gssrpc_xdr_rpc_gss_wrap_data
85 #define xdr_rpc_gss_unwrap_data gssrpc_xdr_rpc_gss_unwrap_data
86
87 #define authgss_create          gssrpc_authgss_create
88 #define authgss_create_default  gssrpc_authgss_create_default
89 #define authgss_get_private_data        gssrpc_authgss_get_private_data
90 #define authgss_service         gssrpc_authgss_service
91
92 #ifdef GSSRPC__IMPL
93 #define log_debug               gssrpc_log_debug
94 #define log_status              gssrpc_log_status
95 #define log_hexdump             gssrpc_log_hexdump
96 #endif
97
98 /* auth_gssapi.c */
99
100 #define auth_debug_gssapi       gssrpc_auth_debug_gssapi
101 #define misc_debug_gssapi       gssrpc_misc_debug_gssapi
102
103 /* auth_gssapi.h */
104
105 #define xdr_gss_buf             gssrpc_xdr_gss_buf
106 #define xdr_authgssapi_creds    gssrpc_xdr_authgssapi_creds
107 #define xdr_authgssapi_init_arg gssrpc_xdr_authgssapi_init_arg
108 #define xdr_authgssapi_init_res gssrpc_xdr_authgssapi_init_res
109
110 #define auth_gssapi_wrap_data   gssrpc_auth_gssapi_wrap_data
111 #define auth_gssapi_unwrap_data gssrpc_auth_gssapi_unwrap_data
112 #define auth_gssapi_create      gssrpc_auth_gssapi_create
113 #define auth_gssapi_create_default      gssrpc_auth_gssapi_create_default
114 #define auth_gssapi_display_status      gssrpc_auth_gssapi_display_status
115 #define auth_gssapi_seal_seq    gssrpc_auth_gssapi_seal_seq
116 #define auth_gssapi_unseal_seq  gssrpc_auth_gssapi_unseal_seq
117
118 #define svcauth_gssapi_set_names        gssrpc_svcauth_gssapi_set_names
119 #define svcauth_gssapi_unset_names      gssrpc_svcauth_gssapi_unset_names
120 #define svcauth_gssapi_set_log_badauth_func     gssrpc_svcauth_gssapi_set_log_badauth_func
121 #define svcauth_gssapi_set_log_badauth2_func    gssrpc_svcauth_gssapi_set_log_badauth2_func
122 #define svcauth_gssapi_set_log_badverf_func     gssrpc_svcauth_gssapi_set_log_badverf_func
123 #define svcauth_gssapi_set_log_miscerr_func     gssrpc_svcauth_gssapi_set_log_miscerr_func
124
125 #define svcauth_gss_set_log_badauth_func        gssrpc_svcauth_gss_set_log_badauth_func
126 #define svcauth_gss_set_log_badauth2_func       gssrpc_svcauth_gss_set_log_badauth2_func
127 #define svcauth_gss_set_log_badverf_func        gssrpc_svcauth_gss_set_log_badverf_func
128 #define svcauth_gss_set_log_miscerr_func        gssrpc_svcauth_gss_set_log_miscerr_func
129
130 /* auth_unix.h */
131
132 #define xdr_authunix_parms      gssrpc_xdr_authunix_parms
133
134 /* clnt.h */
135
136 #define clntraw_create          gssrpc_clntraw_create
137 #define clnt_create             gssrpc_clnt_create
138 #define clnttcp_create          gssrpc_clnttcp_create
139 #define clntudp_create          gssrpc_clntudp_create
140 #define clntudp_bufcreate       gssrpc_clntudp_bufcreate
141 #define clnt_pcreateerror       gssrpc_clnt_pcreateerror
142 #define clnt_spcreateerror      gssrpc_clnt_spcreateerror
143 #define clnt_perrno             gssrpc_clnt_perrno
144 #define clnt_perror             gssrpc_clnt_perror
145 #define clnt_sperror            gssrpc_clnt_sperror
146 /* XXX do we need to rename the struct? */
147 #define rpc_createerr           gssrpc_rpc_createrr
148 #define clnt_sperrno            gssrpc_clnt_sperrno
149
150 /* pmap_clnt.h */
151
152 #define pmap_set                gssrpc_pmap_set
153 #define pmap_unset              gssrpc_pmap_unset
154 #define pmap_getmaps            gssrpc_pmap_getmaps
155 #define pmap_rmtcall            gssrpc_pmap_rmtcall
156 #define clnt_broadcast          gssrpc_clnt_broadcast
157 #define pmap_getport            gssrpc_pmap_getport
158
159 /* pmap_prot.h */
160
161 #define xdr_pmap                gssrpc_xdr_pmap
162 #define xdr_pmaplist            gssrpc_xdr_pmaplist
163
164 /* pmap_rmt.h */
165
166 #define xdr_rmtcall_args        gssrpc_xdr_rmtcall_args
167 #define xdr_rmtcallres          gssrpc_xdr_rmtcallres
168
169 /* rpc.h */
170
171 #define get_myaddress           gssrpc_get_myaddress
172 #define bindresvport            gssrpc_bindresvport
173 #define bindresvport_sa         gssrpc_bindresvport_sa
174 #define callrpc                 gssrpc_callrpc
175 #define getrpcport              gssrpc_getrpcport
176
177 /* rpc_msg.h */
178
179 #define xdr_callmsg             gssrpc_xdr_callmsg
180 #define xdr_callhdr             gssrpc_xdr_callhdr
181 #define xdr_replymsg            gssrpc_xdr_replymsg
182 #define xdr_accepted_reply      gssrpc_xdr_accepted_reply
183 #define xdr_rejected_reply      gssrpc_xdr_rejected_reply
184
185 /* svc.h */
186
187 #define svc_register            gssrpc_svc_register
188 #define registerrpc             gssrpc_registerrpc
189 #define svc_unregister          gssrpc_svc_unregister
190 #define xprt_register           gssrpc_xprt_register
191 #define xprt_unregister         gssrpc_xprt_unregister
192
193 #define svc_sendreply           gssrpc_svc_sendreply
194 #define svcerr_decode           gssrpc_svcerr_decode
195 #define svcerr_weakauth         gssrpc_svcerr_weakauth
196 #define svcerr_noproc           gssrpc_svcerr_noproc
197 #define svcerr_progvers         gssrpc_svcerr_progvers
198 #define svcerr_auth             gssrpc_svcerr_auth
199 #define svcerr_noprog           gssrpc_svcerr_noprog
200 #define svcerr_systemerr        gssrpc_svcerr_systemerr
201
202 #define svc_maxfd               gssrpc_svc_maxfd
203 #define svc_fdset               gssrpc_svc_fdset
204 #define svc_fds                 gssrpc_svc_fds
205
206 #define rpctest_service         gssrpc_rpctest_service
207
208 #define svc_getreq              gssrpc_svc_getreq
209 #define svc_getreqset           gssrpc_svc_getreqset
210 #define svc_getreqset2          gssrpc_svc_getreqset2
211 #define svc_run                 gssrpc_svc_run
212
213 #define svcraw_create           gssrpc_svcraw_create
214
215 #define svcudp_create           gssrpc_svcudp_create
216 #define svcudp_bufcreate        gssrpc_svcudp_bufcreate
217 #define svcudp_enablecache      gssrpc_svcudp_enablecache
218
219 #define svctcp_create           gssrpc_svctcp_create
220
221 #define svcfd_create            gssrpc_svcfd_create
222
223 /* svc_auth.h */
224
225 #define svc_auth_none_ops       gssrpc_svc_auth_none_ops
226 #define svc_auth_gssapi_ops     gssrpc_svc_auth_gssapi_ops
227 #define svc_auth_gss_ops        gssrpc_svc_auth_gss_ops
228
229 #define svcauth_gss_set_svc_name        gssrpc_svcauth_gss_set_svc_name
230 #define svcauth_gss_get_principal       gssrpc_svcauth_gss_get_principal
231
232 /* svc_auth_gss.c */
233
234 #define svc_debug_gss           gssrpc_svc_debug_gss
235
236 /* svc_auth_gssapi.c */
237
238 #define svc_debug_gssapi        gssrpc_svc_debug_gssapi
239
240 /* svc_auth_none.c */
241
242 #define svc_auth_none           gssrpc_svc_auth_none
243
244 /* xdr.h */
245
246 #define xdr_void        gssrpc_xdr_void
247 #define xdr_int         gssrpc_xdr_int
248 #define xdr_u_int       gssrpc_xdr_u_int
249 #define xdr_long        gssrpc_xdr_long
250 #define xdr_u_long      gssrpc_xdr_u_long
251 #define xdr_short       gssrpc_xdr_short
252 #define xdr_u_short     gssrpc_xdr_u_short
253 #define xdr_bool        gssrpc_xdr_bool
254 #define xdr_enum        gssrpc_xdr_enum
255 #define xdr_array       gssrpc_xdr_array
256 #define xdr_bytes       gssrpc_xdr_bytes
257 #define xdr_opaque      gssrpc_xdr_opaque
258 #define xdr_string      gssrpc_xdr_string
259 #define xdr_union       gssrpc_xdr_union
260 #define xdr_char        gssrpc_xdr_char
261 #define xdr_u_char      gssrpc_xdr_u_char
262 #define xdr_vector      gssrpc_xdr_vector
263 #define xdr_float       gssrpc_xdr_float
264 #define xdr_double      gssrpc_xdr_double
265 #define xdr_reference   gssrpc_xdr_reference
266 #define xdr_pointer     gssrpc_xdr_pointer
267 #define xdr_wrapstring  gssrpc_xdr_wrapstring
268 #define xdr_free        gssrpc_xdr_free
269
270 #define xdr_sizeof      gssrpc_xdr_sizeof
271
272 #define xdr_netobj      gssrpc_xdr_netobj
273 #define xdr_int32       gssrpc_xdr_int32
274 #define xdr_u_int32     gssrpc_xdr_u_int32
275
276 #define xdralloc_create         gssrpc_xdralloc_create
277 #define xdralloc_release        gssrpc_xdralloc_release
278 #define xdralloc_getdata        gssrpc_xdralloc_getdata
279
280 #define xdrmem_create           gssrpc_xdrmem_create
281 #define xdrstdio_create         gssrpc_xdrstdio_create
282 #define xdrrec_create           gssrpc_xdrrec_create
283 #define xdrrec_endofrecord      gssrpc_xdrrec_endofrecord
284 #define xdrrec_skiprecord       gssrpc_xdrrec_skiprecord
285 #define xdrrec_eof              gssrpc_xdrrec_eof
286
287 #endif /* !defined(GSSRPC_RENAME_H) */