]> git.ipfire.org Git - thirdparty/krb5.git/commit
Improve profile final flag support 1336/head
authorGreg Hudson <ghudson@mit.edu>
Mon, 15 Apr 2024 22:47:27 +0000 (18:47 -0400)
committerGreg Hudson <ghudson@mit.edu>
Sat, 20 Apr 2024 17:48:47 +0000 (13:48 -0400)
commitf951625e6bd3ff44f1056958b56e35a1a043e362
treeb36904a55d672a5b826ea92d1614115e4b8fe946
parentfc54edd1dc047aedb211beaa544c5e000fbdb7a6
Improve profile final flag support

When parsing a file, ignore sections appearing after a final-flagged
section of the same name.  Adjust the meaning of group_level in the
parser state so that it is 1 inside of top-level sections instead of
0, and simplify the addition of top-level sections to the tree by
relying on profile_add_node()'s section merging.

Make the final flag work for relations as well as sections.  Check it
while parsing via a new check_final parameter in profile_add_node(),
and during iteration.

Output final flags for relations in dump_profile().  Make the final
flag available to it via a new output parameter in
profile_find_node_relation().

ticket: 9120
doc/admin/conf_files/krb5_conf.rst
src/util/profile/Makefile.in
src/util/profile/final.expected
src/util/profile/final2.ini
src/util/profile/final6.ini [new file with mode: 0644]
src/util/profile/prof_int.h
src/util/profile/prof_parse.c
src/util/profile/prof_set.c
src/util/profile/prof_tree.c