+2001-02-08 Tom Yu <tlyu@mit.edu>
+
+ * kerberos_v4.c (kerberos_v4): Remove references to
+ KRB_NEVERDATE.
+
2000-12-12 Ken Raeburn <raeburn@mit.edu>
* network.c: Don't include net/if.h if ARPHRD_ETHER is defined.
}
/* Bound requested lifetime with service and user */
v4req_end = krb_life_to_time(kerb_time.tv_sec, req_life);
- if (v4req_end < 0 || v4req_end == KRB_NEVERDATE)
- v4req_end = kerb_time.tv_sec + ck5life;
- else
- v4req_end = min(v4req_end, kerb_time.tv_sec + ck5life);
+ v4req_end = min(v4req_end, kerb_time.tv_sec + ck5life);
v4req_end = min(v4req_end, kerb_time.tv_sec + sk5life);
lifetime = krb_time_to_life(kerb_time.tv_sec, v4req_end);
v4endtime = krb_life_to_time(kerb_time.tv_sec, lifetime);
/* Bound requested lifetime with service and user */
v4endtime = krb_life_to_time((KRB4_32)ad->time_sec, ad->life);
v4req_end = krb_life_to_time(kerb_time.tv_sec, req_life);
- /*
- * Handle special case of req_life == 255, since that will
- * return the magic KRB_NEVERDATE value.
- */
- if (v4req_end < 0 || v4req_end == KRB_NEVERDATE)
- v4req_end = v4endtime;
- else
- v4req_end = min(v4endtime, v4req_end);
+ v4req_end = min(v4endtime, v4req_end);
v4req_end = min(v4req_end, kerb_time.tv_sec + sk5life);
lifetime = krb_time_to_life(kerb_time.tv_sec, v4req_end);