factory configurator client bundle handler APIs. More...
Go to the source code of this file.
Functions | |
fcc_status_e | fcc_bundle_handler (const uint8_t *encoded_bundle, size_t encoded_bundle_size, uint8_t **bundle_response_out, size_t *bundle_response_size_out) |
factory configurator client bundle handler APIs.
fcc_status_e fcc_bundle_handler | ( | const uint8_t * | encoded_bundle, |
size_t | encoded_bundle_size, | ||
uint8_t ** | bundle_response_out, | ||
size_t * | bundle_response_size_out | ||
) |
Decodes and processes an inbound device configuration bundle created by FCU. Also creates an outbound bundle that should be sent to FCU. The function assumes that the bundle includes four groups represented as cbor maps. The names of the groups are SchemeVersion
, Keys
, Certificates
and ConfigParams
. Each group contains a list of items, and for each item, there are a number of relevant parameters.
encoded_bundle | The encoded FCU bundle that is written into a secure storage. |
encoded_blob_size | The encoded FCU bundle size in bytes. |
bundle_response_out | The encoded outbound bundle. It may contain data such as CSR and different types of key schemes. The response associates a descriptive error in case of a fault. Will be NULL if response not created successfully. |
bundle_response_size_out | The encoded outbound bundle size in bytes. |
fcc_status_e
errors otherwise.