More const for ops tables
authorKen Raeburn <raeburn@mit.edu>
Wed, 8 Jan 2003 03:51:03 +0000 (03:51 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 8 Jan 2003 03:51:03 +0000 (03:51 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15094 dc483132-0cff-0310-8789-dd5450dbe970

src/include/ChangeLog
src/include/k5-int.h
src/lib/krb5/ccache/ChangeLog
src/lib/krb5/ccache/cc_file.c
src/lib/krb5/ccache/cc_memory.c
src/lib/krb5/ccache/ccbase.c
src/lib/krb5/ccache/fcc.h

index 93599755c85c315c413e56245c6945eda78d6849..d01684e07082e3c4d5bda14ae38a376067e2a3fe 100644 (file)
@@ -4,6 +4,7 @@
        (struct krb5_rc_st): Field ops now points to const.
        (krb5_rc_register_type): Ops argument now points to const.
        (krb5_rc_dfl_ops): Now const.
+       (struct _krb5_ccache): Field ops now points to const.
 
 2003-01-06  Sam Hartman  <hartmans@mit.edu>
 
index 0d98e8fa2c6879ac1557c4c6b5528da33732b2d4..2bfce56e6810dabcbc9c283b7ea2c52207877750 100644 (file)
@@ -1680,7 +1680,7 @@ krb5_error_code KRB5_CALLCONV krb5int_accessor
 
 struct _krb5_ccache {
     krb5_magic magic;
-    struct _krb5_cc_ops *ops;
+    const struct _krb5_cc_ops *ops;
     krb5_pointer data;
 };
 
index 3fd7b3ef0ae935bf246a025f8dc78b6f54016a4d..038a1ce5179f430f02f07fc4e9529726fadb1ed7 100644 (file)
@@ -1,5 +1,9 @@
 2003-01-07  Ken Raeburn  <raeburn@mit.edu>
 
+       * cc_file.c (krb5_cc_file_ops): Now const.
+       * fcc.h (krb5_cc_file_ops): Update decl.
+       * cc_memory.c (krb5_mcc_ops): Now const.
+       * ccbase.c (krb5_mcc_ops): Update decl.
        * ccdefops.c (krb5_cc_dfl_ops): Now points to const.
 
 2002-09-03  Ken Raeburn  <raeburn@mit.edu>
index f2ebe1555bd252b997d79d36e5054b117c527616..62ca411f265a956e6a59c6ada26852033ee01e92 100644 (file)
@@ -201,7 +201,7 @@ static krb5_error_code krb5_fcc_skip_principal
 static krb5_error_code KRB5_CALLCONV krb5_fcc_set_flags
         (krb5_context, krb5_ccache id, krb5_flags flags);
 
-extern krb5_cc_ops krb5_cc_file_ops;
+extern const krb5_cc_ops krb5_cc_file_ops;
 
 krb5_error_code krb5_change_cache (void);
 
@@ -2458,7 +2458,7 @@ krb5_get_notification_message (void)
 
 #endif /* _WIN32 */
 
-krb5_cc_ops krb5_cc_file_ops = {
+const krb5_cc_ops krb5_cc_file_ops = {
      0,
      "FILE",
      krb5_fcc_get_name,
index 99c42f5783d4a01be526e72a11499c645dd4089b..97ec32752d732c55138549fcbfc6ef505cb29605 100644 (file)
@@ -80,7 +80,7 @@ krb5_error_code KRB5_CALLCONV krb5_mcc_store
 krb5_error_code KRB5_CALLCONV krb5_mcc_set_flags 
        (krb5_context, krb5_ccache id , krb5_flags flags );
 
-extern krb5_cc_ops krb5_mcc_ops;
+extern const krb5_cc_ops krb5_mcc_ops;
 krb5_error_code krb5_change_cache (void);
 
 #define KRB5_OK 0
@@ -538,7 +538,7 @@ krb5_mcc_set_flags(krb5_context context, krb5_ccache id, krb5_flags flags)
 
 #define NEED_WINDOWS
 
-krb5_cc_ops krb5_mcc_ops = {
+const krb5_cc_ops krb5_mcc_ops = {
      0,
      "MEMORY",
      krb5_mcc_get_name,
index c4c312b3e222e85734845935cc0567b7e7136034..ddd5e80d4bc3d2f4f9fc4be5bda55dc58690e0a3 100644 (file)
@@ -34,7 +34,7 @@ struct krb5_cc_typelist
   krb5_cc_ops *ops;
   struct krb5_cc_typelist *next;
  };
-extern krb5_cc_ops krb5_mcc_ops;
+extern const krb5_cc_ops krb5_mcc_ops;
 
 static struct krb5_cc_typelist cc_entry = { &krb5_mcc_ops, NULL };
 
index 7f91fd846f7d77dd0552799b40bf5d969e947375..4f8a815798cde00e9a3a4f7b068477138221a428 100644 (file)
@@ -35,7 +35,7 @@
 #include "k5-int.h"
 #include <stdio.h>
 
-extern krb5_cc_ops krb5_cc_file_ops;
+extern const krb5_cc_ops krb5_cc_file_ops;
 
 #define KRB5_OK 0