krb5_flags req_options; /* Caller-requested KRB5_GC_* options */
krb5_flags req_kdcopt; /* Caller-requested options as KDC options */
krb5_authdata **authdata; /* Caller-requested authdata */
- struct krb5int_fast_request_state *fast_state;
/* The following fields are used in multiple steps. */
krb5_creds *cur_tgt; /* TGT to be used for next query */
int kdcopt; /* KDC options of request */
krb5_keyblock *subkey; /* subkey of request */
krb5_data previous_request; /* Encoded request (for TCP retransmission) */
+ struct krb5int_fast_request_state *fast_state;
/* The following fields are used when acquiring foreign TGTs. */
krb5_data *realm_path; /* Path from client to server realm */
if (!krb5_c_valid_enctype(ctx->cur_tgt->keyblock.enctype))
return KRB5_PROG_ETYPE_NOSUPP;
+ /* Create a new FAST state structure to store this request's armor key. */
+ krb5int_fast_free_state(context, ctx->fast_state);
+ ctx->fast_state = NULL;
+ code = krb5int_fast_make_state(context, &ctx->fast_state);
+ if (code)
+ return code;
+
code = krb5int_make_tgs_request(context, ctx->fast_state,
ctx->cur_tgt, ctx->kdcopt,
ctx->cur_tgt->addresses, NULL,
ctx = k5alloc(sizeof(*ctx), &code);
if (ctx == NULL)
goto cleanup;
- code = krb5int_fast_make_state(context, &ctx->fast_state);
- if (code)
- goto cleanup;
ctx->req_options = options;
ctx->req_kdcopt = 0;