Don't make krb5_ccache point into krb5_context allocated memory

Don't make a copy of the krb5_cc_ops into krb5_context and hand that
out to callers of the api, this way its possible to free a krb5_context
w/o invalidating all krb5_ccaches that was allocated using that krb5_context
(also, it saves memory)
This commit is contained in:
Love Hornquist Astrand
2009-09-01 12:22:16 -07:00
parent 20001366aa
commit 9f9783464c
2 changed files with 17 additions and 18 deletions

View File

@@ -234,7 +234,7 @@ typedef struct krb5_context_data {
krb5_config_section *cf;
struct et_list *et_list;
struct krb5_log_facility *warn_dest;
krb5_cc_ops *cc_ops;
const krb5_cc_ops **cc_ops;
int num_cc_ops;
const char *http_proxy;
const char *time_fmt;