Changed Mac specific stuff to use CCache API
authorMiro Jurisic <meeroh@mit.edu>
Fri, 21 Aug 1998 21:38:05 +0000 (21:38 +0000)
committerMiro Jurisic <meeroh@mit.edu>
Fri, 21 Aug 1998 21:38:05 +0000 (21:38 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10861 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/os/ChangeLog
src/lib/krb5/os/ccdefname.c

index 921d8d3c4ef34a4528b3781be4cef74c3505e5d2..9b6df700c7b6140034cb4f26fd78a5c757eeeee5 100644 (file)
@@ -1,3 +1,8 @@
+Fri Aug 21 17:37:00 1998  Miro Jurisic  <meeroh@mit.edu>
+
+       * ccdefname.c.c (krb5_cc_default_name): Changed the Mac
+                       version to use CCache API by default.
+
 Thu Jul 16 09:59:34 1998  Ezra Peisach  <epeisach@mit.edu>
 
        * changepw.c (krb5_change_password): Changes casts from char * to
index d3914bcdc31750540d7274ab9c0eb0ce5736e16a..cbaeba5afb30c289167945b173b00b8a12a35abe 100644 (file)
@@ -92,19 +92,22 @@ krb5_cc_default_name(context)
     
     if (name == 0) {
 
+/* meeroh: I have no idea why we're using HAVE_MACSOCK_H here instead of macintosh,
+       but since I am not sure it is worng I will leave it that way. */
 #ifdef HAVE_MACSOCK_H
 {
-short  vRefnum;
-long   parID;
-OSErr  theErr;
-FSSpec krbccSpec;
-char   pathbuf[255];
+//short        vRefnum;
+//long parID;
+//OSErr        theErr;
+//FSSpec       krbccSpec;
+//char pathbuf[255];
 
-       theErr = FindFolder(kOnSystemDisk, kPreferencesFolderType, kDontCreateFolder, &vRefnum, &parID);
-       FSMakeFSSpec(vRefnum, parID, "\pkrb5cc", &krbccSpec);
-       GetPathname(&krbccSpec, &pathbuf);
-       sprintf(name_buf, "STDIO:%s", pathbuf);
+//     theErr = FindFolder(kOnSystemDisk, kPreferencesFolderType, kDontCreateFolder, &vRefnum, &parID);
+//     FSMakeFSSpec(vRefnum, parID, "\pkrb5cc", &krbccSpec);
+//     GetPathname(&krbccSpec, &pathbuf);
+//     sprintf(name_buf, "STDIO:%s", pathbuf);
 //     strcpy (name_buf, "STDIO:krb5cc");
+       strcpy (name_buf, "API:default_cache_name");
 }
 #else
 #if defined(_MSDOS) || defined(_WIN32)