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>
Mon, 9 Oct 2023 22:05:50 +0000 (11:05 +1300)
commitb49e18441c459449548efffef3591ae02ec9e084
tree14ae0a53873ace31d8712303ec89bcedf8997bf4
parent6160aa55a12b2ef6b8fb1d2a472fd04bca8c7ffb
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