From 76cd88cd07e41e795169296ad6923d58a99bebe8 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 2 May 1990 15:44:37 +0000 Subject: [PATCH] macro-ize cc functions as appropriate git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@671 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/krb5/ccache.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/include/krb5/ccache.h b/src/include/krb5/ccache.h index f2e6d8997..4ff83d4e3 100644 --- a/src/include/krb5/ccache.h +++ b/src/include/krb5/ccache.h @@ -56,4 +56,17 @@ typedef struct _krb5_cc_ops { /* for set_flags and other functions */ #define KRB5_TC_OPENCLOSE 0x00000001 +#define krb5_cc_initialize(cache, principal) (*(cache)->ops->init)(cache, principal) +#define krb5_cc_destroy(cache) (*(cache)->ops->destroy)(cache) +#define krb5_cc_close(cache) (*(cache)->ops->close)(cache) +#define krb5_cc_store_cred(cache, creds) (*(cache)->ops->store)(cache, creds) +#define krb5_cc_retrieve_cred(cache, flags, mcreds, creds) (*(cache)->ops->retrieve)(cache, flags, mcreds, creds) +#define krb5_cc_get_principal(cache, principal) (*(cache)->ops->get_princ)(cache, principal) +#define krb5_cc_start_seq_get(cache, cursor) (*(cache)->ops->get_first)(cache, cursor) +#define krb5_cc_next_cred(cache, cursor, creds) (*(cache)->ops->get_next)(cache, cursor, creds) +#define krb5_cc_end_seq_get(cache, cursor) (*(cache)->ops->end_get)(cache, cursor) +#define krb5_cc_remove_cred(cache, flags, creds) (*(cache)->ops->remove_cred)(cache,flags, creds) +#define krb5_cc_set_flags(cache, flags) (*(cache)->ops->set_flags)(cache, flags) +#define krb5_cc_get_name(cache) (*(cache)->ops->get_name)(cache) + #endif /* KRB5_CCACHE__ */ -- 2.26.2