+2004-06-02 Ken Raeburn <raeburn@mit.edu>
+
+ * k5-int.h (struct krb5_rc_st, struct _krb5_rc_ops, krb5_rc_ops):
+ Move type definitions to rc-int.h.
+ (krb5_rc_register_type, krb5_rc_dfl_ops): Move declarations to
+ rc-int.h.
+
2004-05-30 Ken Raeburn <raeburn@mit.edu>
* k5-int.h (krb5int_crypto_init, krb5int_prng_init): Declare.
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;
- const struct _krb5_rc_ops *ops;
- krb5_pointer data;
- k5_mutex_t lock;
-};
-
typedef struct _krb5_donot_replay {
krb5_magic magic;
krb5_ui_4 hash;
krb5_error_code KRB5_CALLCONV krb5_rc_resolve
(krb5_context, krb5_rcache, char *);
-struct _krb5_rc_ops {
- krb5_magic magic;
- char *type;
- krb5_error_code (KRB5_CALLCONV *init)
- (krb5_context, krb5_rcache,krb5_deltat); /* create */
- krb5_error_code (KRB5_CALLCONV *recover)
- (krb5_context, krb5_rcache); /* open */
- krb5_error_code (KRB5_CALLCONV *destroy)
- (krb5_context, krb5_rcache);
- krb5_error_code (KRB5_CALLCONV *close)
- (krb5_context, krb5_rcache);
- krb5_error_code (KRB5_CALLCONV *store)
- (krb5_context, krb5_rcache,krb5_donot_replay *);
- krb5_error_code (KRB5_CALLCONV *expunge)
- (krb5_context, krb5_rcache);
- krb5_error_code (KRB5_CALLCONV *get_span)
- (krb5_context, krb5_rcache,krb5_deltat *);
- char *(KRB5_CALLCONV *get_name)
- (krb5_context, krb5_rcache);
- krb5_error_code (KRB5_CALLCONV *resolve)
- (krb5_context, krb5_rcache, char *);
-};
-
-typedef struct _krb5_rc_ops krb5_rc_ops;
-
-krb5_error_code krb5_rc_register_type (krb5_context, const krb5_rc_ops *);
-
-extern const krb5_rc_ops krb5_rc_dfl_ops;
-
typedef struct _krb5_kt_ops {
krb5_magic magic;
char *prefix;
+2004-06-02 Ken Raeburn <raeburn@mit.edu>
+
+ * rc-int.h (struct krb5_rc_st, struct _krb5_rc_ops, krb5_rc_ops):
+ Move type definitions here from k5-int.h.
+ (krb5_rc_register_type, krb5_rc_dfl_ops): Move declarations here
+ from k5-int.h.
+ * rc_dfl.c, rcdef.c, rcfns.c: Include rc-int.h.
+
2004-05-27 Ezra Peisach <epeisach@mit.edu>
* rc_base.c: Include rc-int.h
*
*
* This file contains constant and function declarations used in the
- * file-based credential cache routines.
+ * file-based replay cache routines.
*/
#ifndef __KRB5_RCACHE_INT_H__
void krb5int_rc_terminate(void);
+struct krb5_rc_st {
+ krb5_magic magic;
+ const struct _krb5_rc_ops *ops;
+ krb5_pointer data;
+ k5_mutex_t lock;
+};
+
+struct _krb5_rc_ops {
+ krb5_magic magic;
+ char *type;
+ krb5_error_code (KRB5_CALLCONV *init)
+ (krb5_context, krb5_rcache,krb5_deltat); /* create */
+ krb5_error_code (KRB5_CALLCONV *recover)
+ (krb5_context, krb5_rcache); /* open */
+ krb5_error_code (KRB5_CALLCONV *destroy)
+ (krb5_context, krb5_rcache);
+ krb5_error_code (KRB5_CALLCONV *close)
+ (krb5_context, krb5_rcache);
+ krb5_error_code (KRB5_CALLCONV *store)
+ (krb5_context, krb5_rcache,krb5_donot_replay *);
+ krb5_error_code (KRB5_CALLCONV *expunge)
+ (krb5_context, krb5_rcache);
+ krb5_error_code (KRB5_CALLCONV *get_span)
+ (krb5_context, krb5_rcache,krb5_deltat *);
+ char *(KRB5_CALLCONV *get_name)
+ (krb5_context, krb5_rcache);
+ krb5_error_code (KRB5_CALLCONV *resolve)
+ (krb5_context, krb5_rcache, char *);
+};
+
+typedef struct _krb5_rc_ops krb5_rc_ops;
+
+krb5_error_code krb5_rc_register_type (krb5_context, const krb5_rc_ops *);
+
+extern const krb5_rc_ops krb5_rc_dfl_ops;
+
#endif /* __KRB5_RCACHE_INT_H__ */
#include "rc_dfl.h"
#include "rc_io.h"
#include "k5-int.h"
+#include "rc-int.h"
/*
* If NOIOSTUFF is defined at compile time, dfl rcaches will be per-process.
*/
#include "k5-int.h"
+#include "rc-int.h"
#include "rc_dfl.h"
const krb5_rc_ops krb5_rc_dfl_ops =
*/
#include "k5-int.h"
+#include "rc-int.h"
krb5_error_code KRB5_CALLCONV
krb5_rc_initialize (krb5_context context, krb5_rcache id, krb5_deltat span)
* ser_rcdfl.c - Serialize replay cache context.
*/
#include "k5-int.h"
+#include "rc-int.h"
/*
* Routines to deal with externalizing krb5_rcache.