1505d05c7Sgtb /*
2505d05c7Sgtb  * lib/krb5/ccache/ccfns.c
3505d05c7Sgtb  *
4*159d09a2SMark Phalan  * Copyright 2000, 2007 by the Massachusetts Institute of Technology.
5505d05c7Sgtb  * All Rights Reserved.
6505d05c7Sgtb  *
7505d05c7Sgtb  * Export of this software from the United States of America may
8505d05c7Sgtb  *   require a specific license from the United States Government.
9505d05c7Sgtb  *   It is the responsibility of any person or organization contemplating
10505d05c7Sgtb  *   export to obtain such a license before exporting.
11505d05c7Sgtb  *
12505d05c7Sgtb  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
13505d05c7Sgtb  * distribute this software and its documentation for any purpose and
14505d05c7Sgtb  * without fee is hereby granted, provided that the above copyright
15505d05c7Sgtb  * notice appear in all copies and that both that copyright notice and
16505d05c7Sgtb  * this permission notice appear in supporting documentation, and that
17505d05c7Sgtb  * the name of M.I.T. not be used in advertising or publicity pertaining
18505d05c7Sgtb  * to distribution of the software without specific, written prior
19505d05c7Sgtb  * permission.  Furthermore if you modify this software you must label
20505d05c7Sgtb  * your software as modified software and not distribute it in such a
21505d05c7Sgtb  * fashion that it might be confused with the original M.I.T. software.
22505d05c7Sgtb  * M.I.T. makes no representations about the suitability of
23505d05c7Sgtb  * this software for any purpose.  It is provided "as is" without express
24505d05c7Sgtb  * or implied warranty.
25505d05c7Sgtb  */
26505d05c7Sgtb 
27505d05c7Sgtb /*
28505d05c7Sgtb  * Dispatch methods for credentials cache code.
29505d05c7Sgtb  */
30505d05c7Sgtb 
31505d05c7Sgtb #include "k5-int.h"
32505d05c7Sgtb 
33505d05c7Sgtb const char * KRB5_CALLCONV
krb5_cc_get_name(krb5_context context,krb5_ccache cache)34505d05c7Sgtb krb5_cc_get_name (krb5_context context, krb5_ccache cache)
35505d05c7Sgtb {
36505d05c7Sgtb     return cache->ops->get_name(context, cache);
37505d05c7Sgtb }
38505d05c7Sgtb 
39505d05c7Sgtb krb5_error_code KRB5_CALLCONV
krb5_cc_gen_new(krb5_context context,krb5_ccache * cache)40505d05c7Sgtb krb5_cc_gen_new (krb5_context context, krb5_ccache *cache)
41505d05c7Sgtb {
42505d05c7Sgtb     return (*cache)->ops->gen_new(context, cache);
43505d05c7Sgtb }
44505d05c7Sgtb 
45505d05c7Sgtb krb5_error_code KRB5_CALLCONV
krb5_cc_initialize(krb5_context context,krb5_ccache cache,krb5_principal principal)46505d05c7Sgtb krb5_cc_initialize(krb5_context context, krb5_ccache cache,
47505d05c7Sgtb 		   krb5_principal principal)
48505d05c7Sgtb {
49505d05c7Sgtb     return cache->ops->init(context, cache, principal);
50505d05c7Sgtb }
51505d05c7Sgtb 
52505d05c7Sgtb krb5_error_code KRB5_CALLCONV
krb5_cc_destroy(krb5_context context,krb5_ccache cache)53505d05c7Sgtb krb5_cc_destroy (krb5_context context, krb5_ccache cache)
54505d05c7Sgtb {
55505d05c7Sgtb     return cache->ops->destroy(context, cache);
56505d05c7Sgtb }
57505d05c7Sgtb 
58505d05c7Sgtb krb5_error_code KRB5_CALLCONV
krb5_cc_close(krb5_context context,krb5_ccache cache)59505d05c7Sgtb krb5_cc_close (krb5_context context, krb5_ccache cache)
60505d05c7Sgtb {
61505d05c7Sgtb     return cache->ops->close(context, cache);
62505d05c7Sgtb }
63505d05c7Sgtb 
64505d05c7Sgtb krb5_error_code KRB5_CALLCONV
krb5_cc_store_cred(krb5_context context,krb5_ccache cache,krb5_creds * creds)65