]> 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)
committerasterisk-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Wed, 25 Sep 2024 16:35:36 +0000 (16:35 +0000)
commit4b998482bcc9bea12bb6580f087b36dc62886cba
tree355381d7dfa1a7f918103a909a124d61728c58c2
parentc2ffecfc66c52cb594c9e167f6cd19afc75f0b45
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