From b0ba37d073dc4c2276acd1d4450db2e4eb3d224b Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sat, 20 Jan 2001 03:06:32 +0000 Subject: [PATCH] * 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 --- src/lib/krb5/rcache/ChangeLog | 6 +++ src/lib/krb5/rcache/Makefile.in | 9 ++-- src/lib/krb5/rcache/rcfns.c | 87 +++++++++++++++++++++++++++++++++ 3 files changed, 99 insertions(+), 3 deletions(-) create mode 100644 src/lib/krb5/rcache/rcfns.c diff --git a/src/lib/krb5/rcache/ChangeLog b/src/lib/krb5/rcache/ChangeLog index 9fa3733ef..933a57465 100644 --- a/src/lib/krb5/rcache/ChangeLog +++ b/src/lib/krb5/rcache/ChangeLog @@ -1,3 +1,9 @@ +2001-01-16 Ken Raeburn + + * 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 * 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 9bb3d0f61..6496ba7b4 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 000000000..c19753df7 --- /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)); +} -- 2.26.2