Adjust processing of pa_type ccache config
authorGreg Hudson <ghudson@mit.edu>
Fri, 13 Jan 2017 15:14:36 +0000 (10:14 -0500)
committerGreg Hudson <ghudson@mit.edu>
Thu, 2 Feb 2017 20:09:10 +0000 (15:09 -0500)
commit468c6eb7bb860f7ec0381086a22859f822b41c43
tree2808145f27c0c970e73aff9f8eef5920724bb24f
parent8abbb9b805e457849e9e414bd2ef610ad9fc4f06
Adjust processing of pa_type ccache config

Read the allowed preauth type from the input ccache in
restart_init_creds_loop(); there is no need to reread it each time we
produce a request.  Move read_allowed_preauth_type() earlier in the
file to allow it to be called from restart_init_creds_loop() without a
prototype.

Clear the selected preauth type in restart_init_creds_loop(), not in
init_creds_step_request().  We want to make sure that it doesn't
survive a restart due to a realm referral or expiry, but we don't want
to forget about it when retrying after an error.
src/lib/krb5/krb/get_in_tkt.c