ProvisioningLibrary
Atmel Security Provisioning Library
atcaprov.c File Reference

Implements the main provisioning flow. More...

#include "atcaprov.h"
#include "atcaprov_request.h"
#include "atcaprov_user_funcs.h"
#include "cryptoauthlib.h"

Functions

int atcaprov_provision (const atcaprov_options_t *options, atcaprov_data_t *data, void *user_data)
 This is the main provisioning function that should be called to start the provisioning process. More...
 

Detailed Description

Implements the main provisioning flow.

The ATCAPROV_CERT_VALIDATION symbol needs to be defined when compiling if certificate validation is required.

Function Documentation

int atcaprov_provision ( const atcaprov_options_t options,
atcaprov_data_t data,
void *  user_data 
)

This is the main provisioning function that should be called to start the provisioning process.

Parameters
[in]optionsOptions controlling the provisioning process. See atcaprov_options_s for details.
[in,out]dataData buffers for returned data. See atcaprov_data_s for details.
[in]user_dataThis pointer will be passed to all the callback functions for use by the user. Set to NULL if not needed.
Returns
0 on success