From: Theodore Tso Date: Sat, 4 Nov 1995 05:47:41 +0000 (+0000) Subject: mcc_ops.c: Remove excess code which is defined in fcc_ops.c X-Git-Tag: krb5-1.0-beta6~853 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c9e56f4efe6a720508194014d2fbc831c9e690e9;p=krb5.git mcc_ops.c: Remove excess code which is defined in fcc_ops.c (which may not be the right place for it anyway). mcc.h: Remove use of krb5_ccache_sessions mcc_destry.c (krb5_mcc_destroy): Remove use of krb5_ccache_sessions mcc_gennew.c (krb5_mcc_generate_new): Remove use of krb5_ccache_sessions mcc_reslv.c (krb5_mcc_resolve): Remove use of krb5_ccache_sessions git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7019 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/ccache/memory/mcc.h b/src/lib/krb5/ccache/memory/mcc.h index 64844e2a3..f7c6da57d 100644 --- a/src/lib/krb5/ccache/memory/mcc.h +++ b/src/lib/krb5/ccache/memory/mcc.h @@ -47,6 +47,8 @@ typedef struct _krb5_mcc_data { extern krb5_mcc_data FAR *mcc_head; +#if 0 extern int krb5_cache_sessions; +#endif #endif /* __KRB5_MEMORY_CCACHE__ */ diff --git a/src/lib/krb5/ccache/memory/mcc_destry.c b/src/lib/krb5/ccache/memory/mcc_destry.c index 8003b6b36..0c050523d 100644 --- a/src/lib/krb5/ccache/memory/mcc_destry.c +++ b/src/lib/krb5/ccache/memory/mcc_destry.c @@ -74,7 +74,9 @@ krb5_mcc_destroy(context, id) krb5_xfree(((krb5_mcc_data *)id->data)->name); krb5_xfree(id->data); krb5_xfree(id); +#if 0 --krb5_cache_sessions; +#endif krb5_change_cache (); return KRB5_OK; diff --git a/src/lib/krb5/ccache/memory/mcc_gennew.c b/src/lib/krb5/ccache/memory/mcc_gennew.c index 1c8a4e1f4..0e7dfa56f 100644 --- a/src/lib/krb5/ccache/memory/mcc_gennew.c +++ b/src/lib/krb5/ccache/memory/mcc_gennew.c @@ -81,7 +81,9 @@ krb5_mcc_generate_new (context, id) strcpy(((krb5_mcc_data *) lid->data)->name, scratch); *id = lid; +#if 0 ++krb5_cache_sessions; +#endif ((krb5_mcc_data *)lid->data)->next = mcc_head; mcc_head = (krb5_mcc_data *)lid->data; diff --git a/src/lib/krb5/ccache/memory/mcc_ops.c b/src/lib/krb5/ccache/memory/mcc_ops.c index 5848b11ec..d3f1cb5af 100644 --- a/src/lib/krb5/ccache/memory/mcc_ops.c +++ b/src/lib/krb5/ccache/memory/mcc_ops.c @@ -48,43 +48,3 @@ krb5_cc_ops krb5_mcc_ops = { krb5_mcc_data *mcc_head=0L; -#ifdef _WINDOWS - -/* - * krb5_change_cache should be called after the cache changes. - * A notification message is is posted out to all top level - * windows so that they may recheck the cache based on the - * changes made. We register a unique message type with which - * we'll communicate to all other processes. - */ -void krb_change_cache(int prot); - -krb5_error_code -krb5_change_cache (void) { - krb_change_cache(5); - return 0; -} - -unsigned int INTERFACE -krb5_get_notification_message (void) { - static unsigned int message = 0; - - if (message == 0) - message = RegisterWindowMessage(WM_KERBEROS5_CHANGED); - - return message; -} -#else /* _WINDOWS */ - -krb5_error_code -krb5_change_cache () -{ - return 0; -} -unsigned int INTERFACE -krb5_get_notification_message () -{ - return 0; -} - -#endif /* _WINDOWS */ diff --git a/src/lib/krb5/ccache/memory/mcc_reslv.c b/src/lib/krb5/ccache/memory/mcc_reslv.c index 296bd4f74..6146c6c2b 100644 --- a/src/lib/krb5/ccache/memory/mcc_reslv.c +++ b/src/lib/krb5/ccache/memory/mcc_reslv.c @@ -91,7 +91,9 @@ krb5_mcc_resolve (context, id, residual) ((krb5_mcc_data *)lid->data)->next = mcc_head; mcc_head = (krb5_mcc_data *)lid->data; +#if 0 ++krb5_cache_sessions; +#endif } *id = lid; return KRB5_OK;