summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2001-01-20 03:06:32 +0000
committerKen Raeburn <raeburn@mit.edu>2001-01-20 03:06:32 +0000
commitb0ba37d073dc4c2276acd1d4450db2e4eb3d224b (patch)
tree7437ccbc50a8c26761030dac4cf324fb8cf66df1 /src
parent038440baed90f61cbc8bdcefaf8544294aea008a (diff)
downloadkrb5-b0ba37d073dc4c2276acd1d4450db2e4eb3d224b.tar.gz
krb5-b0ba37d073dc4c2276acd1d4450db2e4eb3d224b.tar.xz
krb5-b0ba37d073dc4c2276acd1d4450db2e4eb3d224b.zip
* rcfns.c: New file, with fn versions of former dispatch macros from krb5.h
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12919 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/lib/krb5/rcache/ChangeLog6
-rw-r--r--src/lib/krb5/rcache/Makefile.in9
-rw-r--r--src/lib/krb5/rcache/rcfns.c87
3 files changed, 99 insertions, 3 deletions
diff --git a/src/lib/krb5/rcache/ChangeLog b/src/lib/krb5/rcache/ChangeLog
index 9fa3733efd..933a574652 100644
--- a/src/lib/krb5/rcache/ChangeLog
+++ b/src/lib/krb5/rcache/ChangeLog
@@ -1,3 +1,9 @@
+2001-01-16 Ken Raeburn <raeburn@mit.edu>
+
+ * rcfns.c: New file, with function versions of former dispatch
+ macros from krb5.h.
+ * Makefile.in (STLIBOBJS, OBJS, SRCS): Add it.
+
2000-09-21 Ezra Peisach <epeisach@mit.edu>
* rc_io.h (struct krb5_rc_iostuff): Internal structure - change
diff --git a/src/lib/krb5/rcache/Makefile.in b/src/lib/krb5/rcache/Makefile.in
index 9bb3d0f615..6496ba7b44 100644
--- a/src/lib/krb5/rcache/Makefile.in
+++ b/src/lib/krb5/rcache/Makefile.in
@@ -14,7 +14,8 @@ STLIBOBJS = \
rc_io.o \
rcdef.o \
rc_conv.o \
- ser_rc.o
+ ser_rc.o \
+ rcfns.o
OBJS= \
$(OUTPRE)rc_base.$(OBJEXT) \
@@ -22,7 +23,8 @@ OBJS= \
$(OUTPRE)rc_io.$(OBJEXT) \
$(OUTPRE)rcdef.$(OBJEXT) \
$(OUTPRE)rc_conv.$(OBJEXT) \
- $(OUTPRE)ser_rc.$(OBJEXT)
+ $(OUTPRE)ser_rc.$(OBJEXT) \
+ $(OUTPRE)rcfns.$(OBJEXT)
SRCS= \
$(srcdir)/rc_base.c \
@@ -30,7 +32,8 @@ SRCS= \
$(srcdir)/rc_io.c \
$(srcdir)/rcdef.c \
$(srcdir)/rc_conv.c \
- $(srcdir)/ser_rc.c
+ $(srcdir)/ser_rc.c \
+ $(srcdir)/rcfns.c
##DOS##LIBOBJS = $(OBJS)
diff --git a/src/lib/krb5/rcache/rcfns.c b/src/lib/krb5/rcache/rcfns.c
new file mode 100644
index 0000000000..c19753df7b
--- /dev/null
+++ b/src/lib/krb5/rcache/rcfns.c
@@ -0,0 +1,87 @@
+/*
+ * lib/krb5/rcache/rcfns.c
+ *
+ * Copyright 2001 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
+ *
+ * Export of this software from the United States of America may
+ * require a specific license from the United States Government.
+ * It is the responsibility of any person or organization contemplating
+ * export to obtain such a license before exporting.
+ *
+ * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
+ * distribute this software and its documentation for any purpose and
+ * without fee is hereby granted, provided that the above copyright
+ * notice appear in all copies and that both that copyright notice and
+ * this permission notice appear in supporting documentation, and that
+ * the name of M.I.T. not be used in advertising or publicity pertaining
+ * to distribution of the software without specific, written prior
+ * permission. Furthermore if you modify this software you must label
+ * your software as modified software and not distribute it in such a
+ * fashion that it might be confused with the original M.I.T. software.
+ * M.I.T. makes no representations about the suitability of
+ * this software for any purpose. It is provided "as is" without express
+ * or implied warranty.
+ */
+
+/*
+ * Dispatch methods for replay cache code.
+ */
+
+#include "k5-int.h"
+
+krb5_error_code KRB5_CALLCONV
+krb5_rc_initialize (krb5_context context, krb5_rcache id, krb5_deltat span)
+{
+ return krb5_x(id->ops->init,(context, id, span));
+}
+
+krb5_error_code KRB5_CALLCONV
+krb5_rc_recover (krb5_context context, krb5_rcache id)
+{
+ return krb5_x((id)->ops->recover,(context, id));
+}
+
+krb5_error_code KRB5_CALLCONV
+krb5_rc_destroy (krb5_context context, krb5_rcache id)
+{
+ return krb5_x((id)->ops->destroy,(context, id));
+}
+
+krb5_error_code KRB5_CALLCONV
+krb5_rc_close (krb5_context context, krb5_rcache id)
+{
+ return krb5_x((id)->ops->close,(context, id));
+}
+
+krb5_error_code KRB5_CALLCONV
+krb5_rc_store (krb5_context context, krb5_rcache id,
+ krb5_donot_replay FAR *dontreplay)
+{
+ return krb5_x((id)->ops->store,(context, id, dontreplay));
+}
+
+krb5_error_code KRB5_CALLCONV
+krb5_rc_expunge (krb5_context context, krb5_rcache id)
+{
+ return krb5_x((id)->ops->expunge,(context, id));
+}
+
+krb5_error_code KRB5_CALLCONV
+krb5_rc_get_lifespan (krb5_context context, krb5_rcache id,
+ krb5_deltat FAR *spanp)
+{
+ return krb5_x((id)->ops->get_span,(context, id, spanp));
+}
+
+char FAR *KRB5_CALLCONV
+krb5_rc_get_name (krb5_context context, krb5_rcache id)
+{
+ return krb5_xc((id)->ops->get_name,(context, id));
+}
+
+krb5_error_code KRB5_CALLCONV
+krb5_rc_resolve (krb5_context context, krb5_rcache id, char FAR *name)
+{
+ return krb5_x((id)->ops->resolve,(context, id, name));
+}