-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify get_in_tkt.c restart handling
To simplify callers, make restart_init_creds_loop() reset the err_reply and err_padata fields and free per-request preauth moddata. Change its padata argument to a boolean argument for FAST upgrades, instead of sometimes passing in ctx->err_padata (which would become invalid partway through the function now that we're freeing it). Split up the upgrade-to-FAST and downgrade-to-no-padata cases in init_creds_step_reply(), and eliminate negotiation_requests_restart(). For brevity, rename the krb5_init_creds_context have_restarted field to restarted. Rename krb5int_upgrade_to_fast_p() to k5_upgrade_to_fast_p() and make it a true predicate. Change some flag field assignments to use TRUE/FALSE instead of 1/0. Reset enc_pa_rep_permitted after a client realm referral, since we don't know that the new realm's KDCs will fail on informational padata.
- Loading branch information
1 parent
608a655
commit 9914d38
Showing
4 changed files
with
61 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters