lib/krb5: Align with MIT behaviour and provide krb5_init_creds_opt_set_fast_ccache... lorikeet-heimdal-202402132018
authorAndrew Bartlett <abartlet@samba.org>
Fri, 17 Nov 2023 04:40:33 +0000 (17:40 +1300)
committerJo Sutton <josutton@catalyst.net.nz>
Mon, 26 Feb 2024 22:17:22 +0000 (11:17 +1300)
commit66d4c120376f60ce0d02f4c23956df8e4d6007f2
tree0e555bae0b0849e2efe2c68fa4974d40581216b7
parentd0022ae4f5f49fb22e3a5d95b15c31ce3b0c7e78
lib/krb5: Align with MIT behaviour and provide krb5_init_creds_opt_set_fast_ccache() and krb5_init_creds_opt_set_fast_flags()

It is easier for external callers to manipulate the krb5_get_init_creds_opt
(via the helpers) as this is passed down from higher up than the krb5_init_creds_context.

And just as importantly, alignment with MIT makes end-user callers happier.

Finally, this resolves the ambiguity as to which layer owns the
krb5_ccache, because now we match the MIT behaviour the init_creds code
re-opens a private copy inside libkrb5, meaning the caller closes the
cache it opened, rather than handing it over to the library.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
kdc/kdc-tester.c
kuser/kinit.c
lib/krb5/init_creds.c
lib/krb5/init_creds_pw.c
lib/krb5/krb5.h
lib/krb5/krb5_locl.h
lib/krb5/libkrb5-exports.def.in
lib/krb5/version-script.map