enc_padata can include empty sequence
authorSam Hartman <hartmans@mit.edu>
Tue, 9 Feb 2010 19:15:07 +0000 (19:15 +0000)
committerSam Hartman <hartmans@mit.edu>
Tue, 9 Feb 2010 19:15:07 +0000 (19:15 +0000)
commit7a04b369aa71b0796f057cf5da57070a9c37c9c8
treed520235b9e9fa1bb0a16fe9fd96ded188d1d7a22
parentf2dae95e426be79de906fcd2706d58333ed2e878
enc_padata can include empty sequence

There are two issues with return_enc_padata.
1)  It often will return an empty sequence of enc_padata rather than not including the field
2) FAST negotiation is double supported in the referral tgs path and not supported in the non-referral path

Rewrite the return_enc_padata logic to:

* Split  out referral interactions with kdb into its own function
* Use add_pa_data_element

ticket: 6656
target_version: 1.8
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23712 dc483132-0cff-0310-8789-dd5450dbe970
src/kdc/do_as_req.c
src/kdc/do_tgs_req.c
src/kdc/kdc_preauth.c
src/kdc/kdc_util.c
src/kdc/kdc_util.h