blob: 432571c3ddf20e3efd527a18e6d429768805b53e [file] [log] [blame]
[email protected]d0f6d662013-10-08 08:21:231// Copyright 2013 The Chromium Authors. All rights reserved.
[email protected]5d30093d2011-12-17 06:47:222// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]d0f6d662013-10-08 08:21:235#include "components/onc/onc_constants.h"
[email protected]5d30093d2011-12-17 06:47:226
7// Constants for ONC properties.
8namespace onc {
9
[email protected]79affb72013-04-19 20:35:0710const char kAugmentationActiveSetting[] = "Active";
[email protected]a9a87bda2013-02-15 13:03:1011const char kAugmentationEffectiveSetting[] = "Effective";
12const char kAugmentationUserPolicy[] = "UserPolicy";
13const char kAugmentationDevicePolicy[] = "DevicePolicy";
14const char kAugmentationUserSetting[] = "UserSetting";
15const char kAugmentationSharedSetting[] = "SharedSetting";
16const char kAugmentationUserEditable[] = "UserEditable";
17const char kAugmentationDeviceEditable[] = "DeviceEditable";
18
stevenjb7b704d272016-11-16 02:36:3519const char kAugmentationActiveExtension[] = "ActiveExtension";
20
[email protected]a3a34012012-11-06 16:46:5521// Common keys/values.
[email protected]ca16bcc92012-02-17 23:15:3622const char kRecommended[] = "Recommended";
[email protected]5d30093d2011-12-17 06:47:2223const char kRemove[] = "Remove";
[email protected]a3a34012012-11-06 16:46:5524
[email protected]4189c9c22013-01-23 03:32:3025// Top Level Configuration
26namespace toplevel_config {
27const char kCertificates[] = "Certificates";
28const char kEncryptedConfiguration[] = "EncryptedConfiguration";
29const char kNetworkConfigurations[] = "NetworkConfigurations";
[email protected]e5ed56eb2013-10-21 21:07:5330const char kGlobalNetworkConfiguration[] = "GlobalNetworkConfiguration";
[email protected]4189c9c22013-01-23 03:32:3031const char kType[] = "Type";
32const char kUnencryptedConfiguration[] = "UnencryptedConfiguration";
33} // namespace toplevel_config
34
[email protected]a3a34012012-11-06 16:46:5535// Network Configuration
[email protected]4189c9c22013-01-23 03:32:3036namespace network_config {
[email protected]a3a34012012-11-06 16:46:5537const char kCellular[] = "Cellular";
Steven Bennettsb4dd54b2014-09-11 20:50:2538const char kConnectable[] = "Connectable";
39const char kConnectionState[] = "ConnectionState";
[email protected]edf1e492a2014-05-22 06:21:4040const char kDevice[] = "Device";
Steven Bennettsb4dd54b2014-09-11 20:50:2541const char kErrorState[] = "ErrorState";
[email protected]a3a34012012-11-06 16:46:5542const char kEthernet[] = "Ethernet";
43const char kGUID[] = "GUID";
stevenjb75a3c1dc2015-01-07 19:06:5444const char kIPAddressConfigType[] = "IPAddressConfigType";
[email protected]a3a34012012-11-06 16:46:5545const char kIPConfigs[] = "IPConfigs";
stevenjb75a3c1dc2015-01-07 19:06:5446const char kIPConfigTypeDHCP[] = "DHCP";
47const char kIPConfigTypeStatic[] = "Static";
[email protected]fad51d52014-05-20 17:23:0948const char kMacAddress[] = "MacAddress";
stevenjb75a3c1dc2015-01-07 19:06:5449const char kNameServersConfigType[] = "NameServersConfigType";
Steven Bennettsb4dd54b2014-09-11 20:50:2550const char kName[] = "Name";
[email protected]ba37c342014-08-21 16:05:4651const char kPriority[] = "Priority";
[email protected]a3a34012012-11-06 16:46:5552const char kProxySettings[] = "ProxySettings";
stevenjb5a945c72014-09-06 18:35:0453const char kRestrictedConnectivity[] = "RestrictedConnectivity";
Steven Bennettsb4dd54b2014-09-11 20:50:2554const char kSavedIPConfig[] = "SavedIPConfig";
Steven Bennettsb4dd54b2014-09-11 20:50:2555const char kSourceDevice[] = "Device";
56const char kSourceDevicePolicy[] = "DevicePolicy";
57const char kSourceNone[] = "None";
58const char kSourceUser[] = "User";
59const char kSourceUserPolicy[] = "UserPolicy";
60const char kSource[] = "Source";
61const char kStaticIPConfig[] = "StaticIPConfig";
khorimotoe8e89d52017-04-19 21:16:0462const char kTether[] = "Tether";
[email protected]5d30093d2011-12-17 06:47:2263const char kType[] = "Type";
64const char kVPN[] = "VPN";
65const char kWiFi[] = "WiFi";
pneubecka901ffa2014-09-18 15:31:4066const char kWimax[] = "WiMAX";
[email protected]e24d4532014-04-23 21:32:2867
68std::string CellularProperty(const std::string& property) {
69 return std::string(kCellular) + "." + property;
70}
71
khorimotoe8e89d52017-04-19 21:16:0472std::string TetherProperty(const std::string& property) {
73 return std::string(kTether) + "." + property;
74}
75
[email protected]e24d4532014-04-23 21:32:2876std::string VpnProperty(const std::string& property) {
77 return std::string(kVPN) + "." + property;
78}
79
80std::string WifiProperty(const std::string& property) {
81 return std::string(kWiFi) + "." + property;
82}
83
[email protected]4189c9c22013-01-23 03:32:3084} // namespace network_config
85
86namespace network_type {
87const char kAllTypes[] = "All";
88const char kCellular[] = "Cellular";
89const char kEthernet[] = "Ethernet";
khorimotoe8e89d52017-04-19 21:16:0490const char kTether[] = "Tether";
[email protected]4189c9c22013-01-23 03:32:3091const char kVPN[] = "VPN";
92const char kWiFi[] = "WiFi";
pneubecka901ffa2014-09-18 15:31:4093const char kWimax[] = "WiMAX";
[email protected]04df97c2014-05-19 21:36:0094const char kWireless[] = "Wireless";
[email protected]4189c9c22013-01-23 03:32:3095} // namespace network_type
96
97namespace cellular {
[email protected]4189c9c22013-01-23 03:32:3098const char kActivationState[] = "ActivationState";
stevenjb5a945c72014-09-06 18:35:0499const char kActivated[] = "Activated";
100const char kActivating[] = "Activating";
stevenjbd812b832015-03-31 02:08:52101const char kAutoConnect[] = "AutoConnect";
stevenjb5a945c72014-09-06 18:35:04102const char kNotActivated[] = "NotActivated";
103const char kPartiallyActivated[] = "PartiallyActivated";
[email protected]8bb063b2014-08-12 01:00:34104const char kActivationType[] = "ActivationType";
[email protected]4189c9c22013-01-23 03:32:30105const char kAllowRoaming[] = "AllowRoaming";
106const char kAPN[] = "APN";
[email protected]a722df12013-10-15 02:55:28107const char kAPNList[] = "APNList";
[email protected]4189c9c22013-01-23 03:32:30108const char kCarrier[] = "Carrier";
109const char kESN[] = "ESN";
110const char kFamily[] = "Family";
111const char kFirmwareRevision[] = "FirmwareRevision";
112const char kFoundNetworks[] = "FoundNetworks";
113const char kHardwareRevision[] = "HardwareRevision";
114const char kHomeProvider[] = "HomeProvider";
115const char kICCID[] = "ICCID";
116const char kIMEI[] = "IMEI";
117const char kIMSI[] = "IMSI";
stevenjb4ff8121c2014-08-27 22:18:19118const char kLastGoodAPN[] = "LastGoodAPN";
[email protected]4189c9c22013-01-23 03:32:30119const char kManufacturer[] = "Manufacturer";
120const char kMDN[] = "MDN";
121const char kMEID[] = "MEID";
122const char kMIN[] = "MIN";
123const char kModelID[] = "ModelID";
124const char kNetworkTechnology[] = "NetworkTechnology";
stevenjbb7d10c9a2015-04-09 19:50:07125const char kPaymentPortal[] = "PaymentPortal";
[email protected]4189c9c22013-01-23 03:32:30126const char kPRLVersion[] = "PRLVersion";
stevenjb00f2e612015-02-25 21:05:53127const char kRoamingHome[] = "Home";
128const char kRoamingRequired[] = "Required";
129const char kRoamingRoaming[] = "Roaming";
[email protected]4189c9c22013-01-23 03:32:30130const char kRoamingState[] = "RoamingState";
Steven Bennettsa31eb88b2017-09-19 18:55:48131const char kScanning[] = "Scanning";
[email protected]4189c9c22013-01-23 03:32:30132const char kServingOperator[] = "ServingOperator";
stevenjb18bd9ed2015-02-12 18:37:27133const char kSignalStrength[] = "SignalStrength";
[email protected]4189c9c22013-01-23 03:32:30134const char kSIMLockStatus[] = "SIMLockStatus";
135const char kSIMPresent[] = "SIMPresent";
136const char kSupportedCarriers[] = "SupportedCarriers";
137const char kSupportNetworkScan[] = "SupportNetworkScan";
stevenjb634eb9962015-03-26 17:23:14138const char kTechnologyCdma1Xrtt[] = "CDMA1XRTT";
139const char kTechnologyEdge[] = "EDGE";
140const char kTechnologyEvdo[] = "EVDO";
141const char kTechnologyGprs[] = "GPRS";
142const char kTechnologyGsm[] = "GSM";
143const char kTechnologyHspa[] = "HSPA";
144const char kTechnologyHspaPlus[] = "HSPAPlus";
145const char kTechnologyLte[] = "LTE";
146const char kTechnologyLteAdvanced[] = "LTEAdvanced";
147const char kTechnologyUmts[] = "UMTS";
[email protected]4189c9c22013-01-23 03:32:30148} // namespace cellular
149
[email protected]d75386c72013-08-17 00:16:21150namespace cellular_provider {
151const char kCode[] = "Code";
152const char kCountry[] = "Country";
153const char kName[] = "Name";
154} // namespace cellular_provider
155
[email protected]2c9492bd2013-09-03 23:21:50156namespace cellular_apn {
stevenjb4ff8121c2014-08-27 22:18:19157const char kAccessPointName[] = "AccessPointName";
[email protected]2c9492bd2013-09-03 23:21:50158const char kName[] = "Name";
159const char kUsername[] = "Username";
160const char kPassword[] = "Password";
Ben Chan613a7a32018-06-13 04:38:17161const char kAuthentication[] = "Authentication";
[email protected]a2026ba2014-07-25 19:14:29162const char kLocalizedName[] = "LocalizedName";
Ben Chanbbdc8ae2018-06-01 19:50:27163const char kLanguage[] = "Language";
[email protected]2c9492bd2013-09-03 23:21:50164} // namespace cellular_apn
165
[email protected]a2026ba2014-07-25 19:14:29166namespace cellular_found_network {
167const char kStatus[] = "Status";
168const char kNetworkId[] = "NetworkId";
169const char kShortName[] = "ShortName";
170const char kLongName[] = "LongName";
171const char kTechnology[] = "Technology";
stevenjbb7d10c9a2015-04-09 19:50:07172} // namespace cellular_found_network
173
174namespace cellular_payment_portal {
175const char kMethod[] = "Method";
176const char kPostData[] = "PostData";
177const char kUrl[] = "Url";
178} // namespace cellular_payment_portal
[email protected]a2026ba2014-07-25 19:14:29179
180namespace sim_lock_status {
181const char kLockEnabled[] = "LockEnabled";
182const char kLockType[] = "LockType";
183const char kRetriesLeft[] = "RetriesLeft";
stevenjbb7d10c9a2015-04-09 19:50:07184} // namespace sim_lock_status
[email protected]a2026ba2014-07-25 19:14:29185
[email protected]4189c9c22013-01-23 03:32:30186namespace connection_state {
187const char kConnected[] = "Connected";
188const char kConnecting[] = "Connecting";
189const char kNotConnected[] = "NotConnected";
[email protected]bd0b68992013-06-29 13:53:12190} // namespace connection_state
[email protected]5d30093d2011-12-17 06:47:22191
[email protected]3dd857f2012-01-31 01:26:43192namespace ethernet {
193const char kAuthentication[] = "Authentication";
[email protected]d02702002014-07-08 20:58:09194const char kAuthenticationNone[] = "None";
[email protected]3dd857f2012-01-31 01:26:43195const char kEAP[] = "EAP";
[email protected]a3a34012012-11-06 16:46:55196const char k8021X[] = "8021X";
[email protected]3dd857f2012-01-31 01:26:43197} // namespace ethernet
198
khorimotoe8e89d52017-04-19 21:16:04199namespace tether {
200const char kBatteryPercentage[] = "BatteryPercentage";
201const char kCarrier[] = "Carrier";
khorimotof7b48722017-04-28 03:14:11202const char kHasConnectedToHost[] = "HasConnectedToHost";
khorimotoe8e89d52017-04-19 21:16:04203const char kSignalStrength[] = "SignalStrength";
204} // namespace tether
205
[email protected]a3a34012012-11-06 16:46:55206namespace ipconfig {
207const char kGateway[] = "Gateway";
208const char kIPAddress[] = "IPAddress";
209const char kIPv4[] = "IPv4";
210const char kIPv6[] = "IPv6";
[email protected]af8f5452014-04-29 11:29:26211const char kNameServers[] = "NameServers";
[email protected]a3a34012012-11-06 16:46:55212const char kRoutingPrefix[] = "RoutingPrefix";
pneubeck53f190e2015-01-05 19:52:46213const char kSearchDomains[] = "SearchDomains";
Kevin Cernekee378087d2017-09-12 23:20:20214const char kIncludedRoutes[] = "IncludedRoutes";
215const char kExcludedRoutes[] = "ExcludedRoutes";
[email protected]a3a34012012-11-06 16:46:55216const char kType[] = "Type";
stevenjb6eae0392014-09-04 20:48:24217const char kWebProxyAutoDiscoveryUrl[] = "WebProxyAutoDiscoveryUrl";
[email protected]a3a34012012-11-06 16:46:55218} // namespace ipconfig
219
[email protected]5d30093d2011-12-17 06:47:22220namespace wifi {
zqiu6929e392014-10-07 02:16:11221const char kAllowGatewayARPPolling[] = "AllowGatewayARPPolling";
[email protected]5d30093d2011-12-17 06:47:22222const char kAutoConnect[] = "AutoConnect";
[email protected]4189c9c22013-01-23 03:32:30223const char kBSSID[] = "BSSID";
[email protected]5d30093d2011-12-17 06:47:22224const char kEAP[] = "EAP";
[email protected]bd0b68992013-06-29 13:53:12225const char kFrequency[] = "Frequency";
226const char kFrequencyList[] = "FrequencyList";
Matthew Wang17e0bfd2018-04-10 14:41:44227const char kFTEnabled[] = "FTEnabled";
cschuetdecce902014-12-04 16:58:24228const char kHexSSID[] = "HexSSID";
[email protected]5d30093d2011-12-17 06:47:22229const char kHiddenSSID[] = "HiddenSSID";
230const char kPassphrase[] = "Passphrase";
samueltanf8c76162015-04-16 21:21:27231const char kRoamThreshold[] = "RoamThreshold";
[email protected]5d30093d2011-12-17 06:47:22232const char kSSID[] = "SSID";
233const char kSecurity[] = "Security";
[email protected]d02702002014-07-08 20:58:09234const char kSecurityNone[] = "None";
[email protected]7e291a72013-03-05 11:52:46235const char kSignalStrength[] = "SignalStrength";
Abhishek Bhardwaj2b490032018-08-03 05:33:18236const char kTetheringState[] = "TetheringState";
[email protected]a3a34012012-11-06 16:46:55237const char kWEP_8021X[] = "WEP-8021X";
[email protected]7e291a72013-03-05 11:52:46238const char kWEP_PSK[] = "WEP-PSK";
[email protected]a3a34012012-11-06 16:46:55239const char kWPA_EAP[] = "WPA-EAP";
[email protected]7e291a72013-03-05 11:52:46240const char kWPA_PSK[] = "WPA-PSK";
[email protected]e425d0362013-12-13 18:25:17241const char kWPA2_PSK[] = "WPA2-PSK";
[email protected]5d30093d2011-12-17 06:47:22242} // namespace wifi
243
pneubecka901ffa2014-09-18 15:31:40244namespace wimax {
245const char kAutoConnect[] = "AutoConnect";
246const char kEAP[] = "EAP";
247const char kSignalStrength[] = "SignalStrength";
248} // namespace wimax
249
[email protected]d02702002014-07-08 20:58:09250namespace client_cert {
251const char kClientCertPattern[] = "ClientCertPattern";
stevenjbbbb23b72017-05-25 23:04:48252const char kClientCertPKCS11Id[] = "ClientCertPKCS11Id";
[email protected]d02702002014-07-08 20:58:09253const char kClientCertRef[] = "ClientCertRef";
254const char kClientCertType[] = "ClientCertType";
255const char kClientCertTypeNone[] = "None";
[email protected]ca16bcc92012-02-17 23:15:36256const char kCommonName[] = "CommonName";
257const char kEmailAddress[] = "EmailAddress";
258const char kEnrollmentURI[] = "EnrollmentURI";
[email protected]ca16bcc92012-02-17 23:15:36259const char kIssuerCARef[] = "IssuerCARef";
[email protected]823e3cd2013-07-03 19:21:00260const char kIssuerCAPEMs[] = "IssuerCAPEMs";
[email protected]a3a34012012-11-06 16:46:55261const char kIssuer[] = "Issuer";
[email protected]ca16bcc92012-02-17 23:15:36262const char kLocality[] = "Locality";
[email protected]ca16bcc92012-02-17 23:15:36263const char kOrganization[] = "Organization";
264const char kOrganizationalUnit[] = "OrganizationalUnit";
265const char kPattern[] = "Pattern";
stevenjbbbb23b72017-05-25 23:04:48266const char kPKCS11Id[] = "PKCS11Id";
[email protected]ca16bcc92012-02-17 23:15:36267const char kRef[] = "Ref";
268const char kSubject[] = "Subject";
[email protected]d02702002014-07-08 20:58:09269} // namespace client_cert
270
271namespace certificate {
272const char kAuthority[] = "Authority";
273const char kClient[] = "Client";
274const char kGUID[] = "GUID";
275const char kPKCS12[] = "PKCS12";
276const char kServer[] = "Server";
[email protected]0254eff82013-04-09 15:43:54277const char kTrustBits[] = "TrustBits";
[email protected]a3a34012012-11-06 16:46:55278const char kType[] = "Type";
[email protected]09573522012-11-29 14:55:27279const char kWeb[] = "Web";
[email protected]a3a34012012-11-06 16:46:55280const char kX509[] = "X509";
[email protected]ca16bcc92012-02-17 23:15:36281} // namespace certificate
282
[email protected]09573522012-11-29 14:55:27283namespace encrypted {
284const char kAES256[] = "AES256";
285const char kCipher[] = "Cipher";
286const char kCiphertext[] = "Ciphertext";
287const char kHMACMethod[] = "HMACMethod";
288const char kHMAC[] = "HMAC";
289const char kIV[] = "IV";
290const char kIterations[] = "Iterations";
291const char kPBKDF2[] = "PBKDF2";
292const char kSHA1[] = "SHA1";
293const char kSalt[] = "Salt";
294const char kStretch[] = "Stretch";
[email protected]09573522012-11-29 14:55:27295} // namespace encrypted
296
[email protected]5d30093d2011-12-17 06:47:22297namespace eap {
298const char kAnonymousIdentity[] = "AnonymousIdentity";
[email protected]a3a34012012-11-06 16:46:55299const char kAutomatic[] = "Automatic";
[email protected]a3a34012012-11-06 16:46:55300const char kEAP_AKA[] = "EAP-AKA";
301const char kEAP_FAST[] = "EAP-FAST";
302const char kEAP_SIM[] = "EAP-SIM";
303const char kEAP_TLS[] = "EAP-TLS";
304const char kEAP_TTLS[] = "EAP-TTLS";
psteweba91db2015-05-12 00:18:13305const char kGTC[] = "GTC";
[email protected]5d30093d2011-12-17 06:47:22306const char kIdentity[] = "Identity";
307const char kInner[] = "Inner";
[email protected]a3a34012012-11-06 16:46:55308const char kLEAP[] = "LEAP";
309const char kMD5[] = "MD5";
stevenjbd66bcd42017-05-02 15:43:05310const char kMSCHAP[] = "MSCHAP";
[email protected]a3a34012012-11-06 16:46:55311const char kMSCHAPv2[] = "MSCHAPv2";
[email protected]5d30093d2011-12-17 06:47:22312const char kOuter[] = "Outer";
[email protected]a3a34012012-11-06 16:46:55313const char kPAP[] = "PAP";
314const char kPEAP[] = "PEAP";
[email protected]5d30093d2011-12-17 06:47:22315const char kPassword[] = "Password";
316const char kSaveCredentials[] = "SaveCredentials";
[email protected]823e3cd2013-07-03 19:21:00317const char kServerCAPEMs[] = "ServerCAPEMs";
[email protected]5d30093d2011-12-17 06:47:22318const char kServerCARef[] = "ServerCARef";
[email protected]7f123d22013-12-16 13:08:13319const char kServerCARefs[] = "ServerCARefs";
stevenjbd66bcd42017-05-02 15:43:05320const char kSubjectMatch[] = "SubjectMatch";
Kevin Cernekeeb29928a62017-11-29 00:31:52321const char kTLSVersionMax[] = "TLSVersionMax";
[email protected]5d30093d2011-12-17 06:47:22322const char kUseSystemCAs[] = "UseSystemCAs";
mattweinb605e722015-04-24 04:15:56323const char kUseProactiveKeyCaching[] = "UseProactiveKeyCaching";
[email protected]5d30093d2011-12-17 06:47:22324} // namespace eap
325
326namespace vpn {
[email protected]2ea2cc52013-01-24 17:40:07327const char kAutoConnect[] = "AutoConnect";
[email protected]86e95b282013-07-02 20:45:03328const char kHost[] = "Host";
329const char kIPsec[] = "IPsec";
330const char kL2TP[] = "L2TP";
331const char kOpenVPN[] = "OpenVPN";
332const char kPassword[] = "Password";
333const char kSaveCredentials[] = "SaveCredentials";
kaliamoorthi583cbf872014-12-02 17:48:31334const char kThirdPartyVpn[] = "ThirdPartyVPN";
Kevin Cernekee6d926e1c2017-09-13 01:31:27335const char kArcVpn[] = "ARCVPN";
[email protected]86e95b282013-07-02 20:45:03336const char kTypeL2TP_IPsec[] = "L2TP-IPsec";
337const char kType[] = "Type";
338const char kUsername[] = "Username";
339} // namespace vpn
340
341namespace ipsec {
342const char kAuthenticationType[] = "AuthenticationType";
343const char kCert[] = "Cert";
[email protected]a3a34012012-11-06 16:46:55344const char kEAP[] = "EAP";
[email protected]5d30093d2011-12-17 06:47:22345const char kGroup[] = "Group";
[email protected]5d30093d2011-12-17 06:47:22346const char kIKEVersion[] = "IKEVersion";
[email protected]5d30093d2011-12-17 06:47:22347const char kPSK[] = "PSK";
[email protected]823e3cd2013-07-03 19:21:00348const char kServerCAPEMs[] = "ServerCAPEMs";
[email protected]7f123d22013-12-16 13:08:13349const char kServerCARef[] = "ServerCARef";
350const char kServerCARefs[] = "ServerCARefs";
[email protected]86e95b282013-07-02 20:45:03351const char kXAUTH[] = "XAUTH";
352} // namespace ipsec
353
pstewb20f7912015-04-06 21:00:26354namespace l2tp {
355const char kLcpEchoDisabled[] = "LcpEchoDisabled";
356const char kPassword[] = "Password";
357const char kSaveCredentials[] = "SaveCredentials";
358const char kUsername[] = "Username";
359} // namespace l2tp
360
[email protected]86e95b282013-07-02 20:45:03361namespace openvpn {
362const char kAuthNoCache[] = "AuthNoCache";
363const char kAuthRetry[] = "AuthRetry";
364const char kAuth[] = "Auth";
365const char kCipher[] = "Cipher";
366const char kCompLZO[] = "CompLZO";
367const char kCompNoAdapt[] = "CompNoAdapt";
Matthew Wang22a9493a2017-10-17 21:20:45368const char kExtraHosts[] = "ExtraHosts";
[email protected]9d34bbb2014-05-13 00:51:28369const char kIgnoreDefaultRoute[] = "IgnoreDefaultRoute";
[email protected]86e95b282013-07-02 20:45:03370const char kInteract[] = "interact";
371const char kKeyDirection[] = "KeyDirection";
372const char kNoInteract[] = "nointeract";
373const char kNone[] = "none";
374const char kNsCertType[] = "NsCertType";
pneubeck5a85abf2014-10-07 09:17:39375const char kOTP[] = "OTP";
376const char kPassword[] = "Password";
[email protected]5d30093d2011-12-17 06:47:22377const char kPort[] = "Port";
378const char kProto[] = "Proto";
379const char kPushPeerInfo[] = "PushPeerInfo";
380const char kRemoteCertEKU[] = "RemoteCertEKU";
381const char kRemoteCertKU[] = "RemoteCertKU";
382const char kRemoteCertTLS[] = "RemoteCertTLS";
383const char kRenegSec[] = "RenegSec";
[email protected]823e3cd2013-07-03 19:21:00384const char kServerCAPEMs[] = "ServerCAPEMs";
[email protected]7f123d22013-12-16 13:08:13385const char kServerCARef[] = "ServerCARef";
386const char kServerCARefs[] = "ServerCARefs";
[email protected]823e3cd2013-07-03 19:21:00387const char kServerCertPEM[] = "ServerCertPEM";
[email protected]5d30093d2011-12-17 06:47:22388const char kServerCertRef[] = "ServerCertRef";
389const char kServerPollTimeout[] = "ServerPollTimeout";
[email protected]86e95b282013-07-02 20:45:03390const char kServer[] = "server";
[email protected]5d30093d2011-12-17 06:47:22391const char kShaper[] = "Shaper";
392const char kStaticChallenge[] = "StaticChallenge";
393const char kTLSAuthContents[] = "TLSAuthContents";
394const char kTLSRemote[] = "TLSRemote";
Matthew Wangb75a4ce2017-12-22 02:14:22395const char kTLSVersionMin[] = "TLSVersionMin";
pneubeck5a85abf2014-10-07 09:17:39396const char kUserAuthenticationType[] = "UserAuthenticationType";
[email protected]a3a34012012-11-06 16:46:55397const char kVerb[] = "Verb";
[email protected]e3a46c6b2013-11-12 13:19:14398const char kVerifyHash[] = "VerifyHash";
399const char kVerifyX509[] = "VerifyX509";
[email protected]a3a34012012-11-06 16:46:55400} // namespace openvpn
401
pneubeck5a85abf2014-10-07 09:17:39402namespace openvpn_user_auth_type {
403const char kNone[] = "None";
404const char kOTP[] = "OTP";
405const char kPassword[] = "Password";
406const char kPasswordAndOTP[] = "PasswordAndOTP";
407} // openvpn_user_auth_type
408
bartfab82bb909332015-03-18 23:58:36409namespace third_party_vpn {
410const char kExtensionID[] = "ExtensionID";
stevenjb845fe522015-09-17 01:10:31411const char kProviderName[] = "ProviderName";
bartfab82bb909332015-03-18 23:58:36412} // third_party_vpn
413
Kevin Cernekee6d926e1c2017-09-13 01:31:27414namespace arc_vpn {
415const char kTunnelChrome[] = "TunnelChrome";
416} // namespace arc_vpn
417
[email protected]e3a46c6b2013-11-12 13:19:14418namespace verify_x509 {
419const char kName[] = "Name";
420const char kType[] = "Type";
421
422namespace types {
423const char kName[] = "name";
424const char kNamePrefix[] = "name-prefix";
425const char kSubject[] = "subject";
426} // namespace types
427} // namespace verify_x509
428
[email protected]5c39d0a2012-01-18 20:52:02429namespace proxy {
430const char kDirect[] = "Direct";
431const char kExcludeDomains[] = "ExcludeDomains";
432const char kFtp[] = "FTPProxy";
433const char kHost[] = "Host";
434const char kHttp[] = "HTTPProxy";
435const char kHttps[] = "SecureHTTPProxy";
436const char kManual[] = "Manual";
437const char kPAC[] = "PAC";
438const char kPort[] = "Port";
439const char kSocks[] = "SOCKS";
440const char kType[] = "Type";
441const char kWPAD[] = "WPAD";
442} // namespace proxy
443
[email protected]74e8d5fd2012-01-19 00:33:13444namespace substitutes {
Pavol Marko75f1569b2018-04-24 14:01:21445const char kLoginID[] = "LOGIN_ID";
446const char kLoginEmail[] = "LOGIN_EMAIL";
447const char kCertSANEmail[] = "CERT_SAN_EMAIL";
448const char kCertSANUPN[] = "CERT_SAN_UPN";
449const char kCertSubjectCommonName[] = "CERT_SUBJECT_COMMON_NAME";
450const char kDeviceSerialNumber[] = "DEVICE_SERIAL_NUMBER";
451const char kDeviceAssetId[] = "DEVICE_ASSET_ID";
452// The password placeholder is defined as ${PASSWORD} because it's compared
453// verbatim against the policy-specified password field, and if it matches,
454// another bool (|shill::kEapUseLoginPasswordProperty|) is set, which makes
455// shill replace the whole password field.
456// The other placeholders above on the other hand are replaced using
457// VariableExpander.
458const char kPasswordPlaceholderVerbatim[] = "${PASSWORD}";
[email protected]74e8d5fd2012-01-19 00:33:13459} // namespace substitutes
460
[email protected]e5ed56eb2013-10-21 21:07:53461namespace global_network_config {
462const char kAllowOnlyPolicyNetworksToAutoconnect[] =
463 "AllowOnlyPolicyNetworksToAutoconnect";
fqj34fdc7362015-11-13 14:04:30464const char kAllowOnlyPolicyNetworksToConnect[] =
465 "AllowOnlyPolicyNetworksToConnect";
Alexander Hendriche4d3b26d2018-08-01 11:50:54466const char kAllowOnlyPolicyNetworksToConnectIfAvailable[] =
467 "AllowOnlyPolicyNetworksToConnectIfAvailable";
Alexander Hendriche6e30302018-06-20 15:30:05468const char kBlacklistedHexSSIDs[] = "BlacklistedHexSSIDs";
cschuet0002215a2015-09-07 16:51:26469const char kDisableNetworkTypes[] = "DisableNetworkTypes";
[email protected]e5ed56eb2013-10-21 21:07:53470} // global_network_config
471
stevenjb7d6a04922015-04-10 15:53:04472namespace device_state {
473const char kUninitialized[] = "Uninitialized";
474const char kDisabled[] = "Disabled";
475const char kEnabling[] = "Enabling";
476const char kEnabled[] = "Enabled";
477} // device_state
478
Abhishek Bhardwaj2b490032018-08-03 05:33:18479namespace tethering_state {
480const char kTetheringConfirmedState[] = "Confirmed";
481const char kTetheringNotDetectedState[] = "NotDetected";
482const char kTetheringSuspectedState[] = "Suspected";
483} // namespace tethering_state
484
[email protected]5d30093d2011-12-17 06:47:22485} // namespace onc