Mistake on this page? Email us
fcc_bundle_handler.h File Reference

factory configurator client bundle handler APIs. More...

#include <stdlib.h>
#include <inttypes.h>
#include "fcc_status.h"

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)
 

Detailed Description

factory configurator client bundle handler APIs.

Function Documentation

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.

Parameters
encoded_bundleThe encoded FCU bundle that is written into a secure storage.
encoded_blob_sizeThe encoded FCU bundle size in bytes.
bundle_response_outThe 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_outThe encoded outbound bundle size in bytes.
Returns
FCC_STATUS_SUCCESS in case of success or one of the fcc_status_e errors otherwise.