Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/crypto/krb5/src/include/gssrpc/rename.h
34914 views
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 authunix_create gssrpc_authunix_create
64
#define authunix_create_default gssrpc_authunix_create_default
65
#define authnone_create gssrpc_authnone_create
66
#define xdr_opaque_auth gssrpc_xdr_opaque_auth
67
68
/* auth_gss.c */
69
70
#define auth_debug_gss gssrpc_auth_debug_gss
71
#define misc_debug_gss gssrpc_misc_debug_gss
72
73
/* auth_gss.h */
74
75
#define xdr_rpc_gss_buf gssrpc_xdr_rpc_gss_buf
76
#define xdr_rpc_gss_cred gssrpc_xdr_rpc_gss_cred
77
#define xdr_rpc_gss_init_args gssrpc_xdr_rpc_gss_init_args
78
#define xdr_rpc_gss_init_res gssrpc_xdr_rpc_gss_init_res
79
#define xdr_rpc_gss_data gssrpc_xdr_rpc_gss_data
80
#define xdr_rpc_gss_wrap_data gssrpc_xdr_rpc_gss_wrap_data
81
#define xdr_rpc_gss_unwrap_data gssrpc_xdr_rpc_gss_unwrap_data
82
83
#define authgss_create gssrpc_authgss_create
84
#define authgss_create_default gssrpc_authgss_create_default
85
#define authgss_get_private_data gssrpc_authgss_get_private_data
86
#define authgss_service gssrpc_authgss_service
87
88
#ifdef GSSRPC__IMPL
89
#define log_debug gssrpc_log_debug
90
#define log_status gssrpc_log_status
91
#define log_hexdump gssrpc_log_hexdump
92
#endif
93
94
/* auth_gssapi.c */
95
96
#define auth_debug_gssapi gssrpc_auth_debug_gssapi
97
#define misc_debug_gssapi gssrpc_misc_debug_gssapi
98
99
/* auth_gssapi.h */
100
101
#define xdr_gss_buf gssrpc_xdr_gss_buf
102
#define xdr_authgssapi_creds gssrpc_xdr_authgssapi_creds
103
#define xdr_authgssapi_init_arg gssrpc_xdr_authgssapi_init_arg
104
#define xdr_authgssapi_init_res gssrpc_xdr_authgssapi_init_res
105
106
#define auth_gssapi_wrap_data gssrpc_auth_gssapi_wrap_data
107
#define auth_gssapi_unwrap_data gssrpc_auth_gssapi_unwrap_data
108
#define auth_gssapi_create gssrpc_auth_gssapi_create
109
#define auth_gssapi_create_default gssrpc_auth_gssapi_create_default
110
#define auth_gssapi_display_status gssrpc_auth_gssapi_display_status
111
#define auth_gssapi_seal_seq gssrpc_auth_gssapi_seal_seq
112
#define auth_gssapi_unseal_seq gssrpc_auth_gssapi_unseal_seq
113
114
#define svcauth_gssapi_set_names gssrpc_svcauth_gssapi_set_names
115
#define svcauth_gssapi_unset_names gssrpc_svcauth_gssapi_unset_names
116
#define svcauth_gssapi_set_log_badauth_func gssrpc_svcauth_gssapi_set_log_badauth_func
117
#define svcauth_gssapi_set_log_badauth2_func gssrpc_svcauth_gssapi_set_log_badauth2_func
118
#define svcauth_gssapi_set_log_badverf_func gssrpc_svcauth_gssapi_set_log_badverf_func
119
#define svcauth_gssapi_set_log_miscerr_func gssrpc_svcauth_gssapi_set_log_miscerr_func
120
121
#define svcauth_gss_set_log_badauth_func gssrpc_svcauth_gss_set_log_badauth_func
122
#define svcauth_gss_set_log_badauth2_func gssrpc_svcauth_gss_set_log_badauth2_func
123
#define svcauth_gss_set_log_badverf_func gssrpc_svcauth_gss_set_log_badverf_func
124
#define svcauth_gss_set_log_miscerr_func gssrpc_svcauth_gss_set_log_miscerr_func
125
126
/* auth_unix.h */
127
128
#define xdr_authunix_parms gssrpc_xdr_authunix_parms
129
130
/* clnt.h */
131
132
#define clntraw_create gssrpc_clntraw_create
133
#define clnt_create gssrpc_clnt_create
134
#define clnttcp_create gssrpc_clnttcp_create
135
#define clntudp_create gssrpc_clntudp_create
136
#define clntudp_bufcreate gssrpc_clntudp_bufcreate
137
#define clnt_pcreateerror gssrpc_clnt_pcreateerror
138
#define clnt_spcreateerror gssrpc_clnt_spcreateerror
139
#define clnt_perrno gssrpc_clnt_perrno
140
#define clnt_perror gssrpc_clnt_perror
141
#define clnt_sperror gssrpc_clnt_sperror
142
/* XXX do we need to rename the struct? */
143
#define rpc_createerr gssrpc_rpc_createrr
144
#define clnt_sperrno gssrpc_clnt_sperrno
145
146
/* pmap_clnt.h */
147
148
#define pmap_set gssrpc_pmap_set
149
#define pmap_unset gssrpc_pmap_unset
150
#define pmap_getmaps gssrpc_pmap_getmaps
151
#define pmap_rmtcall gssrpc_pmap_rmtcall
152
#define clnt_broadcast gssrpc_clnt_broadcast
153
#define pmap_getport gssrpc_pmap_getport
154
155
/* pmap_prot.h */
156
157
#define xdr_pmap gssrpc_xdr_pmap
158
#define xdr_pmaplist gssrpc_xdr_pmaplist
159
160
/* pmap_rmt.h */
161
162
#define xdr_rmtcall_args gssrpc_xdr_rmtcall_args
163
#define xdr_rmtcallres gssrpc_xdr_rmtcallres
164
165
/* rpc.h */
166
167
#define get_myaddress gssrpc_get_myaddress
168
#define bindresvport gssrpc_bindresvport
169
#define bindresvport_sa gssrpc_bindresvport_sa
170
#define callrpc gssrpc_callrpc
171
#define getrpcport gssrpc_getrpcport
172
173
/* rpc_msg.h */
174
175
#define xdr_callmsg gssrpc_xdr_callmsg
176
#define xdr_callhdr gssrpc_xdr_callhdr
177
#define xdr_replymsg gssrpc_xdr_replymsg
178
#define xdr_accepted_reply gssrpc_xdr_accepted_reply
179
#define xdr_rejected_reply gssrpc_xdr_rejected_reply
180
181
/* svc.h */
182
183
#define svc_register gssrpc_svc_register
184
#define registerrpc gssrpc_registerrpc
185
#define svc_unregister gssrpc_svc_unregister
186
#define xprt_register gssrpc_xprt_register
187
#define xprt_unregister gssrpc_xprt_unregister
188
189
#define svc_sendreply gssrpc_svc_sendreply
190
#define svcerr_decode gssrpc_svcerr_decode
191
#define svcerr_weakauth gssrpc_svcerr_weakauth
192
#define svcerr_noproc gssrpc_svcerr_noproc
193
#define svcerr_progvers gssrpc_svcerr_progvers
194
#define svcerr_auth gssrpc_svcerr_auth
195
#define svcerr_noprog gssrpc_svcerr_noprog
196
#define svcerr_systemerr gssrpc_svcerr_systemerr
197
198
#define svc_maxfd gssrpc_svc_maxfd
199
#define svc_fdset gssrpc_svc_fdset
200
#define svc_fds gssrpc_svc_fds
201
202
#define svc_getreq gssrpc_svc_getreq
203
#define svc_getreqset gssrpc_svc_getreqset
204
#define svc_run gssrpc_svc_run
205
206
#define svcraw_create gssrpc_svcraw_create
207
208
#define svcudp_create gssrpc_svcudp_create
209
#define svcudp_bufcreate gssrpc_svcudp_bufcreate
210
#define svcudp_enablecache gssrpc_svcudp_enablecache
211
212
#define svctcp_create gssrpc_svctcp_create
213
214
#define svcfd_create gssrpc_svcfd_create
215
216
/* svc_auth.h */
217
218
#define svc_auth_none_ops gssrpc_svc_auth_none_ops
219
#define svc_auth_gssapi_ops gssrpc_svc_auth_gssapi_ops
220
#define svc_auth_gss_ops gssrpc_svc_auth_gss_ops
221
222
#define svcauth_gss_set_svc_name gssrpc_svcauth_gss_set_svc_name
223
#define svcauth_gss_get_principal gssrpc_svcauth_gss_get_principal
224
225
/* svc_auth_gss.c */
226
227
#define svc_debug_gss gssrpc_svc_debug_gss
228
229
/* svc_auth_gssapi.c */
230
231
#define svc_debug_gssapi gssrpc_svc_debug_gssapi
232
233
/* svc_auth_none.c */
234
235
#define svc_auth_none gssrpc_svc_auth_none
236
237
/* xdr.h */
238
239
#define xdr_void gssrpc_xdr_void
240
#define xdr_int gssrpc_xdr_int
241
#define xdr_u_int gssrpc_xdr_u_int
242
#define xdr_long gssrpc_xdr_long
243
#define xdr_u_long gssrpc_xdr_u_long
244
#define xdr_short gssrpc_xdr_short
245
#define xdr_u_short gssrpc_xdr_u_short
246
#define xdr_bool gssrpc_xdr_bool
247
#define xdr_enum gssrpc_xdr_enum
248
#define xdr_array gssrpc_xdr_array
249
#define xdr_bytes gssrpc_xdr_bytes
250
#define xdr_opaque gssrpc_xdr_opaque
251
#define xdr_string gssrpc_xdr_string
252
#define xdr_union gssrpc_xdr_union
253
#define xdr_char gssrpc_xdr_char
254
#define xdr_u_char gssrpc_xdr_u_char
255
#define xdr_vector gssrpc_xdr_vector
256
#define xdr_float gssrpc_xdr_float
257
#define xdr_double gssrpc_xdr_double
258
#define xdr_reference gssrpc_xdr_reference
259
#define xdr_pointer gssrpc_xdr_pointer
260
#define xdr_wrapstring gssrpc_xdr_wrapstring
261
#define xdr_free gssrpc_xdr_free
262
263
#define xdr_sizeof gssrpc_xdr_sizeof
264
265
#define xdr_netobj gssrpc_xdr_netobj
266
#define xdr_int32 gssrpc_xdr_int32
267
#define xdr_u_int32 gssrpc_xdr_u_int32
268
269
#define xdralloc_create gssrpc_xdralloc_create
270
#define xdralloc_release gssrpc_xdralloc_release
271
#define xdralloc_getdata gssrpc_xdralloc_getdata
272
273
#define xdrmem_create gssrpc_xdrmem_create
274
#define xdrstdio_create gssrpc_xdrstdio_create
275
#define xdrrec_create gssrpc_xdrrec_create
276
#define xdrrec_endofrecord gssrpc_xdrrec_endofrecord
277
#define xdrrec_skiprecord gssrpc_xdrrec_skiprecord
278
#define xdrrec_eof gssrpc_xdrrec_eof
279
280
#endif /* !defined(GSSRPC_RENAME_H) */
281
282