Parse the attestation token with json_parser instead of cJSON. The
header, eat and public_key objects are hashed verbatim from the token
text, which is exactly what the TEE hashed before signing. The TEE
subproject moves to json_generator 2.0.0, which escapes strings as RFC
8259 requires.
Replace cJSON with json_parser for the light control request and
json_generator for the system info and temperature responses. A body
that is not a JSON object, or lacks integer red, green and blue values,
now gets a 400 instead of a NULL dereference.
Currently, several examples do not explicitly state their component
dependencies, relying instead on the default behavior that includes all
registered components and commonly required ones in the build.
Explicitly adding component dependencies can reduce build time when
set(COMPONENTS main) is used.
Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
This commit updates the visibility of various header files and cleans up
some unnecessary inclusions. Also, this commit removes certain header
include paths which were maintained for backward compatibility.
esp_netif_init() returns standard esp_err_t error code (unlike tcpip_adapter init), so shall be checked for the return value
Also to make the initialization code more consistent.