* rcfns.c: New file, with fn versions of former dispatch macros from krb5.h
authorKen Raeburn <raeburn@mit.edu>
Sat, 20 Jan 2001 03:06:32 +0000 (03:06 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sat, 20 Jan 2001 03:06:32 +0000 (03:06 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12919 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/rcache/ChangeLog
src/lib/krb5/rcache/Makefile.in
src/lib/krb5/rcache/rcfns.c [new file with mode: 0644]

index 9fa3733efd5bdd84eba86328fe43dec809097ffd..933a574652185fca4f6d169422ce04e9ea040bbc 100644 (file)
@@ -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
index 9bb3d0f615a1fa3dcba77972c44ba0249d6b7871..6496ba7b44ac96a3272ef99e5d15ce01d097a98d 100644 (file)
@@ -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 (file)
index 0000000..c19753d
--- /dev/null
@@ -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));
+}