* ccdefname.c: On Mac, default cred cache is "STDIO:krb5cc" for now.
authorJohn Gilmore <gnu@toad.com>
Wed, 29 Mar 1995 16:55:01 +0000 (16:55 +0000)
committerJohn Gilmore <gnu@toad.com>
Wed, 29 Mar 1995 16:55:01 +0000 (16:55 +0000)
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

src/lib/krb5/os/ccdefname.c

index 5ec4256cd00ce6e1c665968e431099f0884f50c1..a08a66e5818d65bf890f69539b41d61ac6fbec23 100644 (file)
@@ -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;
     }