source: azure_iot_hub_f767zi/trunk/azure_iot_sdk/provisioning_client/inc/azure_prov_client/prov_security_factory.h@ 457

Last change on this file since 457 was 457, checked in by coas-nagasima, 4 years ago

ファイルを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr;charset=UTF-8
File size: 1.2 KB
Line 
1// Copyright (c) Microsoft. All rights reserved.
2// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
4#ifndef PROV_SECURITY_FACTORY_H
5#define PROV_SECURITY_FACTORY_H
6
7#ifdef __cplusplus
8#include <cstddef>
9extern "C" {
10#else
11#include <stddef.h>
12#endif /* __cplusplus */
13
14#include "umock_c/umock_c_prod.h"
15#include "azure_macro_utils/macro_utils.h"
16
17#define SECURE_DEVICE_TYPE_VALUES \
18 SECURE_DEVICE_TYPE_UNKNOWN, \
19 SECURE_DEVICE_TYPE_TPM, \
20 SECURE_DEVICE_TYPE_X509, \
21 SECURE_DEVICE_TYPE_HTTP_EDGE, \
22 SECURE_DEVICE_TYPE_SYMMETRIC_KEY
23
24MU_DEFINE_ENUM_WITHOUT_INVALID(SECURE_DEVICE_TYPE, SECURE_DEVICE_TYPE_VALUES);
25
26
27MOCKABLE_FUNCTION(, int, prov_dev_security_init, SECURE_DEVICE_TYPE, hsm_type);
28MOCKABLE_FUNCTION(, void, prov_dev_security_deinit);
29MOCKABLE_FUNCTION(, SECURE_DEVICE_TYPE, prov_dev_security_get_type);
30
31// Symmetric key information
32MOCKABLE_FUNCTION(, int, prov_dev_set_symmetric_key_info, const char*, registration_name, const char*, symmetric_key);
33MOCKABLE_FUNCTION(, const char*, prov_dev_get_symmetric_key);
34MOCKABLE_FUNCTION(, const char*, prov_dev_get_symm_registration_name);
35
36#ifdef __cplusplus
37}
38#endif /* __cplusplus */
39
40#endif // PROV_SECURITY_FACTORY_H
Note: See TracBrowser for help on using the repository browser.