]> 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)
committerGeorge Joseph <gjoseph@sangoma.com>
Wed, 25 Sep 2024 16:35:26 +0000 (16:35 +0000)
commite0ca3a634cf46e220895f2a03673fe2b98ba8bcf
treec6a0c9d3d2697f84f8ced355d3b878e802f864c0
parent29d6a627686a8c8b0d2208d8fa1779b54639edcd
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