more rpc namespace cleanup
authorTom Yu <tlyu@mit.edu>
Wed, 16 Jun 2004 22:14:21 +0000 (22:14 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 16 Jun 2004 22:14:21 +0000 (22:14 +0000)
* auth_gss.h: Conditionalize log_debug, log_status, log_hexdump
prototypes on GSSRPC__IMPL.

* rename.h: More namespace fixes.

ticket: new
status: open
component: krb5-libs

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16471 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/rpc/ChangeLog
src/lib/rpc/auth_gss.h
src/lib/rpc/rename.h

index e7716a9bd2195ee208bce29f7dd3cc040d5322c9..cb4c1623520aef0c3e420dbed87b483bf4f442f8 100644 (file)
@@ -1,3 +1,10 @@
+2004-06-16  Tom Yu  <tlyu@mit.edu>
+
+       * auth_gss.h: Conditionalize log_debug, log_status, log_hexdump
+       prototypes on GSSRPC__IMPL.
+
+       * rename.h: More namespace fixes.
+
 2004-06-15  Tom Yu  <tlyu@mit.edu>
 
        * auth_gss.c (print_rpc_gss_sec): Use gss_oid_to_str().
index 3692c548df932506c3609abff77f0c8edf8708ab..0bf701d902f8cf18c2b0397da25238d91881821c 100644 (file)
@@ -128,10 +128,11 @@ AUTH   *authgss_create            (CLIENT *, gss_name_t, struct rpc_gss_sec *);
 AUTH   *authgss_create_default (CLIENT *, char *, struct rpc_gss_sec *);
 bool_t authgss_service(AUTH *auth, int svc);
 
-
+#ifdef GSSRPC__IMPL
 void   log_debug               (const char *fmt, ...);
 void   log_status              (char *m, OM_uint32 major, OM_uint32 minor);
 void   log_hexdump             (const u_char *buf, int len, int offset);
+#endif
 
 GSSRPC__END_DECLS
 #endif /* !defined(GSSRPC_AUTH_GSS_H) */
index a0444e209311d4a2a25f2389d7466b154e63d903..2cc423231e93e3e439db17c8566dd2181413f801 100644 (file)
 #define gssrpc__null_auth      _null_auth
 #endif
 
+/* auth_gss.c */
+
+#define auth_debug_gss         gssrpc_auth_debug_gss
+#define misc_debug_gss         gssrpc_misc_debug_gss
+
 /* auth_gss.h */
 
 #define xdr_rpc_gss_cred       gssrpc_xdr_rpc_gss_cred
 #define authgss_create_default gssrpc_authgss_create_default
 #define authgss_service                gssrpc_authgss_service
 
+#ifdef GSSRPC__IMPL
+#define log_debug              gssrpc_log_debug
+#define log_status             gssrpc_log_status
+#define        log_hexdump             gssrpc_log_hexdump
+#endif
+
+/* auth_gssapi.c */
+
+#define auth_debug_gssapi      gssrpc_auth_debug_gssapi
+#define misc_debug_gssapi      gssrpc_misc_debug_gssapi
+
 /* auth_gssapi.h */
 
 #define xdr_gss_buf            gssrpc_xdr_gss_buf
 #define svcauth_gssapi_set_log_badverf_func    gssrpc_svcauth_gssapi_set_log_badverf_func
 #define svcauth_gssapi_set_log_miscerr_func    gssrpc_svcauth_gssapi_set_log_miscerr_func
 
-#if 0
-/* Unfortunately, code outside the library calls these... */
-#define gssrpc__svcauth_gssapi_set_names       _svcauth_gssapi_set_names
-#define gssrpc__svcauth_gssapi_unset_names     _svcauth_gssapi_unset_names
-#define gssrpc__svcauth_gssapi_set_log_badauth_func    \
-       _svcauth_gssapi_set_log_badauth_func
-#define gssrpc__svcauth_gssapi_set_log_badverf_func    \
-       _svcauth_gssapi_set_log_badverf_func
-#define gssrpc__svcauth_gssapi_set_log_miscerr_func    \
-       _svcauth_gssapi_set_log_miscerr_func
-#endif
+#define svcauth_gss_set_log_badauth_func       gssrpc_svcauth_gss_set_log_badauth_func
+#define svcauth_gss_set_log_badverf_func       gssrpc_svcauth_gss_set_log_badverf_func
+#define svcauth_gss_set_log_miscerr_func       gssrpc_svcauth_gss_set_log_miscerr_func
 
 /* auth_unix.h */
 
 #define gssrpc__svcauth_gss    _svcauth_gss
 #endif
 
+/* svc_auth_gss.c */
+
+#define svc_debug_gss          gssrpc_svc_debug_gss
+
+#define svcauth_gss_creds      gssrpc_svc_auth_gss_creds
+
+/* svc_auth_gssapi.c */
+
+#define svc_debug_gssapi       gssrpc_svc_debug_gssapi
+
 /* svc_auth_none.c */
 
 #define svc_auth_none          gssrpc_svc_auth_none