+2000-02-04 Scott McGuire <smcguire@mit.edu>
+
+ * stdcc.c (krb5_stdcc_initialize): Removed calls that destroyed
+ and recreated ccapi_data->NamedCache; instead close
+ and call create on it again. (This makes sure the data stays
+ in the same cache the whole time so external pointers don't
+ get confused.)
+
1999-11-22 Miro Jurisic <meeroh@mit.edu>
* stdcc.h, stdcc_util.h: use CCache2.h under MacOS for CCAPI v2
ccapi_data = id->data;
- if (!ccapi_data->NamedCache) {
- err = cc_open(gCntrlBlock, ccapi_data->cache_name,
- CC_CRED_V5, 0L,
- &ccapi_data->NamedCache);
- if (err != CC_NOERROR)
- ccapi_data->NamedCache = NULL;
- }
if (ccapi_data->NamedCache)
- cc_destroy(gCntrlBlock, &ccapi_data->NamedCache);
+ cc_close(gCntrlBlock, &ccapi_data->NamedCache);
err = cc_create(gCntrlBlock, ccapi_data->cache_name, cName,
CC_CRED_V5, 0L, &ccapi_data->NamedCache);