]> 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:28 +0000 (16:35 +0000)
commitebf141f9968ab0dbc12551f5d44226ac7d883d0f
tree5f8686541f8e69ec1ee6a2903ea3cb71d25ccf8e
parent240f5c3a71e93a50dd78b26a3b8184ab10a8ce65
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