base: HEIM_JSON_F_TRY_DECODE_DATA cannot work
commit1429814edaad1f5b81bca927730857ce12df40f8
authorNicolas Williams <nico@twosigma.com>
Sat, 1 Oct 2022 22:53:11 +0000 (1 17:53 -0500)
committerNicolas Williams <nico@twosigma.com>
Mon, 3 Oct 2022 03:46:37 +0000 (2 22:46 -0500)
tree83d428dcaca1dddd42318a666915847cffeea6dc
parented4b50720da09ab0f5490139de4d8fbaa2848d9c
base: HEIM_JSON_F_TRY_DECODE_DATA cannot work

The idea with HEIM_JSON_F_TRY_DECODE_DATA is that on parsing of JSON
texts, if we find a base64-encoded string, decode it.  But a lot of
strings that aren't base64-encoded can be decoded anyways, leaving a
mess.

Insted we should -in a future commit- implement this only for the string
values of "heimdal-type-data-76d7fca2-d0da-4b20-a126-1a10f8a0eae6" names
in singleton objects.
lib/base/json.c
lib/base/test_base.c