* conv_creds.c (krb524_convert_creds_plain): Use time_to_life()
authorTom Yu <tlyu@mit.edu>
Sat, 7 Oct 2000 02:25:24 +0000 (02:25 +0000)
committerTom Yu <tlyu@mit.edu>
Sat, 7 Oct 2000 02:25:24 +0000 (02:25 +0000)
commiteecc72999417642f6654222a49ddc9f3d1bbf13b
tree9354a92d8d665d7a560dc5a5508518fec37ec676
parent9d4ad67452d9c6ad464ef337c5a025b3440dd93d
* conv_creds.c (krb524_convert_creds_plain): Use time_to_life()
and life_to_time() to do lifetime calculations, including the
adjustment of start time, to match server-side calculations.

* cnv_tkt_skey.c (krb524_convert_tkt_skey): Use time_to_life() and
life_to_time() to do lifetime calculations.  Adjust start time
backwards to deal with roundup so ticket expires at correct time.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12728 dc483132-0cff-0310-8789-dd5450dbe970
src/krb524/ChangeLog
src/krb524/cnv_tkt_skey.c
src/krb524/conv_creds.c