2N/A/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2N/A/*
2N/A * lib/krb5/rcache/rcfns.c
2N/A *
2N/A * Copyright 2001 by the Massachusetts Institute of Technology.
2N/A * All Rights Reserved.
2N/A *
2N/A * Export of this software from the United States of America may
2N/A * require a specific license from the United States Government.
2N/A * It is the responsibility of any person or organization contemplating
2N/A * export to obtain such a license before exporting.
2N/A *
2N/A * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
2N/A * distribute this software and its documentation for any purpose and
2N/A * without fee is hereby granted, provided that the above copyright
2N/A * notice appear in all copies and that both that copyright notice and
2N/A * this permission notice appear in supporting documentation, and that
2N/A * the name of M.I.T. not be used in advertising or publicity pertaining
2N/A * to distribution of the software without specific, written prior
2N/A * permission. Furthermore if you modify this software you must label
2N/A * your software as modified software and not distribute it in such a
2N/A * fashion that it might be confused with the original M.I.T. software.
2N/A * M.I.T. makes no representations about the suitability of
2N/A * this software for any purpose. It is provided "as is" without express
2N/A * or implied warranty.
2N/A */
2N/A
2N/A/*
2N/A * Dispatch methods for replay cache code.
2N/A */
2N/A
2N/A#include "k5-int.h"
2N/A#include "rc-int.h"
2N/A
2N/Akrb5_error_code KRB5_CALLCONV
2N/Akrb5_rc_initialize (krb5_context context, krb5_rcache id, krb5_deltat span)
2N/A{
2N/A return krb5_x(id->ops->init,(context, id, span));
2N/A}
2N/A
2N/Akrb5_error_code KRB5_CALLCONV
2N/Akrb5_rc_recover_or_initialize (krb5_context context, krb5_rcache id,
2N/A krb5_deltat span)
2N/A{
2N/A return krb5_x(id->ops->recover_or_init,(context, id, span));
2N/A}
2N/A
2N/Akrb5_error_code KRB5_CALLCONV
2N/Akrb5_rc_recover (krb5_context context, krb5_rcache id)
2N/A{
2N/A return krb5_x((id)->ops->recover,(context, id));
2N/A}
2N/A
2N/Akrb5_error_code KRB5_CALLCONV
2N/Akrb5_rc_destroy (krb5_context context, krb5_rcache id)
2N/A{
2N/A return krb5_x((id)->ops->destroy,(context, id));
2N/A}
2N/A
2N/Akrb5_error_code KRB5_CALLCONV
2N/Akrb5_rc_close (krb5_context context, krb5_rcache id)
2N/A{
2N/A return krb5_x((id)->ops->close,(context, id));
2N/A}
2N/A
2N/Akrb5_error_code KRB5_CALLCONV
2N/Akrb5_rc_store (krb5_context context, krb5_rcache id,
2N/A krb5_donot_replay *dontreplay)
2N/A{
2N/A return krb5_x((id)->ops->store,(context, id, dontreplay));
2N/A}
2N/A
2N/Akrb5_error_code KRB5_CALLCONV
2N/Akrb5_rc_expunge (krb5_context context, krb5_rcache id)
2N/A{
2N/A return krb5_x((id)->ops->expunge,(context, id));
2N/A}
2N/A
2N/Akrb5_error_code KRB5_CALLCONV
2N/Akrb5_rc_get_lifespan (krb5_context context, krb5_rcache id,
2N/A krb5_deltat *spanp)
2N/A{
2N/A return krb5_x((id)->ops->get_span,(context, id, spanp));
2N/A}
2N/A
2N/Achar *KRB5_CALLCONV
2N/Akrb5_rc_get_name (krb5_context context, krb5_rcache id)
2N/A{
2N/A return krb5_xc((id)->ops->get_name,(context, id));
2N/A}
2N/A
2N/Akrb5_error_code KRB5_CALLCONV
2N/Akrb5_rc_resolve (krb5_context context, krb5_rcache id, char *name)
2N/A{
2N/A return krb5_x((id)->ops->resolve,(context, id, name));
2N/A}