2000-06-08 Alexandra Ellwood <lxs@mit.edu> * stdcc_util.c (dupCCtoK5, dupK5toCC...
authorAlexandra Ellwood <lxs@mit.edu>
Fri, 9 Jun 2000 01:26:24 +0000 (01:26 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Fri, 9 Jun 2000 01:26:24 +0000 (01:26 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12369 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/ccache/ccapi/ChangeLog
src/lib/krb5/ccache/ccapi/stdcc_util.c

index 6509352919afc7c804208dd950b0549ab53ab30b..4fb8e7df2c167243594d9eda9b85664635771c4e 100644 (file)
@@ -1,3 +1,8 @@
+2000-06-08  Alexandra Ellwood  <lxs@mit.edu>
+
+       * stdcc_util.c (dupCCtoK5, dupK5toCC): 
+               Fixed code that stores times in localtime, not in kdc time.
+
 2000-05-18  Danilo Almeida  <dalmeida@mit.edu>
 
        * stdcc_util.c (dupK5toCC): Remove unused variables.
index 88264e6177f8e6f6615fd981c14cd2c86139bc5a..fb0150657beac67c543105d2c99cfc07ae006f49 100644 (file)
@@ -222,8 +222,8 @@ void dupCCtoK5(krb5_context context, cc_creds *src, krb5_creds *dest)
     dest->times.starttime  = src->starttime    + offset_seconds;
     dest->times.endtime    = src->endtime      + offset_seconds;
     dest->times.renew_till = src->renew_till   + offset_seconds;
-    dest->is_skey          = src->is_skey      + offset_seconds;
-    dest->ticket_flags     = src->ticket_flags + offset_seconds;
+    dest->is_skey          = src->is_skey;
+    dest->ticket_flags     = src->ticket_flags;
 
     /* more branching fields */
     err = copyCCDataArrayToK5(src, dest, kAddressArray);
@@ -317,8 +317,8 @@ void dupK5toCC(krb5_context context, krb5_creds *creds, cred_union **cu)
     c->starttime    = creds->times.starttime  - offset_seconds;
     c->endtime      = creds->times.endtime    - offset_seconds;
     c->renew_till   = creds->times.renew_till - offset_seconds;
-    c->is_skey      = creds->is_skey          - offset_seconds;
-    c->ticket_flags = creds->ticket_flags     - offset_seconds;
+    c->is_skey      = creds->is_skey;
+    c->ticket_flags = creds->ticket_flags;
 
     err = copyK5DataArrayToCC(creds, c, kAddressArray);
     if (err) return;