aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2003-01-08 03:42:54 +0000
committerKen Raeburn <raeburn@mit.edu>2003-01-08 03:42:54 +0000
commit44253a4ea4baf7cf7789f9ee60f76b1d268feb53 (patch)
tree50b93acbbc1b73cec7176c827f85ac1174c89693 /src/include
parenteec2af6fac160c29b70068e12a7acfc1a06dabb3 (diff)
downloadkrb5-44253a4ea4baf7cf7789f9ee60f76b1d268feb53.zip
krb5-44253a4ea4baf7cf7789f9ee60f76b1d268feb53.tar.gz
krb5-44253a4ea4baf7cf7789f9ee60f76b1d268feb53.tar.bz2
Make ccache and rcache ops tables const
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15092 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ChangeLog7
-rw-r--r--src/include/k5-int.h8
2 files changed, 11 insertions, 4 deletions
diff --git a/src/include/ChangeLog b/src/include/ChangeLog
index 76a2a95..9359975 100644
--- a/src/include/ChangeLog
+++ b/src/include/ChangeLog
@@ -1,3 +1,10 @@
+2003-01-07 Ken Raeburn <raeburn@mit.edu>
+
+ * k5-int.h (krb5_cc_dfl_ops): Declare as pointer to const.
+ (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.
+
2003-01-06 Sam Hartman <hartmans@mit.edu>
* krb5.hin: Add support for setting a callback to generate the
diff --git a/src/include/k5-int.h b/src/include/k5-int.h
index 8b1b683..0d98e8f 100644
--- a/src/include/k5-int.h
+++ b/src/include/k5-int.h
@@ -1714,13 +1714,13 @@ struct _krb5_cc_ops {
krb5_flags);
};
-extern krb5_cc_ops *krb5_cc_dfl_ops;
+extern const krb5_cc_ops *krb5_cc_dfl_ops;
/* And this should be in lib/krb5/rcache somewhere. */
struct krb5_rc_st {
krb5_magic magic;
- struct _krb5_rc_ops *ops;
+ const struct _krb5_rc_ops *ops;
krb5_pointer data;
};
@@ -1749,9 +1749,9 @@ struct _krb5_rc_ops {
typedef struct _krb5_rc_ops krb5_rc_ops;
-krb5_error_code krb5_rc_register_type (krb5_context, krb5_rc_ops *);
+krb5_error_code krb5_rc_register_type (krb5_context, const krb5_rc_ops *);
-extern krb5_rc_ops krb5_rc_dfl_ops;
+extern const krb5_rc_ops krb5_rc_dfl_ops;
typedef struct _krb5_kt_ops {
krb5_magic magic;