mcc_ops.c: Remove excess code which is defined in fcc_ops.c
authorTheodore Tso <tytso@mit.edu>
Sat, 4 Nov 1995 05:47:41 +0000 (05:47 +0000)
committerTheodore Tso <tytso@mit.edu>
Sat, 4 Nov 1995 05:47:41 +0000 (05:47 +0000)
(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

src/lib/krb5/ccache/memory/mcc.h
src/lib/krb5/ccache/memory/mcc_destry.c
src/lib/krb5/ccache/memory/mcc_gennew.c
src/lib/krb5/ccache/memory/mcc_ops.c
src/lib/krb5/ccache/memory/mcc_reslv.c

index 64844e2a300188b10a229fa2d2a0f4789ed98105..f7c6da57d8ed036b1719a0d8a49994523857d6ad 100644 (file)
@@ -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__ */
index 8003b6b3663fa9ecb9f9f67862bc8f5d6d5975f0..0c050523d84f4a9a0a89ac38430b102f66b7b1c9 100644 (file)
@@ -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;
index 1c8a4e1f4848a7db2591eb683bb5df289eaf2c9a..0e7dfa56fce60c1af65118c8ddd9131b5d60a5f9 100644 (file)
@@ -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;
 
index 5848b11ec79d42b9a58bff32bc306ac0d29e31dc..d3f1cb5af96763c0f196b22bfb74e5cb33cd7aa1 100644 (file)
@@ -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 */
index 296bd4f74dde1b7ed497231d2a0f4324bc9019b4..6146c6c2bf85629db602c29b3439fc1edb6846b7 100644 (file)
@@ -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;