Fix 32-bit time_t regression (#220)
This commit is contained in:
@@ -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");
|
||||
|
@@ -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) {
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user