+2000-05-04 Miro Jurisic <meeroh@mit.edu>
+
+ * stdcc_util.c (dupCCtoK5, dupK5toCC):
+ Conditionalized local/KDC time conversions for Mac-only
+ until we figure out what to do about that
+
2000-04-18 Danilo Almeida <dalmeida@mit.edu>
* winccld.h: Define CC_API_VER2 for all Windows code using ccapi.
void dupCCtoK5(krb5_context context, cc_creds *src, krb5_creds *dest)
{
- krb5_int32 offset_seconds, offset_microseconds;
+ krb5_int32 offset_seconds = 0, offset_microseconds = 0;
int err;
/*
memcpy(dest->keyblock.contents, src->keyblock.data, dest->keyblock.length);
/* copy times */
+#ifdef macintosh
err = krb5_get_time_offsets(context, &offset_seconds, &offset_microseconds);
if (err) return;
+#endif
dest->times.authtime = src->authtime + offset_seconds;
dest->times.starttime = src->starttime + offset_seconds;
dest->times.endtime = src->endtime + offset_seconds;
{
cc_creds *c;
int err;
- krb5_int32 offset_seconds, offset_microseconds;
+ krb5_int32 offset_seconds = 0, offset_microseconds = 0;
#ifdef macintosh
char *tempname = NULL;
#endif
c->keyblock.data = NULL;
}
+#ifdef macintosh
err = krb5_get_time_offsets(context, &offset_seconds, &offset_microseconds);
if (err) return;
+#endif
c->authtime = creds->times.authtime - offset_seconds;
c->starttime = creds->times.starttime - offset_seconds;
c->endtime = creds->times.endtime - offset_seconds;