From bd110bb32b47a5b57744dfa6021465b4c5fd0baf Mon Sep 17 00:00:00 2001 From: Miro Jurisic Date: Fri, 21 Aug 1998 21:38:05 +0000 Subject: [PATCH] Changed Mac specific stuff to use CCache API git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10861 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/ChangeLog | 5 +++++ src/lib/krb5/os/ccdefname.c | 21 ++++++++++++--------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index 921d8d3c4..9b6df700c 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,8 @@ +Fri Aug 21 17:37:00 1998 Miro Jurisic + + * 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 * changepw.c (krb5_change_password): Changes casts from char * to diff --git a/src/lib/krb5/os/ccdefname.c b/src/lib/krb5/os/ccdefname.c index d3914bcdc..cbaeba5af 100644 --- a/src/lib/krb5/os/ccdefname.c +++ b/src/lib/krb5/os/ccdefname.c @@ -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) -- 2.26.2