kdc-plugin: Split updating a PAC out of PAC verification
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 8 Mar 2023 02:22:29 +0000 (15:22 +1300)
committerJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 3 May 2023 04:13:17 +0000 (16:13 +1200)
commitd9114740ae1897b2aae58d9e483c36518a64101f
tree1dd6c4f09b7fe96a19fffb3b2fc1c0ff7a7ee0b8
parentcaf0bafcc55f64dc62dc0124053da31c82d45df6
kdc-plugin: Split updating a PAC out of PAC verification

Up to now krb5plugin_kdc_pac_verify() has served to both verified and
updated a PAC. There are cases, however, when we only want to retrieve
and verify a PAC, but don't want to modify it. This is the case with the
PAC from a FAST armor ticket.

Therefore, add a new plugin function, pac_update(), that will update a
PAC obtained using pac_verify(). pac_verify() now only deals with
verifying a PAC, while pac_update() handles any necessary updates to it.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
kdc/kdc-plugin.c
kdc/kdc-plugin.h
kdc/krb5tgs.c
kdc/mssfu.c
tests/plugin/kdc_test_plugin.c