[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with lifetime of krb5_ccache's...



On Monday 03 June 2002 04:30 am, Johan Danielsson wrote:
> If you didn't free the cache, it should still exist, and you should be
> able to resolve to it later (with new context). That is, this should
> work:
>
> krb5_init_context(&context);
> krb5_cc_resolve(context, &id, "MEMORY:foo");
> krb5_cc_initialize(context, id, principal);
> ...
> krb5_cc_close(context, id);
> krb5_free_context(&context);
> krb5_cc_resolve(context, &id, "MEMORY:foo");
I was able to get this approach working- it is a better solution. 

Thanks,
Wynn