diff options
| author | John Kohl <jtkohl@mit.edu> | 1990-05-02 15:44:37 +0000 |
|---|---|---|
| committer | John Kohl <jtkohl@mit.edu> | 1990-05-02 15:44:37 +0000 |
| commit | 76cd88cd07e41e795169296ad6923d58a99bebe8 (patch) | |
| tree | bdae68d0235e6db113cd0daba92199b1952711de /src/include | |
| parent | 1148182fbe8e6e02989e818cf1422e4787e8afd8 (diff) | |
| download | krb5-76cd88cd07e41e795169296ad6923d58a99bebe8.tar.gz krb5-76cd88cd07e41e795169296ad6923d58a99bebe8.tar.xz krb5-76cd88cd07e41e795169296ad6923d58a99bebe8.zip | |
macro-ize cc functions as appropriate
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@671 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/krb5/ccache.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/krb5/ccache.h b/src/include/krb5/ccache.h index f2e6d89971..4ff83d4e34 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__ */ |
