cred->usage = GSS_C_INITIATE; /* we can't accept with this */
/* cred->name already set */
cred->keytab = NULL; /* no keytab associated with this... */
- cred->tgt_expire = creds[0]->times.endtime; /* store the end time */
+ cred->expire = creds[0]->times.endtime; /* store the end time */
cred->ccache = ccache; /* the ccache containing the credential */
cred->destroy_ccache = 1;
ccache = NULL; /* cred takes ownership so don't destroy */
endtime = creds.times.endtime;
krb5_free_cred_contents(context, &creds);
if (is_tgt || !got_endtime)
- cred->tgt_expire = creds.times.endtime;
+ cred->expire = creds.times.endtime;
got_endtime = 1;
}
krb5_cc_end_seq_get(context, ccache, &cursor);
goto krb_error_out;
if (time_rec)
- *time_rec = (cred->tgt_expire > now) ? (cred->tgt_expire - now) : 0;
+ *time_rec = (cred->expire > now) ? (cred->expire - now) : 0;
}
*minor_status = 0;
/* ccache (init) data */
krb5_ccache ccache;
- krb5_timestamp tgt_expire;
+ krb5_timestamp expire;
krb5_enctype *req_enctypes; /* limit negotiated enctypes to this list */
char *password;
} krb5_gss_cred_id_rec, *krb5_gss_cred_id_t;
goto cleanup;
if (!(flags & KRB5_INIT_CREDS_STEP_FLAG_CONTINUE)) {
krb5_init_creds_get_times(ctx->k5c, ctx->icc, ×);
- cred->tgt_expire = times.endtime;
+ cred->expire = times.endtime;
krb5_init_creds_free(ctx->k5c, ctx->icc);
ctx->icc = NULL;
goto cleanup;
if (!(flags & KRB5_TKT_CREDS_STEP_FLAG_CONTINUE)) {
krb5_tkt_creds_get_times(ctx->k5c, ctx->tcc, ×);
- cred->tgt_expire = times.endtime;
+ cred->expire = times.endtime;
krb5_tkt_creds_free(ctx->k5c, ctx->tcc);
ctx->tcc = NULL;
krb5_free_cred_contents(context, &tgt_creds);
goto cleanup;
}
- cred->tgt_expire = tgt_creds.times.endtime;
+ cred->expire = tgt_creds.times.endtime;
krb5_free_cred_contents(context, &tgt_creds);
code = krb5_get_credentials(context, flags, cred->ccache,
goto fail;
}
- if (cred->tgt_expire > 0) {
- if ((lifetime = cred->tgt_expire - now) < 0)
+ if (cred->expire > 0) {
+ if ((lifetime = cred->expire - now) < 0)
lifetime = 0;
}
else
cred->usage = GSS_C_INITIATE;
- cred->tgt_expire = subject_creds->times.endtime;
+ cred->expire = subject_creds->times.endtime;
code = kg_init_name(context, subject_creds->client, NULL, NULL, NULL, 0,
&cred->name);
if (code != 0)
goto cleanup;
- *time_rec = cred->tgt_expire - now;
+ *time_rec = cred->expire - now;
}
major_status = GSS_S_COMPLETE;