From: John Gilmore Date: Wed, 29 Mar 1995 16:55:01 +0000 (+0000) Subject: * ccdefname.c: On Mac, default cred cache is "STDIO:krb5cc" for now. X-Git-Tag: krb5-1.0-beta5~413 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b232034c308dfe623a7e896abcee66329d3e1967;p=krb5.git * ccdefname.c: On Mac, default cred cache is "STDIO:krb5cc" for now. FIXME, this needs to find the Preferences folder and use that. FIXME, shouldn't be conditioned on HAVE_MACSOCK_H. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5308 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/ccdefname.c b/src/lib/krb5/os/ccdefname.c index 5ec4256cd..a08a66e58 100644 --- a/src/lib/krb5/os/ccdefname.c +++ b/src/lib/krb5/os/ccdefname.c @@ -39,6 +39,9 @@ krb5_cc_default_name(context) if (name_buf == 0) name_buf = malloc (160); +#ifdef HAVE_MACSOCK_H + strcpy (name_buf, "STDIO:krb5cc"); +#else #ifdef _WINDOWS { char defname[160]; /* Default value */ @@ -51,6 +54,7 @@ krb5_cc_default_name(context) } #else sprintf(name_buf, "FILE:/tmp/krb5cc_%d", getuid()); +#endif #endif name = name_buf; }