2004-03-05 Ken Raeburn <raeburn@mit.edu>
+ * krb5.hin (krb5_kt_register): Ops table is now const.
+
* k5-thread.h: New file.
2004-02-26 Jeffrey Altman <jaltman@mit.edu>
#if KRB5_PRIVATE
krb5_error_code KRB5_CALLCONV krb5_kt_register
(krb5_context,
- struct _krb5_kt_ops * );
+ const struct _krb5_kt_ops * );
#endif
krb5_error_code KRB5_CALLCONV krb5_kt_resolve
+2004-03-05 Ken Raeburn <raeburn@mit.edu>
+
+ * ktbase.c (krb5_kt_register): Ops table is now const.
+ (struct krb5_kt_typelist): "next" pointer now points to const.
+ (krb5_kt_typelist_wrfile, krb5_kt_typelist_file,
+ krb5_kt_typelist_srvtab): Now const.
+ (kt_typehead): Now points to const.
+
2003-07-17 Ken Raeburn <raeburn@mit.edu>
* Makefile.in (LIBNAME) [##WIN16##]: Don't define.
struct krb5_kt_typelist {
const krb5_kt_ops *ops;
- struct krb5_kt_typelist *next;
+ const struct krb5_kt_typelist *next;
};
-static struct krb5_kt_typelist krb5_kt_typelist_wrfile = {
+const static struct krb5_kt_typelist krb5_kt_typelist_wrfile = {
&krb5_ktf_writable_ops,
0
};
-static struct krb5_kt_typelist krb5_kt_typelist_file = {
+const static struct krb5_kt_typelist krb5_kt_typelist_file = {
&krb5_ktf_ops,
&krb5_kt_typelist_wrfile
};
-static struct krb5_kt_typelist krb5_kt_typelist_srvtab = {
+const static struct krb5_kt_typelist krb5_kt_typelist_srvtab = {
&krb5_kts_ops,
&krb5_kt_typelist_file
};
-static struct krb5_kt_typelist *kt_typehead = &krb5_kt_typelist_srvtab;
+static const struct krb5_kt_typelist *kt_typehead = &krb5_kt_typelist_srvtab;
/*
*/
krb5_error_code KRB5_CALLCONV
-krb5_kt_register(krb5_context context, krb5_kt_ops *ops)
+krb5_kt_register(krb5_context context, const krb5_kt_ops *ops)
{
struct krb5_kt_typelist *t;
for (t = kt_typehead;t && strcmp(t->ops->prefix,ops->prefix);t = t->next)