diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2004-06-02 22:25:37 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2004-06-02 22:25:37 +0000 |
| commit | ed83f1a5cdea894f6e550bd3274ccdb316b3dbf9 (patch) | |
| tree | 9fd0986858079edc954f0d72536bf057886521b9 /src/lib | |
| parent | f9b3f8f869d5332cec22d44586d6dd1bff2f880c (diff) | |
| download | krb5-ed83f1a5cdea894f6e550bd3274ccdb316b3dbf9.tar.gz krb5-ed83f1a5cdea894f6e550bd3274ccdb316b3dbf9.tar.xz krb5-ed83f1a5cdea894f6e550bd3274ccdb316b3dbf9.zip | |
Move definitions of struct krb5_rc_st, struct _krb5_rc_ops, krb5_rc_ops, and
declarations of krb5_rc_register_type, krb5_rc_dfl_ops from k5-int.h to
rc-int.h. Include rc-int.h in the krb5/rcache files that need it.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16386 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/krb5/rcache/ChangeLog | 8 | ||||
| -rw-r--r-- | src/lib/krb5/rcache/rc-int.h | 38 | ||||
| -rw-r--r-- | src/lib/krb5/rcache/rc_dfl.c | 1 | ||||
| -rw-r--r-- | src/lib/krb5/rcache/rcdef.c | 1 | ||||
| -rw-r--r-- | src/lib/krb5/rcache/rcfns.c | 1 | ||||
| -rw-r--r-- | src/lib/krb5/rcache/ser_rc.c | 1 |
6 files changed, 49 insertions, 1 deletions
diff --git a/src/lib/krb5/rcache/ChangeLog b/src/lib/krb5/rcache/ChangeLog index 2b4b65da2b..496cd57b59 100644 --- a/src/lib/krb5/rcache/ChangeLog +++ b/src/lib/krb5/rcache/ChangeLog @@ -1,3 +1,11 @@ +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 diff --git a/src/lib/krb5/rcache/rc-int.h b/src/lib/krb5/rcache/rc-int.h index 613d7e9f1c..d64c348576 100644 --- a/src/lib/krb5/rcache/rc-int.h +++ b/src/lib/krb5/rcache/rc-int.h @@ -25,7 +25,7 @@ * * * 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__ @@ -35,4 +35,40 @@ int krb5int_rc_finish_init(void); 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__ */ diff --git a/src/lib/krb5/rcache/rc_dfl.c b/src/lib/krb5/rcache/rc_dfl.c index b16f998c68..c4f845178f 100644 --- a/src/lib/krb5/rcache/rc_dfl.c +++ b/src/lib/krb5/rcache/rc_dfl.c @@ -15,6 +15,7 @@ #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. diff --git a/src/lib/krb5/rcache/rcdef.c b/src/lib/krb5/rcache/rcdef.c index 726816b4b3..73b2eb9680 100644 --- a/src/lib/krb5/rcache/rcdef.c +++ b/src/lib/krb5/rcache/rcdef.c @@ -28,6 +28,7 @@ */ #include "k5-int.h" +#include "rc-int.h" #include "rc_dfl.h" const krb5_rc_ops krb5_rc_dfl_ops = diff --git a/src/lib/krb5/rcache/rcfns.c b/src/lib/krb5/rcache/rcfns.c index a98fdd0348..d37b4f6ec6 100644 --- a/src/lib/krb5/rcache/rcfns.c +++ b/src/lib/krb5/rcache/rcfns.c @@ -29,6 +29,7 @@ */ #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) diff --git a/src/lib/krb5/rcache/ser_rc.c b/src/lib/krb5/rcache/ser_rc.c index 2aa4eb3438..0b3d098a8a 100644 --- a/src/lib/krb5/rcache/ser_rc.c +++ b/src/lib/krb5/rcache/ser_rc.c @@ -29,6 +29,7 @@ * ser_rcdfl.c - Serialize replay cache context. */ #include "k5-int.h" +#include "rc-int.h" /* * Routines to deal with externalizing krb5_rcache. |
