Path: blob/main/crypto/krb5/src/include/gssrpc/rename.h
34914 views
/* include/gssrpc/rename.h */1/*2* Copyright (C) 2004 by the Massachusetts Institute of Technology.3* All rights reserved.4*5* Export of this software from the United States of America may6* require a specific license from the United States Government.7* It is the responsibility of any person or organization contemplating8* export to obtain such a license before exporting.9*10* WITHIN THAT CONSTRAINT, permission to use, copy, modify, and11* distribute this software and its documentation for any purpose and12* without fee is hereby granted, provided that the above copyright13* notice appear in all copies and that both that copyright notice and14* this permission notice appear in supporting documentation, and that15* the name of M.I.T. not be used in advertising or publicity pertaining16* to distribution of the software without specific, written prior17* permission. Furthermore if you modify this software you must label18* your software as modified software and not distribute it in such a19* fashion that it might be confused with the original M.I.T. software.20* M.I.T. makes no representations about the suitability of21* this software for any purpose. It is provided "as is" without express22* or implied warranty.23*/2425/*26*27* Namespace mangling for various purposes.28*29* Symbols in the object code need to be renamed to not conflict with30* an OS-provided RPC implementation. Without renaming, the conflicts31* can cause problems with things like RPC-enabled NSS32* implementations.33*34* Symbols in headers should not conflict with implementation-reserved35* namespace (prefixes "_[A-Z_]" for any purpose; prefix "_"36* for file scope identifiers and tag names), or unnecessarily impinge37* on user namespace.38*39* The renaming of the header directory is done to avoid problems when40* the OS header files include <rpc/foo.h> and might get ours instead.41* OS vendors should replace all the <gssrpc/foo.h> inclusions with42* <rpc/foo.h> inclusions, as appropriate. Additionally, vendors43* should probably put some symbols into the implementation namespace.44*45* For example, inclusion protection should change from "GSSRPC_*_H"46* to "_RPC_*_H", struct tags should get "__" prefixes, etc.47*48* This implementation reserves the object code prefix "gssrpc_".49* External names in the RPC API not beginning with "_" get renamed50* with the prefix "gssrpc_" via #define, e.g., "foo" -> "gssrpc_foo".51* External names in the RPC API beginning with "_" get textually52* rewritten.53*/5455#ifndef GSSRPC_RENAME_H56#define GSSRPC_RENAME_H5758/* auth.h */5960#define xdr_des_block gssrpc_xdr_des_block6162#define authunix_create gssrpc_authunix_create63#define authunix_create_default gssrpc_authunix_create_default64#define authnone_create gssrpc_authnone_create65#define xdr_opaque_auth gssrpc_xdr_opaque_auth6667/* auth_gss.c */6869#define auth_debug_gss gssrpc_auth_debug_gss70#define misc_debug_gss gssrpc_misc_debug_gss7172/* auth_gss.h */7374#define xdr_rpc_gss_buf gssrpc_xdr_rpc_gss_buf75#define xdr_rpc_gss_cred gssrpc_xdr_rpc_gss_cred76#define xdr_rpc_gss_init_args gssrpc_xdr_rpc_gss_init_args77#define xdr_rpc_gss_init_res gssrpc_xdr_rpc_gss_init_res78#define xdr_rpc_gss_data gssrpc_xdr_rpc_gss_data79#define xdr_rpc_gss_wrap_data gssrpc_xdr_rpc_gss_wrap_data80#define xdr_rpc_gss_unwrap_data gssrpc_xdr_rpc_gss_unwrap_data8182#define authgss_create gssrpc_authgss_create83#define authgss_create_default gssrpc_authgss_create_default84#define authgss_get_private_data gssrpc_authgss_get_private_data85#define authgss_service gssrpc_authgss_service8687#ifdef GSSRPC__IMPL88#define log_debug gssrpc_log_debug89#define log_status gssrpc_log_status90#define log_hexdump gssrpc_log_hexdump91#endif9293/* auth_gssapi.c */9495#define auth_debug_gssapi gssrpc_auth_debug_gssapi96#define misc_debug_gssapi gssrpc_misc_debug_gssapi9798/* auth_gssapi.h */99100#define xdr_gss_buf gssrpc_xdr_gss_buf101#define xdr_authgssapi_creds gssrpc_xdr_authgssapi_creds102#define xdr_authgssapi_init_arg gssrpc_xdr_authgssapi_init_arg103#define xdr_authgssapi_init_res gssrpc_xdr_authgssapi_init_res104105#define auth_gssapi_wrap_data gssrpc_auth_gssapi_wrap_data106#define auth_gssapi_unwrap_data gssrpc_auth_gssapi_unwrap_data107#define auth_gssapi_create gssrpc_auth_gssapi_create108#define auth_gssapi_create_default gssrpc_auth_gssapi_create_default109#define auth_gssapi_display_status gssrpc_auth_gssapi_display_status110#define auth_gssapi_seal_seq gssrpc_auth_gssapi_seal_seq111#define auth_gssapi_unseal_seq gssrpc_auth_gssapi_unseal_seq112113#define svcauth_gssapi_set_names gssrpc_svcauth_gssapi_set_names114#define svcauth_gssapi_unset_names gssrpc_svcauth_gssapi_unset_names115#define svcauth_gssapi_set_log_badauth_func gssrpc_svcauth_gssapi_set_log_badauth_func116#define svcauth_gssapi_set_log_badauth2_func gssrpc_svcauth_gssapi_set_log_badauth2_func117#define svcauth_gssapi_set_log_badverf_func gssrpc_svcauth_gssapi_set_log_badverf_func118#define svcauth_gssapi_set_log_miscerr_func gssrpc_svcauth_gssapi_set_log_miscerr_func119120#define svcauth_gss_set_log_badauth_func gssrpc_svcauth_gss_set_log_badauth_func121#define svcauth_gss_set_log_badauth2_func gssrpc_svcauth_gss_set_log_badauth2_func122#define svcauth_gss_set_log_badverf_func gssrpc_svcauth_gss_set_log_badverf_func123#define svcauth_gss_set_log_miscerr_func gssrpc_svcauth_gss_set_log_miscerr_func124125/* auth_unix.h */126127#define xdr_authunix_parms gssrpc_xdr_authunix_parms128129/* clnt.h */130131#define clntraw_create gssrpc_clntraw_create132#define clnt_create gssrpc_clnt_create133#define clnttcp_create gssrpc_clnttcp_create134#define clntudp_create gssrpc_clntudp_create135#define clntudp_bufcreate gssrpc_clntudp_bufcreate136#define clnt_pcreateerror gssrpc_clnt_pcreateerror137#define clnt_spcreateerror gssrpc_clnt_spcreateerror138#define clnt_perrno gssrpc_clnt_perrno139#define clnt_perror gssrpc_clnt_perror140#define clnt_sperror gssrpc_clnt_sperror141/* XXX do we need to rename the struct? */142#define rpc_createerr gssrpc_rpc_createrr143#define clnt_sperrno gssrpc_clnt_sperrno144145/* pmap_clnt.h */146147#define pmap_set gssrpc_pmap_set148#define pmap_unset gssrpc_pmap_unset149#define pmap_getmaps gssrpc_pmap_getmaps150#define pmap_rmtcall gssrpc_pmap_rmtcall151#define clnt_broadcast gssrpc_clnt_broadcast152#define pmap_getport gssrpc_pmap_getport153154/* pmap_prot.h */155156#define xdr_pmap gssrpc_xdr_pmap157#define xdr_pmaplist gssrpc_xdr_pmaplist158159/* pmap_rmt.h */160161#define xdr_rmtcall_args gssrpc_xdr_rmtcall_args162#define xdr_rmtcallres gssrpc_xdr_rmtcallres163164/* rpc.h */165166#define get_myaddress gssrpc_get_myaddress167#define bindresvport gssrpc_bindresvport168#define bindresvport_sa gssrpc_bindresvport_sa169#define callrpc gssrpc_callrpc170#define getrpcport gssrpc_getrpcport171172/* rpc_msg.h */173174#define xdr_callmsg gssrpc_xdr_callmsg175#define xdr_callhdr gssrpc_xdr_callhdr176#define xdr_replymsg gssrpc_xdr_replymsg177#define xdr_accepted_reply gssrpc_xdr_accepted_reply178#define xdr_rejected_reply gssrpc_xdr_rejected_reply179180/* svc.h */181182#define svc_register gssrpc_svc_register183#define registerrpc gssrpc_registerrpc184#define svc_unregister gssrpc_svc_unregister185#define xprt_register gssrpc_xprt_register186#define xprt_unregister gssrpc_xprt_unregister187188#define svc_sendreply gssrpc_svc_sendreply189#define svcerr_decode gssrpc_svcerr_decode190#define svcerr_weakauth gssrpc_svcerr_weakauth191#define svcerr_noproc gssrpc_svcerr_noproc192#define svcerr_progvers gssrpc_svcerr_progvers193#define svcerr_auth gssrpc_svcerr_auth194#define svcerr_noprog gssrpc_svcerr_noprog195#define svcerr_systemerr gssrpc_svcerr_systemerr196197#define svc_maxfd gssrpc_svc_maxfd198#define svc_fdset gssrpc_svc_fdset199#define svc_fds gssrpc_svc_fds200201#define svc_getreq gssrpc_svc_getreq202#define svc_getreqset gssrpc_svc_getreqset203#define svc_run gssrpc_svc_run204205#define svcraw_create gssrpc_svcraw_create206207#define svcudp_create gssrpc_svcudp_create208#define svcudp_bufcreate gssrpc_svcudp_bufcreate209#define svcudp_enablecache gssrpc_svcudp_enablecache210211#define svctcp_create gssrpc_svctcp_create212213#define svcfd_create gssrpc_svcfd_create214215/* svc_auth.h */216217#define svc_auth_none_ops gssrpc_svc_auth_none_ops218#define svc_auth_gssapi_ops gssrpc_svc_auth_gssapi_ops219#define svc_auth_gss_ops gssrpc_svc_auth_gss_ops220221#define svcauth_gss_set_svc_name gssrpc_svcauth_gss_set_svc_name222#define svcauth_gss_get_principal gssrpc_svcauth_gss_get_principal223224/* svc_auth_gss.c */225226#define svc_debug_gss gssrpc_svc_debug_gss227228/* svc_auth_gssapi.c */229230#define svc_debug_gssapi gssrpc_svc_debug_gssapi231232/* svc_auth_none.c */233234#define svc_auth_none gssrpc_svc_auth_none235236/* xdr.h */237238#define xdr_void gssrpc_xdr_void239#define xdr_int gssrpc_xdr_int240#define xdr_u_int gssrpc_xdr_u_int241#define xdr_long gssrpc_xdr_long242#define xdr_u_long gssrpc_xdr_u_long243#define xdr_short gssrpc_xdr_short244#define xdr_u_short gssrpc_xdr_u_short245#define xdr_bool gssrpc_xdr_bool246#define xdr_enum gssrpc_xdr_enum247#define xdr_array gssrpc_xdr_array248#define xdr_bytes gssrpc_xdr_bytes249#define xdr_opaque gssrpc_xdr_opaque250#define xdr_string gssrpc_xdr_string251#define xdr_union gssrpc_xdr_union252#define xdr_char gssrpc_xdr_char253#define xdr_u_char gssrpc_xdr_u_char254#define xdr_vector gssrpc_xdr_vector255#define xdr_float gssrpc_xdr_float256#define xdr_double gssrpc_xdr_double257#define xdr_reference gssrpc_xdr_reference258#define xdr_pointer gssrpc_xdr_pointer259#define xdr_wrapstring gssrpc_xdr_wrapstring260#define xdr_free gssrpc_xdr_free261262#define xdr_sizeof gssrpc_xdr_sizeof263264#define xdr_netobj gssrpc_xdr_netobj265#define xdr_int32 gssrpc_xdr_int32266#define xdr_u_int32 gssrpc_xdr_u_int32267268#define xdralloc_create gssrpc_xdralloc_create269#define xdralloc_release gssrpc_xdralloc_release270#define xdralloc_getdata gssrpc_xdralloc_getdata271272#define xdrmem_create gssrpc_xdrmem_create273#define xdrstdio_create gssrpc_xdrstdio_create274#define xdrrec_create gssrpc_xdrrec_create275#define xdrrec_endofrecord gssrpc_xdrrec_endofrecord276#define xdrrec_skiprecord gssrpc_xdrrec_skiprecord277#define xdrrec_eof gssrpc_xdrrec_eof278279#endif /* !defined(GSSRPC_RENAME_H) */280281282