+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
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;
};
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;
+2003-01-07 Ken Raeburn <raeburn@mit.edu>
+
+ * ccdefops.c (krb5_cc_dfl_ops): Now points to const.
+
2002-09-03 Ken Raeburn <raeburn@mit.edu>
* cc_file.c, cc_memory.c, cc_retr.c, ccbase.c, cccopy.c,
*/
#include "stdcc.h" /* from ccapi subdir */
-krb5_cc_ops *krb5_cc_dfl_ops = &krb5_cc_stdcc_ops;
+const krb5_cc_ops *krb5_cc_dfl_ops = &krb5_cc_stdcc_ops;
#else
#include "fcc.h"
-krb5_cc_ops *krb5_cc_dfl_ops = &krb5_cc_file_ops;
+const krb5_cc_ops *krb5_cc_dfl_ops = &krb5_cc_file_ops;
#endif
+2003-01-07 Ken Raeburn <raeburn@mit.edu>
+
+ * rc_base.c (struct krb5_rc_typelist): Field "ops" now points to
+ const.
+ (krb5_rc_register_type): Likewise for "ops" argument.
+ * rcdef.c (krb5_rc_dfl_ops): Now const.
+ * rc_dfl.h (krb5_rc_dfl_ops): Declaration deleted.
+
2002-09-05 Ken Raeburn <raeburn@mit.edu>
* rc_io.c (krb5_rc_io_move): Missed a variable name change.
struct krb5_rc_typelist
{
- krb5_rc_ops *ops;
+ const krb5_rc_ops *ops;
struct krb5_rc_typelist *next;
};
static struct krb5_rc_typelist krb5_rc_typelist_dfl = { &krb5_rc_dfl_ops, 0 };
semaphore ex_typelist = 1;
#endif
-krb5_error_code krb5_rc_register_type(krb5_context context, krb5_rc_ops *ops)
+krb5_error_code krb5_rc_register_type(krb5_context context,
+ const krb5_rc_ops *ops)
{
struct krb5_rc_typelist *t;
#ifdef SEMAPHORE
#ifndef KRB5_RC_DFL_H
#define KRB5_RC_DFL_H
-extern krb5_rc_ops krb5_rc_dfl_ops; /* initialized to the following */
-
krb5_error_code KRB5_CALLCONV krb5_rc_dfl_init
(krb5_context,
krb5_rcache,
#include "k5-int.h"
#include "rc_dfl.h"
-krb5_rc_ops krb5_rc_dfl_ops =
+const krb5_rc_ops krb5_rc_dfl_ops =
{
0,
"dfl",