]> git.ipfire.org Git - thirdparty/krb5.git/commit
Simplify ticket retrieval from AP-REQs
authorGreg Hudson <ghudson@mit.edu>
Thu, 5 Jun 2014 16:03:16 +0000 (12:03 -0400)
committerGreg Hudson <ghudson@mit.edu>
Wed, 11 Jun 2014 03:54:41 +0000 (23:54 -0400)
commit02de9935648c307098fb69da26f74424da8dde64
treee0c7c0ccbba3f914986d474b0e2edfe157cd6729
parent4799121941cfd846f9d3d7a905ac4c84342ff306
Simplify ticket retrieval from AP-REQs

After krb5_rd_req_decoded or krb5_rd_req_decoded_anyflag, the ticket
(with enc_part2 if we could decrypt it) is accessible via
request->ticket; there is no need to copy it.  Stop using the ticket
parameter of those functions.  Where we need to save the ticket beyond
the lifetime of the krb5_ap_req, steal the pointer before freeing the
request.
src/kdc/kdc_util.c
src/lib/gssapi/krb5/accept_sec_context.c
src/lib/krb5/krb/rd_req.c