krb5_data *in, krb5_data *out, krb5_data *realm,
unsigned int *flags);
-krb5_error_code KRB5_CALLCONV
-krb5_tkt_creds_store_creds(krb5_context context, krb5_tkt_creds_context ctx,
- krb5_ccache ccache);
-
krb5_error_code KRB5_CALLCONV
krb5_tkt_creds_get_times(krb5_context context, krb5_tkt_creds_context ctx,
krb5_ticket_times *times);
&out,
&realm,
&flags);
- if (code != 0) {
- /* we failed, but store any referrals in our ccache */
- krb5_tkt_creds_store_creds(ctx->k5c, ctx->u.tcc, NULL);
+ if (code != 0)
goto cleanup;
- }
if ((flags & 1) != 1) {
- code = krb5_tkt_creds_store_creds(ctx->k5c, ctx->u.tcc, NULL);
- if (code != 0)
- goto cleanup;
-
krb5_tkt_creds_get_times(ctx->k5c, ctx->u.tcc, ×);
cred->tgt_expire = times.endtime;
return krb5int_copy_creds_contents(context, ctx->reply_creds, creds);
}
-/* Store credentials in credentials cache. If ccache is NULL, the
- * credentials cache associated with the context is used. */
-krb5_error_code KRB5_CALLCONV
-krb5_tkt_creds_store_creds(krb5_context context, krb5_tkt_creds_context ctx,
- krb5_ccache ccache)
-{
- if (ctx->state != STATE_COMPLETE)
- return KRB5_NO_TKT_SUPPLIED;
- if (ccache == NULL)
- ccache = ctx->ccache;
- return krb5_cc_store_cred(context, ccache, ctx->reply_creds);
-}
-
krb5_error_code KRB5_CALLCONV
krb5_tkt_creds_get_times(krb5_context context, krb5_tkt_creds_context ctx,
krb5_ticket_times *times)
krb5_tkt_creds_get_times
krb5_tkt_creds_init
krb5_tkt_creds_step
-krb5_tkt_creds_store_creds
krb5_timeofday
krb5_timestamp_to_sfstring
krb5_timestamp_to_string