Example
Dependencies: FXAS21002 FXOS8700Q
simple-mbed-cloud-client/mbed-cloud-client/certificate-enrollment-client/certificate-enrollment-client/ce_defs.h@0:11cc2b7889af, 2019-11-19 (annotated)
- Committer:
- maygup01
- Date:
- Tue Nov 19 09:49:38 2019 +0000
- Revision:
- 0:11cc2b7889af
Example
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
maygup01 | 0:11cc2b7889af | 1 | // ---------------------------------------------------------------------------- |
maygup01 | 0:11cc2b7889af | 2 | // Copyright 2018 ARM Ltd. |
maygup01 | 0:11cc2b7889af | 3 | // |
maygup01 | 0:11cc2b7889af | 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
maygup01 | 0:11cc2b7889af | 5 | // you may not use this file except in compliance with the License. |
maygup01 | 0:11cc2b7889af | 6 | // You may obtain a copy of the License at |
maygup01 | 0:11cc2b7889af | 7 | // |
maygup01 | 0:11cc2b7889af | 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
maygup01 | 0:11cc2b7889af | 9 | // |
maygup01 | 0:11cc2b7889af | 10 | // Unless required by applicable law or agreed to in writing, software |
maygup01 | 0:11cc2b7889af | 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
maygup01 | 0:11cc2b7889af | 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
maygup01 | 0:11cc2b7889af | 13 | // See the License for the specific language governing permissions and |
maygup01 | 0:11cc2b7889af | 14 | // limitations under the License. |
maygup01 | 0:11cc2b7889af | 15 | // ---------------------------------------------------------------------------- |
maygup01 | 0:11cc2b7889af | 16 | |
maygup01 | 0:11cc2b7889af | 17 | #ifndef __CE_DEFS_H__ |
maygup01 | 0:11cc2b7889af | 18 | #define __CE_DEFS_H__ |
maygup01 | 0:11cc2b7889af | 19 | |
maygup01 | 0:11cc2b7889af | 20 | #ifdef __cplusplus |
maygup01 | 0:11cc2b7889af | 21 | extern "C" { |
maygup01 | 0:11cc2b7889af | 22 | #endif |
maygup01 | 0:11cc2b7889af | 23 | |
maygup01 | 0:11cc2b7889af | 24 | /** |
maygup01 | 0:11cc2b7889af | 25 | * @file ce_defs.h |
maygup01 | 0:11cc2b7889af | 26 | * \brief Certificate Enrollment (CE) public defines. |
maygup01 | 0:11cc2b7889af | 27 | * This file, along with `ce_status.h` (included by this file) contains all the defines exposed for the certificate renewal feature. |
maygup01 | 0:11cc2b7889af | 28 | * It is included by `MbedCloudClient.h` so you don't need to include it directly. |
maygup01 | 0:11cc2b7889af | 29 | */ |
maygup01 | 0:11cc2b7889af | 30 | |
maygup01 | 0:11cc2b7889af | 31 | #include "ce_status.h" |
maygup01 | 0:11cc2b7889af | 32 | |
maygup01 | 0:11cc2b7889af | 33 | /** Enumeration representing the initiator of a certificate renewal operation */ |
maygup01 | 0:11cc2b7889af | 34 | typedef enum { |
maygup01 | 0:11cc2b7889af | 35 | CE_INITIATOR_DEVICE, //!< Operation initiated by the application. |
maygup01 | 0:11cc2b7889af | 36 | CE_INITIATOR_SERVER //!< Operation initiated by the certificate enrollment service. |
maygup01 | 0:11cc2b7889af | 37 | } ce_initiator_e; |
maygup01 | 0:11cc2b7889af | 38 | |
maygup01 | 0:11cc2b7889af | 39 | //!< User callback for the certificate renewal feature. char* guaranteed to be persistent only in context of the callback! |
maygup01 | 0:11cc2b7889af | 40 | typedef void(*cert_renewal_cb_f)(const char*, ce_status_e, ce_initiator_e); |
maygup01 | 0:11cc2b7889af | 41 | |
maygup01 | 0:11cc2b7889af | 42 | #ifdef __cplusplus |
maygup01 | 0:11cc2b7889af | 43 | } |
maygup01 | 0:11cc2b7889af | 44 | #endif |
maygup01 | 0:11cc2b7889af | 45 | |
maygup01 | 0:11cc2b7889af | 46 | #endif //__CE_DEFS_H__ |