source: azure_iot_hub_riscv/trunk/azure_iot_sdk/provisioning_client/inc/azure_prov_client/iothub_security_factory.h@ 453

Last change on this file since 453 was 453, 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.4 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 IOTHUB_SECURITY_FACTORY_H
5#define IOTHUB_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#include "azure_c_shared_utility/buffer_.h"
17
18#define IOTHUB_SECURITY_TYPE_VALUES \
19 IOTHUB_SECURITY_TYPE_UNKNOWN, \
20 IOTHUB_SECURITY_TYPE_SAS, \
21 IOTHUB_SECURITY_TYPE_X509, \
22 IOTHUB_SECURITY_TYPE_HTTP_EDGE, \
23 IOTHUB_SECURITY_TYPE_SYMMETRIC_KEY
24
25
26MU_DEFINE_ENUM_WITHOUT_INVALID(IOTHUB_SECURITY_TYPE, IOTHUB_SECURITY_TYPE_VALUES);
27
28MOCKABLE_FUNCTION(, int, iothub_security_init, IOTHUB_SECURITY_TYPE, sec_type);
29MOCKABLE_FUNCTION(, void, iothub_security_deinit);
30
31MOCKABLE_FUNCTION(, const void*, iothub_security_interface);
32MOCKABLE_FUNCTION(, IOTHUB_SECURITY_TYPE, iothub_security_type);
33
34// Symmetric key information
35MOCKABLE_FUNCTION(, int, iothub_security_set_symmetric_key_info, const char*, registration_name, const char*, symmetric_key);
36MOCKABLE_FUNCTION(, const char*, iothub_security_get_symmetric_key);
37MOCKABLE_FUNCTION(, const char*, iothub_security_get_symm_registration_name);
38
39#ifdef __cplusplus
40}
41#endif /* __cplusplus */
42
43#endif // IOTHUB_SECURITY_FACTORY_H
Note: See TracBrowser for help on using the repository browser.