]> git.ipfire.org Git - thirdparty/krb5.git/commit
Simplify kdc_preauth.c systems table 727/head
authorGreg Hudson <ghudson@mit.edu>
Sun, 11 Feb 2018 20:23:35 +0000 (15:23 -0500)
committerGreg Hudson <ghudson@mit.edu>
Mon, 12 Mar 2018 15:09:04 +0000 (11:09 -0400)
commitfea1a488924faa3938ef723feaa1ff12d22a91ff
tree1eaa08efb8003edf2bdc2531f05e4fe1da9219b9
parent4af478c18b02e1d2444a328bb79e6976ef3d312b
Simplify kdc_preauth.c systems table

Get rid of static_preauth_systems, and replace it with explicit calls
to helper functions in get_preauth_hint_list() and return_padata().
Stop preallocating pa-data lists, instead reallocating on each
addition using add_pa_data_element().  Also simplify
maybe_add_etype_info2() using add_pa_data_element().

The KRB5_PADATA_PAC_REQUEST table entry did nothing, and was probably
originally added back when the KDC would error out on unrecognized
padata types.  The KRB5_PADATA_SERVER_REFERRAL entry has been disabled
since it was first added.
src/kdc/kdc_preauth.c