1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright OpenBMC Authors
#pragma once
#include <nlohmann/json.hpp>
namespace manager_account
{
// clang-format off
enum class AccountTypes{
Invalid,
Redfish,
SNMP,
OEM,
HostConsole,
ManagerConsole,
IPMI,
KVMIP,
VirtualMedia,
WebUI,
ControlPanel,
};
enum class SNMPAuthenticationProtocols{
Invalid,
None,
HMAC_MD5,
HMAC_SHA96,
HMAC128_SHA224,
HMAC192_SHA256,
HMAC256_SHA384,
HMAC384_SHA512,
};
enum class SNMPEncryptionProtocols{
Invalid,
None,
CBC_DES,
CFB128_AES128,
CFB128_AES192,
CFB128_AES256,
};
NLOHMANN_JSON_SERIALIZE_ENUM(AccountTypes, {
{AccountTypes::Invalid, "Invalid"},
{AccountTypes::Redfish, "Redfish"},
{AccountTypes::SNMP, "SNMP"},
{AccountTypes::OEM, "OEM"},
{AccountTypes::HostConsole, "HostConsole"},
{AccountTypes::ManagerConsole, "ManagerConsole"},
{AccountTypes::IPMI, "IPMI"},
{AccountTypes::KVMIP, "KVMIP"},
{AccountTypes::VirtualMedia, "VirtualMedia"},
{AccountTypes::WebUI, "WebUI"},
{AccountTypes::ControlPanel, "ControlPanel"},
});
NLOHMANN_JSON_SERIALIZE_ENUM(SNMPAuthenticationProtocols, {
{SNMPAuthenticationProtocols::Invalid, "Invalid"},
{SNMPAuthenticationProtocols::None, "None"},
{SNMPAuthenticationProtocols::HMAC_MD5, "HMAC_MD5"},
{SNMPAuthenticationProtocols::HMAC_SHA96, "HMAC_SHA96"},
{SNMPAuthenticationProtocols::HMAC128_SHA224, "HMAC128_SHA224"},
{SNMPAuthenticationProtocols::HMAC192_SHA256, "HMAC192_SHA256"},
{SNMPAuthenticationProtocols::HMAC256_SHA384, "HMAC256_SHA384"},
{SNMPAuthenticationProtocols::HMAC384_SHA512, "HMAC384_SHA512"},
});
NLOHMANN_JSON_SERIALIZE_ENUM(SNMPEncryptionProtocols, {
{SNMPEncryptionProtocols::Invalid, "Invalid"},
{SNMPEncryptionProtocols::None, "None"},
{SNMPEncryptionProtocols::CBC_DES, "CBC_DES"},
{SNMPEncryptionProtocols::CFB128_AES128, "CFB128_AES128"},
{SNMPEncryptionProtocols::CFB128_AES192, "CFB128_AES192"},
{SNMPEncryptionProtocols::CFB128_AES256, "CFB128_AES256"},
});
// clang-format on
} // namespace manager_account
|