* winccld.c: Include k5-int.h to get hidden ops struct.
authorTom Yu <tlyu@mit.edu>
Thu, 20 Jun 2002 23:03:25 +0000 (23:03 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 20 Jun 2002 23:03:25 +0000 (23:03 +0000)
[pullup from 1-2-2-branch]

2002-06-20  Alexandra Ellwood <lxs@mit.edu>

* stdcc.h: Added prototype for krb5_stdcc_shutdown.

* stdcc.h, stdcc_util.h, stdcc_util.c: Updated Mac OS X headers to new
framework layout

* stdcc.c: Removed unused variables and fixed macros to reduce warnings

[pullups from 1-2-2-branch]

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14550 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/ccache/ccapi/ChangeLog
src/lib/krb5/ccache/ccapi/stdcc.c
src/lib/krb5/ccache/ccapi/stdcc.h
src/lib/krb5/ccache/ccapi/stdcc_util.c
src/lib/krb5/ccache/ccapi/stdcc_util.h
src/lib/krb5/ccache/ccapi/winccld.c

index 4630d4c583336558e1ead1bb8a161d5c67e35cd0..b3e010c5bed7f973848ea63705292a0f1ef2ef71 100644 (file)
@@ -1,3 +1,26 @@
+2002-06-20  Danilo Almeida  <dalmeida@mit.edu>
+
+       * winccld.c: Include k5-int.h to get hidden ops struct.
+       [pullup from 1-2-2-branch]
+
+2002-06-20  Alexandra Ellwood <lxs@mit.edu>
+
+       * stdcc.h: Added prototype for krb5_stdcc_shutdown.
+
+       * stdcc.h, stdcc_util.h, stdcc_util.c: Updated Mac OS X headers to new 
+       framework layout
+
+       * stdcc.c: Removed unused variables and fixed macros to reduce warnings
+
+       [pullups from 1-2-2-branch]
+
+2002-06-20  Miro Jurisic  <meeroh@mit.edu>
+
+       * stdcc.c: Replaced cc_* macros with functions
+       * stdcc.h, stdcc_util.h: Updated Mac OS #defines and #includes for new 
+       header layout and Mac OS X frameworks
+       [pullup from 1-2-2-branch]
+
 2002-04-01  Danilo Almeida  <dalmeida@mit.edu>
 
        * stdcc_util.c: Include errno.h.
index 9899cb706ead0321829e02d988128ff83686f13a..6bad56a3d50e8f3971c9cdfc47b4dbde493ee8dc 100644 (file)
@@ -32,6 +32,7 @@
 #include "stdcc.h"
 #include "stdcc_util.h"
 #include "string.h"
+#include "k5-int.h"
 #include <stdio.h>
 
 apiCB *gCntrlBlock = NULL;
@@ -264,7 +265,7 @@ krb5_error_code KRB5_CALLCONV  krb5_stdcc_resolve
        stdccCacheDataPtr       ccapi_data = NULL;
        int                     err;
        krb5_error_code         retval;
-       char                    *cName;
+       char                    *cName = NULL;
        
        if ((retval = stdcc_setup(context, NULL)))
                return retval;
@@ -548,7 +549,9 @@ krb5_error_code KRB5_CALLCONV krb5_stdcc_end_seq_get
        krb5_error_code         retval;
        stdccCacheDataPtr       ccapi_data = NULL;
        int                     err;
+#ifndef CC_API_VER2
        cred_union              *credU = NULL;
+#endif
 
        ccapi_data = id->data;
        
@@ -656,7 +659,6 @@ krb5_stdcc_destroy (krb5_context context, krb5_ccache id)
 const char * KRB5_CALLCONV krb5_stdcc_get_name 
         (krb5_context context, krb5_ccache id )
 {
-       char *name = NULL;
        stdccCacheDataPtr       ccapi_data = id->data;
 
        if (!ccapi_data)
index 705cdf5f2e3e8b3d75c5e216d10f2e84fe502f52..e67c4e94f9e255bca6b768c8bd95e54bc1e62031 100644 (file)
@@ -1,8 +1,8 @@
 #include "krb5.h"
 #include "k5-int.h"
        
-#if defined(macintosh)
-#include "CCache2.h"
+#if TARGET_OS_MAC
+#include <Kerberos/CredentialsCache2.h>
 #endif
 
 #if defined(_WIN32)
@@ -25,6 +25,8 @@ typedef struct _stdccCacheData {
 
 /* function protoypes  */
 
+void krb5_stdcc_shutdown(void);
+
 krb5_error_code KRB5_CALLCONV krb5_stdcc_close
         (krb5_context, krb5_ccache id );
 
index c0e1b5b7efc830d2ba482323cee117cc208a4c5c..3f9c05271597659cb4be0c63dd1e457ff18d7ec5 100644 (file)
@@ -215,7 +215,7 @@ void dupCCtoK5(krb5_context context, cc_creds *src, krb5_creds *dest)
     memcpy(dest->keyblock.contents, src->keyblock.data, dest->keyblock.length);
 
     /* copy times */
-#ifdef macintosh
+#if TARGET_OS_MAC
     err = krb5_get_time_offsets(context, &offset_seconds, &offset_microseconds);
     if (err) return;
 #endif
@@ -310,7 +310,7 @@ void dupK5toCC(krb5_context context, krb5_creds *creds, cred_union **cu)
        c->keyblock.data = NULL;
     }
 
-#ifdef macintosh
+#if TARGET_OS_MAC
     err = krb5_get_time_offsets(context, &offset_seconds, &offset_microseconds);
     if (err) return;
 #endif
index 30d9cafd4661ecbddc21d3a36f6332ab5497c78e..d70394fbe58b4096e6a2615e5167348ad19ab41c 100644 (file)
@@ -3,8 +3,8 @@
  * Frank Dabek, July 1998
  */
 
-#if defined(macintosh)
-#include "CCache2.h"
+#if TARGET_OS_MAC
+#include <Kerberos/CredentialsCache2.h>
 #endif
 
 #if defined(_WIN32)
index 39d8f122789ae2d2ddaeac8c2f23a5c1c0e632a8..1ff75db488cd898ff950895473504c18f18796ff 100644 (file)
@@ -7,6 +7,7 @@
 #include <windows.h>
 #include <stdio.h>
 #include "stdcc.h"
+#include "k5-int.h"
 
 /* from fcc-proto.h */
 extern krb5_cc_ops krb5_fcc_ops;