+2002-09-18 Ken Raeburn <raeburn@mit.edu>
+
+ * client_init.c (_kadm5_init_any): If creating a new ccache, put
+ it in memory instead of on disk.
+
2002-08-29 Ken Raeburn <raeburn@mit.edu>
* Makefile.in: Revert $(S)=>/ change, for Windows support.
krb5_cc_get_type(handle->context, ccache),
krb5_cc_get_name(handle->context, ccache));
} else {
+#if 0
handle->cache_name =
(char *) malloc(strlen(ADM_CCACHE)+strlen("FILE:")+1);
if (handle->cache_name == NULL) {
}
sprintf(handle->cache_name, "FILE:%s", ADM_CCACHE);
mktemp(handle->cache_name + strlen("FILE:"));
+#else
+ {
+ static int counter = 0;
+ handle->cache_name = malloc(sizeof("MEMORY:kadm5_")
+ + 3*sizeof(counter));
+ sprintf(handle->cache_name, "MEMORY:kadm5_%u", counter++);
+ }
+#endif
if ((code = krb5_cc_resolve(handle->context, handle->cache_name,
&ccache)))