Apply patch from Cesar Garcia to fix lifetime computation in 524
authorTom Yu <tlyu@mit.edu>
Tue, 2 Sep 2003 22:12:07 +0000 (22:12 +0000)
committerTom Yu <tlyu@mit.edu>
Tue, 2 Sep 2003 22:12:07 +0000 (22:12 +0000)
ticket conversion.

ticket: 1712
tags: pullup
version_reported: 1.3.1
target_version: 1.3.2

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

src/krb524/ChangeLog
src/krb524/cnv_tkt_skey.c
src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/conv_creds.c

index 6f7fe60d70188453f3f07a6394d4586d8ae7888e..64f2a69f5c102b591f6c1257ade7c0d88cc52f89 100644 (file)
@@ -1,3 +1,8 @@
+2003-09-02  Tom Yu  <tlyu@mit.edu>
+
+       * cnv_tkt_skey.c (krb524_convert_tkt_skey): Apply patch from Cesar
+       Garcia to fix lifetime computation.
+
 2003-08-29  Ken Raeburn  <raeburn@mit.edu>
 
        * configure.in: Call KRB5_AC_NEED_DAEMON instead of checking
index c2ec9d81645a67f609832af8b82365184c3a3d34..97d8bbfddfdfd2bbc11d1ada94f4d3706c643559 100644 (file)
@@ -143,7 +143,7 @@ int krb524_convert_tkt_skey(context, v5tkt, v4tkt, v5_skey, v4_skey,
      if ((server_time + context->clockskew >= v5etkt->times.starttime)
         && (server_time - context->clockskew <= v5etkt->times.endtime)) {
          lifetime = krb_time_to_life(server_time, v5etkt->times.endtime);
-         v4endtime = krb_life_to_time(v5etkt->times.starttime, lifetime);
+         v4endtime = krb_life_to_time(server_time, lifetime);
          /*
           * Adjust start time backwards if the lifetime value
           * returned by krb_time_to_life() maps to a longer lifetime
index 229336eaf4bb4d575053aa637b6acba4618b17a1..5d777909a6bdde88caf655ac5454e7b5c7975693 100644 (file)
@@ -1,3 +1,8 @@
+2003-09-02  Tom Yu  <tlyu@mit.edu>
+
+       * conv_creds.c (krb524_convert_creds_plain): Apply patch from
+       Cesar Garcia to fix lifetime computation.
+
 2003-08-19  SamHartman  <hartmans@avalanche-breakdown.mit.edu>
 
        * rd_cred.c (decrypt_credencdata): Don't double free credentials.
index a4e5abc946271ad6787c2e613ab92665dbf8291d..3a4e66dc5d4c36139c560efedce1e59867f58c42 100644 (file)
@@ -130,7 +130,7 @@ krb524_convert_creds_plain(context, v5creds, v4creds)
      v4creds->issue_date = v5creds->times.starttime;
      v4creds->lifetime = krb5int_krb_time_to_life(v5creds->times.starttime,
                                                  v5creds->times.endtime);
-     endtime = krb5int_krb_life_to_time(v5creds->times.starttime,
+     endtime = krb5int_krb_life_to_time(v4creds->issue_date,
                                        v4creds->lifetime);
      /*
       * Adjust start time backwards to deal with rounding up in