]> git.ipfire.org Git - thirdparty/asterisk.git/commit
stir_shaken: Fix propagation of attest_level and a few other values
authorGeorge Joseph <gjoseph@sangoma.com>
Tue, 24 Sep 2024 16:16:16 +0000 (10:16 -0600)
committerBen Ford <bford@digium.com>
Thu, 26 Sep 2024 16:05:15 +0000 (11:05 -0500)
commitfd8d28cb609ff8794b9d4bc089f1f125eff40798
tree22e42ecfe32b5c68f21c9ddb821498270304e070
parentdc8f83662b8af52c6866867540f813b819687674
stir_shaken: Fix propagation of attest_level and a few other values

attest_level, send_mky and check_tn_cert_public_url weren't
propagating correctly from the attestation object to the profile
and tn.

* In the case of attest_level, the enum needed to be changed
so the "0" value (the default) was "NOT_SET" instead of "A".  This
now allows the merging of the attestation object, profile and tn
to detect when a value isn't set and use the higher level value.

* For send_mky and check_tn_cert_public_url, the tn default was
forced to "NO" which always overrode the profile and attestation
objects.  Their defaults are now "NOT_SET" so the propagation
happens correctly.

* Just to remove some redundant code in tn_config.c, a bunch of calls to
generate_sorcery_enum_from_str() and generate_sorcery_enum_to_str() were
replaced with a single call to generate_acfg_common_sorcery_handlers().

Resolves: #904
res/res_stir_shaken/common_config.c
res/res_stir_shaken/common_config.h
res/res_stir_shaken/tn_config.c