summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2002-10-31 22:54:00 +0000
committerKen Raeburn <raeburn@mit.edu>2002-10-31 22:54:00 +0000
commitc82d8c3561c67cb875a05c9f8caa37fad68dc4b5 (patch)
tree4dc9b864984ddb8aa1475ab10e9deb758484eb96 /src/include
parent7aec9fa1458d27423ac381e674392694504fa33b (diff)
downloadkrb5-c82d8c3561c67cb875a05c9f8caa37fad68dc4b5.tar.gz
krb5-c82d8c3561c67cb875a05c9f8caa37fad68dc4b5.tar.xz
krb5-c82d8c3561c67cb875a05c9f8caa37fad68dc4b5.zip
* k5-int.h (krb5_ser_handle): Now points to const.
(krb5_kt_dfl_ops): Now const. (struct _krb5_kt_ops): Field serializer now points to const krb5_ser_entry instead of void. * krb5.hin (struct _krb5_kt): Field ops now points to const. * kt_file.c (krb5_ktf_ops, krb5_ktf_writable_ops): Now const. Drop cast of serializer entry initializer. (fopen_mode_rbplus, fopen_mode_rb): Now const. * kt_srvtab.c (krb5_kts_ops): Now const. * ktbase.c (krb5_ktf_ops, krb5_kts_ops): Update declarations. (struct krb5_kt_typelist): Field ops now points to const. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14953 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ChangeLog8
-rw-r--r--src/include/k5-int.h6
-rw-r--r--src/include/krb5.hin2
3 files changed, 12 insertions, 4 deletions
diff --git a/src/include/ChangeLog b/src/include/ChangeLog
index 6c6e50742..94b426519 100644
--- a/src/include/ChangeLog
+++ b/src/include/ChangeLog
@@ -1,3 +1,11 @@
+2002-10-31 Ken Raeburn <raeburn@mit.edu>
+
+ * k5-int.h (krb5_ser_handle): Now points to const.
+ (krb5_kt_dfl_ops): Now const.
+ (struct _krb5_kt_ops): Field serializer now points to const
+ krb5_ser_entry instead of void.
+ * krb5.hin (struct _krb5_kt): Field ops now points to const.
+
2002-10-30 Ken Hornstein <kenh@cmf.nrl.navy.mil>
* krb5.hin: Change definitions of new SAM preauth types to
diff --git a/src/include/k5-int.h b/src/include/k5-int.h
index 0ee5dd9a8..e6d69205c 100644
--- a/src/include/k5-int.h
+++ b/src/include/k5-int.h
@@ -1525,7 +1525,7 @@ struct __krb5_serializer {
krb5_octet **,
size_t *);
};
-typedef struct __krb5_serializer * krb5_ser_handle;
+typedef const struct __krb5_serializer * krb5_ser_handle;
typedef struct __krb5_serializer krb5_ser_entry;
krb5_ser_handle krb5_find_serializer
@@ -1793,10 +1793,10 @@ typedef struct _krb5_kt_ops {
krb5_keytab_entry *);
/* Handle for serializer */
- void * serializer;
+ const krb5_ser_entry *serializer;
} krb5_kt_ops;
-extern krb5_kt_ops krb5_kt_dfl_ops;
+extern const krb5_kt_ops krb5_kt_dfl_ops;
extern krb5_error_code krb5int_translate_gai_error (int);
diff --git a/src/include/krb5.hin b/src/include/krb5.hin
index ceb5a47b8..a1fb92617 100644
--- a/src/include/krb5.hin
+++ b/src/include/krb5.hin
@@ -1328,7 +1328,7 @@ typedef struct krb5_keytab_entry_st {
struct _krb5_kt_ops;
typedef struct _krb5_kt { /* should move into k5-int.h */
krb5_magic magic;
- struct _krb5_kt_ops *ops;
+ const struct _krb5_kt_ops *ops;
krb5_pointer data;
} *krb5_keytab;
#else