summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorBen Kaduk <kaduk@mit.edu>2012-07-10 10:14:52 -0400
committerBen Kaduk <kaduk@mit.edu>2013-11-04 13:51:14 -0500
commit29dee7d2cece615bec4616fa9b727e77210051db (patch)
treeff7e66cc2638a317144e75d99ec7006dd50d7df1 /src/include
parent0415740bb569bad53b18f4483837e7e037f88544 (diff)
downloadkrb5-29dee7d2cece615bec4616fa9b727e77210051db.tar.gz
krb5-29dee7d2cece615bec4616fa9b727e77210051db.tar.xz
krb5-29dee7d2cece615bec4616fa9b727e77210051db.zip
Avoid deprecated krb5_get_in_tkt_with_keytab
The kprop code has been pretty unloved, and uses some routines that are marked as deprecated (which show up as warnings in the build log). Use the documented replacement for krb5_get_in_tkt_with_keytab, krb5_get_init_creds_keytab, instead. As a bonus, there is no longer a side effect of a credentials cache that needs to be destroyed. The also-deprecated function krb5_get_in_tkt_with_skey was backending to it when no keyblock was passed in; we can unroll the call to krb5_get_init_creds_keytab ourselves as the documented workaround. While here, improve style compliance with regards to cleanup. The setkey test just wants to know whether it can use the key it just put into a keytab to get credentials; as such the recommended krb5_get_init_creds_keytab is quite sufficient. While here, use that interface to request the particular enctype as well, reducing the scope of an XXX comment. ticket: 6366
Diffstat (limited to 'src/include')
0 files changed, 0 insertions, 0 deletions