]> git.ipfire.org Git - thirdparty/krb5.git/commit
Add KDC helpers for current key and kvno 1072/head
authorGreg Hudson <ghudson@mit.edu>
Wed, 13 May 2020 17:01:31 +0000 (13:01 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 15 May 2020 21:33:23 +0000 (17:33 -0400)
commit42e21c57261f78cf0c68cbef16d58ca4a106f0e0
tree6e943dd5c15fae1dce1a57fa50da92af8a2dea0a
parentd7ed635e822e13b89fef93463d1d132b1e03b78f
Add KDC helpers for current key and kvno

Add a simple static inline function current_kvno() to safely fetch the
current kvno of a principal entry, and use it where we currently write
entry->key_data[0].key_data_kvno.

Add a function get_first_current_key() to find and decrypt the first
valid current key from an entry.  Use it in get_local_tgt() and when
selecting a ticket encryption key during AS and TGS processing.

Add a local_tgt_key field to krb5_kdcpreauth_rock_st and use it in
add_freshness_token() so we don't have to decrypt it again.
src/kdc/cammac.c
src/kdc/do_as_req.c
src/kdc/do_tgs_req.c
src/kdc/fast_util.c
src/kdc/kdc_preauth.c
src/kdc/kdc_util.c
src/kdc/kdc_util.h