Mistake on this page? Email us
factory_configurator_client.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // Copyright 2016-2017 ARM Ltd.
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 // ----------------------------------------------------------------------------
16 
17 #ifndef __FACTORY_CONFIGURATOR_CLIENT_H__
18 #define __FACTORY_CONFIGURATOR_CLIENT_H__
19 
20 #include <stdlib.h>
21 #include <inttypes.h>
22 #include "fcc_status.h"
23 #include "fcc_output_info_handler.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
34 /* === Initialization and Finalization === */
35 
42 
43 
52 
53 /* === Factory clean operation === */
54 
62 
63 
64 /* === Warning and errors data operations === */
65 
103 
111 bool fcc_is_session_finished(void);
112 
113 /* === Verification === */
114 
122 
123 
124 /* === Secure Time === */
125 
134 fcc_status_e fcc_time_set(uint64_t time);
135 
136 
137 /* === Entropy and RoT injection === */
138 
153 fcc_status_e fcc_entropy_set(const uint8_t *buf, size_t buf_size);
154 
165 fcc_status_e fcc_rot_set(const uint8_t *buf, size_t buf_size);
166 
167 /* === Bootstrap CA certificate identification storage === */
168 
176 
177 
178 /* === Factory flow disable === */
185 
198 
199 /* === Developer flow === */
200 
216 
217 
218 #ifdef __cplusplus
219 }
220 #endif
221 
222 #endif //__FACTORY_CONFIGURATOR_CLIENT_H__
fcc_status_e fcc_verify_device_configured_4mbed_cloud(void)
factory configurator client status/error codes. This list may grow as needed.
fcc_status_e fcc_rot_set(const uint8_t *buf, size_t buf_size)
fcc_status_e
Definition: fcc_status.h:28
fcc_status_e fcc_trust_ca_cert_id_set(void)
fcc_status_e fcc_developer_flow(void)
fcc_status_e fcc_storage_delete(void)
fcc_status_e fcc_time_set(uint64_t time)
fcc_status_e fcc_is_factory_disabled(bool *fcc_factory_disable)
fcc_status_e fcc_entropy_set(const uint8_t *buf, size_t buf_size)
bool fcc_is_session_finished(void)
fcc_output_info_s * fcc_get_error_and_warning_data(void)
Definition: fcc_defs.h:41
fcc_status_e fcc_finalize(void)
fcc_status_e fcc_factory_disable(void)
fcc_status_e fcc_init(void)