ProvisioningLibrary
Atmel Security Provisioning Library
atcaprov_user_funcs.h
Go to the documentation of this file.
1 
42 #ifndef ATCAPROV_USER_FUNCS_H
43 #define ATCAPROV_USER_FUNCS_H
44 
45 #include "atcaprov.h"
46 #include "atcaprov_request.h"
47 
48 #ifdef __cplusplus
49 extern "C" {
50 #endif
51 
62 extern int atcaprov_write_data_zone(void* user_data, const uint8_t config[128]);
63 
80 extern void atcaprov_notify(void* user_data, atcaprov_stage_t stage, atcaprov_status_t status);
81 
90 extern int atcaprov_certreq_start(void* user_data);
91 
104 extern int atcaprov_certreq_send(void* user_data, const char* data, size_t data_size);
105 
119 extern int atcaprov_certreq_recv(void* user_data, char* data, size_t data_size, size_t* data_recv_size);
120 
129 extern int atcaprov_certreq_done(void* user_data);
130 
138 extern void atcaprov_request_error(void* user_data, int32_t error_code, const char* error_msg);
139 
140 #ifdef __cplusplus
141 }
142 #endif
143 
144 #endif
Function and structure declarations for the provisioning process.
enum atcaprov_stage_e atcaprov_stage_t
int atcaprov_certreq_done(void *user_data)
User implemented. This is called by the provisioning process to indicate it's done reading the certif...
void atcaprov_notify(void *user_data, atcaprov_stage_t stage, atcaprov_status_t status)
User implemented. This is called to notify the calling application of the status of each stage of the...
Message handling routine declarations, structures, and constants.
int atcaprov_certreq_start(void *user_data)
User implemented. This is called by the provisioning process right before a request for certificates ...
int atcaprov_certreq_recv(void *user_data, char *data, size_t data_size, size_t *data_recv_size)
User implemented. This is called by the provisioning process to read a request's reply back from the ...
enum atcaprov_status_e atcaprov_status_t
int atcaprov_certreq_send(void *user_data, const char *data, size_t data_size)
User implemented. This is called by the provisioning process to send a request to the provisioning se...
int atcaprov_write_data_zone(void *user_data, const uint8_t config[128])
User implemented. This is called once by the provisioning process when the data zone is unlocked and ...
void atcaprov_request_error(void *user_data, int32_t error_code, const char *error_msg)
User implemented. This is called if the reply to the certificate request has an error.