Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:01:04

0001 /* include/gssrpc/rename.h */
0002 /*
0003  * Copyright (C) 2004 by the Massachusetts Institute of Technology.
0004  * All rights reserved.
0005  *
0006  * Export of this software from the United States of America may
0007  *   require a specific license from the United States Government.
0008  *   It is the responsibility of any person or organization contemplating
0009  *   export to obtain such a license before exporting.
0010  *
0011  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
0012  * distribute this software and its documentation for any purpose and
0013  * without fee is hereby granted, provided that the above copyright
0014  * notice appear in all copies and that both that copyright notice and
0015  * this permission notice appear in supporting documentation, and that
0016  * the name of M.I.T. not be used in advertising or publicity pertaining
0017  * to distribution of the software without specific, written prior
0018  * permission.  Furthermore if you modify this software you must label
0019  * your software as modified software and not distribute it in such a
0020  * fashion that it might be confused with the original M.I.T. software.
0021  * M.I.T. makes no representations about the suitability of
0022  * this software for any purpose.  It is provided "as is" without express
0023  * or implied warranty.
0024  */
0025 
0026 /*
0027  *
0028  * Namespace mangling for various purposes.
0029  *
0030  * Symbols in the object code need to be renamed to not conflict with
0031  * an OS-provided RPC implementation.  Without renaming, the conflicts
0032  * can cause problems with things like RPC-enabled NSS
0033  * implementations.
0034  *
0035  * Symbols in headers should not conflict with implementation-reserved
0036  * namespace (prefixes "_[A-Z_]" for any purpose; prefix "_"
0037  * for file scope identifiers and tag names), or unnecessarily impinge
0038  * on user namespace.
0039  *
0040  * The renaming of the header directory is done to avoid problems when
0041  * the OS header files include <rpc/foo.h> and might get ours instead.
0042  * OS vendors should replace all the <gssrpc/foo.h> inclusions with
0043  * <rpc/foo.h> inclusions, as appropriate.  Additionally, vendors
0044  * should probably put some symbols into the implementation namespace.
0045  *
0046  * For example, inclusion protection should change from "GSSRPC_*_H"
0047  * to "_RPC_*_H", struct tags should get "__" prefixes, etc.
0048  *
0049  * This implementation reserves the object code prefix "gssrpc_".
0050  * External names in the RPC API not beginning with "_" get renamed
0051  * with the prefix "gssrpc_" via #define, e.g., "foo" -> "gssrpc_foo".
0052  * External names in the RPC API beginning with "_" get textually
0053  * rewritten.
0054  */
0055 
0056 #ifndef GSSRPC_RENAME_H
0057 #define GSSRPC_RENAME_H
0058 
0059 /* auth.h */
0060 
0061 #define xdr_des_block       gssrpc_xdr_des_block
0062 
0063 #define authunix_create     gssrpc_authunix_create
0064 #define authunix_create_default gssrpc_authunix_create_default
0065 #define authnone_create     gssrpc_authnone_create
0066 #define xdr_opaque_auth     gssrpc_xdr_opaque_auth
0067 
0068 /* auth_gss.c */
0069 
0070 #define auth_debug_gss      gssrpc_auth_debug_gss
0071 #define misc_debug_gss      gssrpc_misc_debug_gss
0072 
0073 /* auth_gss.h */
0074 
0075 #define xdr_rpc_gss_buf     gssrpc_xdr_rpc_gss_buf
0076 #define xdr_rpc_gss_cred    gssrpc_xdr_rpc_gss_cred
0077 #define xdr_rpc_gss_init_args   gssrpc_xdr_rpc_gss_init_args
0078 #define xdr_rpc_gss_init_res    gssrpc_xdr_rpc_gss_init_res
0079 #define xdr_rpc_gss_data    gssrpc_xdr_rpc_gss_data
0080 #define xdr_rpc_gss_wrap_data   gssrpc_xdr_rpc_gss_wrap_data
0081 #define xdr_rpc_gss_unwrap_data gssrpc_xdr_rpc_gss_unwrap_data
0082 
0083 #define authgss_create      gssrpc_authgss_create
0084 #define authgss_create_default  gssrpc_authgss_create_default
0085 #define authgss_get_private_data    gssrpc_authgss_get_private_data
0086 #define authgss_service     gssrpc_authgss_service
0087 
0088 #ifdef GSSRPC__IMPL
0089 #define log_debug       gssrpc_log_debug
0090 #define log_status      gssrpc_log_status
0091 #define log_hexdump     gssrpc_log_hexdump
0092 #endif
0093 
0094 /* auth_gssapi.c */
0095 
0096 #define auth_debug_gssapi   gssrpc_auth_debug_gssapi
0097 #define misc_debug_gssapi   gssrpc_misc_debug_gssapi
0098 
0099 /* auth_gssapi.h */
0100 
0101 #define xdr_gss_buf     gssrpc_xdr_gss_buf
0102 #define xdr_authgssapi_creds    gssrpc_xdr_authgssapi_creds
0103 #define xdr_authgssapi_init_arg gssrpc_xdr_authgssapi_init_arg
0104 #define xdr_authgssapi_init_res gssrpc_xdr_authgssapi_init_res
0105 
0106 #define auth_gssapi_wrap_data   gssrpc_auth_gssapi_wrap_data
0107 #define auth_gssapi_unwrap_data gssrpc_auth_gssapi_unwrap_data
0108 #define auth_gssapi_create  gssrpc_auth_gssapi_create
0109 #define auth_gssapi_create_default  gssrpc_auth_gssapi_create_default
0110 #define auth_gssapi_display_status  gssrpc_auth_gssapi_display_status
0111 #define auth_gssapi_seal_seq    gssrpc_auth_gssapi_seal_seq
0112 #define auth_gssapi_unseal_seq  gssrpc_auth_gssapi_unseal_seq
0113 
0114 #define svcauth_gssapi_set_names    gssrpc_svcauth_gssapi_set_names
0115 #define svcauth_gssapi_unset_names  gssrpc_svcauth_gssapi_unset_names
0116 #define svcauth_gssapi_set_log_badauth_func gssrpc_svcauth_gssapi_set_log_badauth_func
0117 #define svcauth_gssapi_set_log_badauth2_func    gssrpc_svcauth_gssapi_set_log_badauth2_func
0118 #define svcauth_gssapi_set_log_badverf_func gssrpc_svcauth_gssapi_set_log_badverf_func
0119 #define svcauth_gssapi_set_log_miscerr_func gssrpc_svcauth_gssapi_set_log_miscerr_func
0120 
0121 #define svcauth_gss_set_log_badauth_func    gssrpc_svcauth_gss_set_log_badauth_func
0122 #define svcauth_gss_set_log_badauth2_func   gssrpc_svcauth_gss_set_log_badauth2_func
0123 #define svcauth_gss_set_log_badverf_func    gssrpc_svcauth_gss_set_log_badverf_func
0124 #define svcauth_gss_set_log_miscerr_func    gssrpc_svcauth_gss_set_log_miscerr_func
0125 
0126 /* auth_unix.h */
0127 
0128 #define xdr_authunix_parms  gssrpc_xdr_authunix_parms
0129 
0130 /* clnt.h */
0131 
0132 #define clntraw_create      gssrpc_clntraw_create
0133 #define clnt_create     gssrpc_clnt_create
0134 #define clnttcp_create      gssrpc_clnttcp_create
0135 #define clntudp_create      gssrpc_clntudp_create
0136 #define clntudp_bufcreate   gssrpc_clntudp_bufcreate
0137 #define clnt_pcreateerror   gssrpc_clnt_pcreateerror
0138 #define clnt_spcreateerror  gssrpc_clnt_spcreateerror
0139 #define clnt_perrno     gssrpc_clnt_perrno
0140 #define clnt_perror     gssrpc_clnt_perror
0141 #define clnt_sperror        gssrpc_clnt_sperror
0142 /* XXX do we need to rename the struct? */
0143 #define rpc_createerr       gssrpc_rpc_createrr
0144 #define clnt_sperrno        gssrpc_clnt_sperrno
0145 
0146 /* pmap_clnt.h */
0147 
0148 #define pmap_set        gssrpc_pmap_set
0149 #define pmap_unset      gssrpc_pmap_unset
0150 #define pmap_getmaps        gssrpc_pmap_getmaps
0151 #define pmap_rmtcall        gssrpc_pmap_rmtcall
0152 #define clnt_broadcast      gssrpc_clnt_broadcast
0153 #define pmap_getport        gssrpc_pmap_getport
0154 
0155 /* pmap_prot.h */
0156 
0157 #define xdr_pmap        gssrpc_xdr_pmap
0158 #define xdr_pmaplist        gssrpc_xdr_pmaplist
0159 
0160 /* pmap_rmt.h */
0161 
0162 #define xdr_rmtcall_args    gssrpc_xdr_rmtcall_args
0163 #define xdr_rmtcallres      gssrpc_xdr_rmtcallres
0164 
0165 /* rpc.h */
0166 
0167 #define get_myaddress       gssrpc_get_myaddress
0168 #define bindresvport        gssrpc_bindresvport
0169 #define bindresvport_sa     gssrpc_bindresvport_sa
0170 #define callrpc         gssrpc_callrpc
0171 #define getrpcport      gssrpc_getrpcport
0172 
0173 /* rpc_msg.h */
0174 
0175 #define xdr_callmsg     gssrpc_xdr_callmsg
0176 #define xdr_callhdr     gssrpc_xdr_callhdr
0177 #define xdr_replymsg        gssrpc_xdr_replymsg
0178 #define xdr_accepted_reply  gssrpc_xdr_accepted_reply
0179 #define xdr_rejected_reply  gssrpc_xdr_rejected_reply
0180 
0181 /* svc.h */
0182 
0183 #define svc_register        gssrpc_svc_register
0184 #define registerrpc             gssrpc_registerrpc
0185 #define svc_unregister      gssrpc_svc_unregister
0186 #define xprt_register       gssrpc_xprt_register
0187 #define xprt_unregister     gssrpc_xprt_unregister
0188 
0189 #define svc_sendreply       gssrpc_svc_sendreply
0190 #define svcerr_decode       gssrpc_svcerr_decode
0191 #define svcerr_weakauth     gssrpc_svcerr_weakauth
0192 #define svcerr_noproc       gssrpc_svcerr_noproc
0193 #define svcerr_progvers     gssrpc_svcerr_progvers
0194 #define svcerr_auth     gssrpc_svcerr_auth
0195 #define svcerr_noprog       gssrpc_svcerr_noprog
0196 #define svcerr_systemerr    gssrpc_svcerr_systemerr
0197 
0198 #define svc_maxfd       gssrpc_svc_maxfd
0199 #define svc_fdset       gssrpc_svc_fdset
0200 #define svc_fds         gssrpc_svc_fds
0201 
0202 #define svc_getreq      gssrpc_svc_getreq
0203 #define svc_getreqset       gssrpc_svc_getreqset
0204 #define svc_run         gssrpc_svc_run
0205 
0206 #define svcraw_create       gssrpc_svcraw_create
0207 
0208 #define svcudp_create       gssrpc_svcudp_create
0209 #define svcudp_bufcreate    gssrpc_svcudp_bufcreate
0210 #define svcudp_enablecache  gssrpc_svcudp_enablecache
0211 
0212 #define svctcp_create       gssrpc_svctcp_create
0213 
0214 #define svcfd_create            gssrpc_svcfd_create
0215 
0216 /* svc_auth.h */
0217 
0218 #define svc_auth_none_ops   gssrpc_svc_auth_none_ops
0219 #define svc_auth_gssapi_ops gssrpc_svc_auth_gssapi_ops
0220 #define svc_auth_gss_ops    gssrpc_svc_auth_gss_ops
0221 
0222 #define svcauth_gss_set_svc_name    gssrpc_svcauth_gss_set_svc_name
0223 #define svcauth_gss_get_principal   gssrpc_svcauth_gss_get_principal
0224 
0225 /* svc_auth_gss.c */
0226 
0227 #define svc_debug_gss       gssrpc_svc_debug_gss
0228 
0229 /* svc_auth_gssapi.c */
0230 
0231 #define svc_debug_gssapi    gssrpc_svc_debug_gssapi
0232 
0233 /* svc_auth_none.c */
0234 
0235 #define svc_auth_none       gssrpc_svc_auth_none
0236 
0237 /* xdr.h */
0238 
0239 #define xdr_void    gssrpc_xdr_void
0240 #define xdr_int     gssrpc_xdr_int
0241 #define xdr_u_int   gssrpc_xdr_u_int
0242 #define xdr_long    gssrpc_xdr_long
0243 #define xdr_u_long  gssrpc_xdr_u_long
0244 #define xdr_short   gssrpc_xdr_short
0245 #define xdr_u_short gssrpc_xdr_u_short
0246 #define xdr_bool    gssrpc_xdr_bool
0247 #define xdr_enum    gssrpc_xdr_enum
0248 #define xdr_array   gssrpc_xdr_array
0249 #define xdr_bytes   gssrpc_xdr_bytes
0250 #define xdr_opaque  gssrpc_xdr_opaque
0251 #define xdr_string  gssrpc_xdr_string
0252 #define xdr_union   gssrpc_xdr_union
0253 #define xdr_char    gssrpc_xdr_char
0254 #define xdr_u_char  gssrpc_xdr_u_char
0255 #define xdr_vector  gssrpc_xdr_vector
0256 #define xdr_float   gssrpc_xdr_float
0257 #define xdr_double  gssrpc_xdr_double
0258 #define xdr_reference   gssrpc_xdr_reference
0259 #define xdr_pointer gssrpc_xdr_pointer
0260 #define xdr_wrapstring  gssrpc_xdr_wrapstring
0261 #define xdr_free    gssrpc_xdr_free
0262 
0263 #define xdr_sizeof  gssrpc_xdr_sizeof
0264 
0265 #define xdr_netobj  gssrpc_xdr_netobj
0266 #define xdr_int32   gssrpc_xdr_int32
0267 #define xdr_u_int32 gssrpc_xdr_u_int32
0268 
0269 #define xdralloc_create     gssrpc_xdralloc_create
0270 #define xdralloc_release    gssrpc_xdralloc_release
0271 #define xdralloc_getdata    gssrpc_xdralloc_getdata
0272 
0273 #define xdrmem_create       gssrpc_xdrmem_create
0274 #define xdrstdio_create     gssrpc_xdrstdio_create
0275 #define xdrrec_create       gssrpc_xdrrec_create
0276 #define xdrrec_endofrecord  gssrpc_xdrrec_endofrecord
0277 #define xdrrec_skiprecord   gssrpc_xdrrec_skiprecord
0278 #define xdrrec_eof      gssrpc_xdrrec_eof
0279 
0280 #endif /* !defined(GSSRPC_RENAME_H) */