From: Alexandra Ellwood Date: Fri, 9 Jun 2000 01:26:24 +0000 (+0000) Subject: 2000-06-08 Alexandra Ellwood * stdcc_util.c (dupCCtoK5, dupK5toCC... X-Git-Tag: krb5-1.3-alpha1~2098 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f49e769b8eea795e4d609dd0730ebc7cafd1248a;p=krb5.git 2000-06-08 Alexandra Ellwood * stdcc_util.c (dupCCtoK5, dupK5toCC): Fixed code that stores times in localtime, not in kdc time git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12369 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/ccache/ccapi/ChangeLog b/src/lib/krb5/ccache/ccapi/ChangeLog index 650935291..4fb8e7df2 100644 --- a/src/lib/krb5/ccache/ccapi/ChangeLog +++ b/src/lib/krb5/ccache/ccapi/ChangeLog @@ -1,3 +1,8 @@ +2000-06-08 Alexandra Ellwood + + * stdcc_util.c (dupCCtoK5, dupK5toCC): + Fixed code that stores times in localtime, not in kdc time. + 2000-05-18 Danilo Almeida * stdcc_util.c (dupK5toCC): Remove unused variables. diff --git a/src/lib/krb5/ccache/ccapi/stdcc_util.c b/src/lib/krb5/ccache/ccapi/stdcc_util.c index 88264e617..fb0150657 100644 --- a/src/lib/krb5/ccache/ccapi/stdcc_util.c +++ b/src/lib/krb5/ccache/ccapi/stdcc_util.c @@ -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;