Mistake on this page? Email us
est_defs.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // Copyright 2018-2020 ARM Ltd.
3 //
4 // SPDX-License-Identifier: Apache-2.0
5 //
6 // Licensed under the Apache License, Version 2.0 (the "License");
7 // you may not use this file except in compliance with the License.
8 // You may obtain a copy of the License at
9 //
10 // http://www.apache.org/licenses/LICENSE-2.0
11 //
12 // Unless required by applicable law or agreed to in writing, software
13 // distributed under the License is distributed on an "AS IS" BASIS,
14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 // See the License for the specific language governing permissions and
16 // limitations under the License.
17 // ----------------------------------------------------------------------------
18 
24 #ifndef __EST_DEFS_H__
25 #define __EST_DEFS_H__
26 
27 #include <stdint.h>
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
40  uint16_t cert_length;
41  uint8_t *cert;
42  struct cert_context_s *next;
43 };
44 
52  uint8_t chain_length;
53  void *cert_data_context;
54  struct cert_context_s *certs;
55 };
56 
57 typedef enum {
58  EST_ENROLLMENT_SUCCESS,
59  EST_ENROLLMENT_FAILURE
60 } est_enrollment_result_e;
61 
62 typedef enum {
63  EST_STATUS_SUCCESS,
64  EST_STATUS_INVALID_PARAMETERS,
65  EST_STATUS_MEMORY_ALLOCATION_FAILURE
66 } est_status_e;
67 
76 typedef void(*est_enrollment_result_cb)(est_enrollment_result_e result,
77  struct cert_chain_context_s *cert_chain,
78  void *context);
79 
80 #ifdef __cplusplus
81 }
82 #endif
83 
84 #endif // __EST_DEFS_H__
Definition: est_defs.h:39
void(* est_enrollment_result_cb)(est_enrollment_result_e result, struct cert_chain_context_s *cert_chain, void *context)
When the enrollment result has been handled by the callback, the free_cert_chain_context function mus...
Definition: est_defs.h:76
Definition: est_defs.h:51