Fix 32-bit time_t regression (#220)

This commit is contained in:
Nicolas Williams
2016-12-04 16:40:55 -06:00
parent 27d7939d74
commit bbaae5f43c
3 changed files with 4 additions and 4 deletions

View File

@@ -270,7 +270,7 @@ ccache_init_system(void)
renew_life = kcm_system_config_get_string("renew_life");
if (renew_life == NULL)
renew_life = "2147483647s";
renew_life = "6 months";
if (renew_life != NULL) {
ccache->renew_life = parse_time(renew_life, "s");

View File

@@ -553,7 +553,7 @@ get_new_tickets(krb5_context context,
addrs_flag ? FALSE : TRUE);
if (renew_life == NULL && renewable_flag)
renewstr = "2147483647s";
renewstr = "6 months";
if (renew_life)
renewstr = renew_life;
if (renewstr) {

View File

@@ -322,11 +322,11 @@ typedef struct krb5_context_data {
#endif
#ifndef KRB5_TKT_LIFETIME_DEFAULT
# define KRB5_TKT_LIFETIME_DEFAULT 2147483647 /* seconds */
# define KRB5_TKT_LIFETIME_DEFAULT 15778800 /* seconds */
#endif
#ifndef KRB5_TKT_RENEW_LIFETIME_DEFAULT
# define KRB5_TKT_RENEW_LIFETIME_DEFAULT 2147483647 /* seconds */
# define KRB5_TKT_RENEW_LIFETIME_DEFAULT 15778800 /* seconds */
#endif
#ifdef PKINIT