1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 #ifndef COMPONENTS_ONC_ONC_CONSTANTS_H_
5 #define COMPONENTS_ONC_ONC_CONSTANTS_H_
9 #include "components/onc/onc_export.h"
11 // Constants for ONC properties.
14 // Indicates from which source an ONC blob comes from.
18 ONC_SOURCE_USER_IMPORT
,
19 ONC_SOURCE_DEVICE_POLICY
,
20 ONC_SOURCE_USER_POLICY
,
23 // These keys are used to augment the dictionary resulting from merging the
24 // different settings and policies.
26 // The setting that Shill declared to be using. For example, if no policy and no
27 // user setting exists, Shill might still report a property like network
28 // security options or a SSID.
29 ONC_EXPORT
extern const char kAugmentationActiveSetting
[];
30 // The one of different setting sources (user/device policy, user/shared
31 // settings) that has highest priority over the others.
32 ONC_EXPORT
extern const char kAugmentationEffectiveSetting
[];
33 ONC_EXPORT
extern const char kAugmentationUserPolicy
[];
34 ONC_EXPORT
extern const char kAugmentationDevicePolicy
[];
35 ONC_EXPORT
extern const char kAugmentationUserSetting
[];
36 ONC_EXPORT
extern const char kAugmentationSharedSetting
[];
37 ONC_EXPORT
extern const char kAugmentationUserEditable
[];
38 ONC_EXPORT
extern const char kAugmentationDeviceEditable
[];
40 // This is no ONC key or value but used for logging only.
41 // TODO(pneubeck): Remove.
42 ONC_EXPORT
extern const char kNetworkConfiguration
[];
44 // Common keys/values.
45 ONC_EXPORT
extern const char kRecommended
[];
46 ONC_EXPORT
extern const char kRemove
[];
48 // Top Level Configuration
49 namespace toplevel_config
{
50 ONC_EXPORT
extern const char kCertificates
[];
51 ONC_EXPORT
extern const char kEncryptedConfiguration
[];
52 ONC_EXPORT
extern const char kNetworkConfigurations
[];
53 ONC_EXPORT
extern const char kGlobalNetworkConfiguration
[];
54 ONC_EXPORT
extern const char kType
[];
55 ONC_EXPORT
extern const char kUnencryptedConfiguration
[];
56 } // namespace toplevel_config
58 // NetworkConfiguration.
59 namespace network_config
{
60 ONC_EXPORT
extern const char kCellular
[];
61 ONC_EXPORT
extern const char kDevice
[];
62 ONC_EXPORT
extern const char kEthernet
[];
63 ONC_EXPORT
extern const char kGUID
[];
64 ONC_EXPORT
extern const char kIPAddressConfigType
[];
65 ONC_EXPORT
extern const char kIPConfigs
[];
66 ONC_EXPORT
extern const char kIPConfigTypeDHCP
[];
67 ONC_EXPORT
extern const char kIPConfigTypeStatic
[];
68 ONC_EXPORT
extern const char kSavedIPConfig
[];
69 ONC_EXPORT
extern const char kStaticIPConfig
[];
70 ONC_EXPORT
extern const char kMacAddress
[];
71 ONC_EXPORT
extern const char kNameServersConfigType
[];
72 ONC_EXPORT
extern const char kName
[];
73 ONC_EXPORT
extern const char kPriority
[];
74 ONC_EXPORT
extern const char kProxySettings
[];
75 ONC_EXPORT
extern const char kSource
[];
76 ONC_EXPORT
extern const char kSourceDevice
[];
77 ONC_EXPORT
extern const char kSourceDevicePolicy
[];
78 ONC_EXPORT
extern const char kSourceNone
[];
79 ONC_EXPORT
extern const char kSourceUser
[];
80 ONC_EXPORT
extern const char kSourceUserPolicy
[];
81 ONC_EXPORT
extern const char kConnectionState
[];
82 ONC_EXPORT
extern const char kRestrictedConnectivity
[];
83 ONC_EXPORT
extern const char kConnectable
[];
84 ONC_EXPORT
extern const char kErrorState
[];
85 ONC_EXPORT
extern const char kType
[];
86 ONC_EXPORT
extern const char kVPN
[];
87 ONC_EXPORT
extern const char kWiFi
[];
88 ONC_EXPORT
extern const char kWimax
[];
90 ONC_EXPORT
extern std::string
CellularProperty(const std::string
& property
);
91 ONC_EXPORT
extern std::string
VpnProperty(const std::string
& property
);
92 ONC_EXPORT
extern std::string
WifiProperty(const std::string
& property
);
94 } // namespace network_config
96 namespace network_type
{
97 ONC_EXPORT
extern const char kCellular
[];
98 ONC_EXPORT
extern const char kEthernet
[];
99 ONC_EXPORT
extern const char kVPN
[];
100 ONC_EXPORT
extern const char kWiFi
[];
101 ONC_EXPORT
extern const char kWimax
[];
102 // Patterns matching multiple types, not part of the ONC spec.
103 ONC_EXPORT
extern const char kAllTypes
[];
104 ONC_EXPORT
extern const char kWireless
[];
105 } // namespace network_type
108 ONC_EXPORT
extern const char kActivationState
[];
109 ONC_EXPORT
extern const char kActivated
[];
110 ONC_EXPORT
extern const char kActivating
[];
111 ONC_EXPORT
extern const char kAutoConnect
[];
112 ONC_EXPORT
extern const char kNotActivated
[];
113 ONC_EXPORT
extern const char kPartiallyActivated
[];
114 ONC_EXPORT
extern const char kActivationType
[];
115 ONC_EXPORT
extern const char kAllowRoaming
[];
116 ONC_EXPORT
extern const char kAPN
[];
117 ONC_EXPORT
extern const char kAPNList
[];
118 ONC_EXPORT
extern const char kCarrier
[];
119 ONC_EXPORT
extern const char kESN
[];
120 ONC_EXPORT
extern const char kFamily
[];
121 ONC_EXPORT
extern const char kFirmwareRevision
[];
122 ONC_EXPORT
extern const char kFoundNetworks
[];
123 ONC_EXPORT
extern const char kHardwareRevision
[];
124 ONC_EXPORT
extern const char kHomeProvider
[];
125 ONC_EXPORT
extern const char kICCID
[];
126 ONC_EXPORT
extern const char kIMEI
[];
127 ONC_EXPORT
extern const char kIMSI
[];
128 ONC_EXPORT
extern const char kLastGoodAPN
[];
129 ONC_EXPORT
extern const char kManufacturer
[];
130 ONC_EXPORT
extern const char kMDN
[];
131 ONC_EXPORT
extern const char kMEID
[];
132 ONC_EXPORT
extern const char kMIN
[];
133 ONC_EXPORT
extern const char kModelID
[];
134 ONC_EXPORT
extern const char kNetworkTechnology
[];
135 ONC_EXPORT
extern const char kPRLVersion
[];
136 ONC_EXPORT
extern const char kRoamingHome
[];
137 ONC_EXPORT
extern const char kRoamingRequired
[];
138 ONC_EXPORT
extern const char kRoamingRoaming
[];
139 ONC_EXPORT
extern const char kRoamingState
[];
140 ONC_EXPORT
extern const char kServingOperator
[];
141 ONC_EXPORT
extern const char kSignalStrength
[];
142 ONC_EXPORT
extern const char kSIMLockStatus
[];
143 ONC_EXPORT
extern const char kSIMPresent
[];
144 ONC_EXPORT
extern const char kSupportedCarriers
[];
145 ONC_EXPORT
extern const char kSupportNetworkScan
[];
146 ONC_EXPORT
extern const char kTechnologyCdma1Xrtt
[];
147 ONC_EXPORT
extern const char kTechnologyEdge
[];
148 ONC_EXPORT
extern const char kTechnologyEvdo
[];
149 ONC_EXPORT
extern const char kTechnologyGprs
[];
150 ONC_EXPORT
extern const char kTechnologyGsm
[];
151 ONC_EXPORT
extern const char kTechnologyHspa
[];
152 ONC_EXPORT
extern const char kTechnologyHspaPlus
[];
153 ONC_EXPORT
extern const char kTechnologyLte
[];
154 ONC_EXPORT
extern const char kTechnologyLteAdvanced
[];
155 ONC_EXPORT
extern const char kTechnologyUmts
[];
156 } // namespace cellular
158 namespace cellular_provider
{
159 ONC_EXPORT
extern const char kCode
[];
160 ONC_EXPORT
extern const char kCountry
[];
161 ONC_EXPORT
extern const char kName
[];
162 } // namespace cellular_provider
164 namespace cellular_apn
{
165 ONC_EXPORT
extern const char kAccessPointName
[];
166 ONC_EXPORT
extern const char kName
[];
167 ONC_EXPORT
extern const char kUsername
[];
168 ONC_EXPORT
extern const char kPassword
[];
169 ONC_EXPORT
extern const char kLocalizedName
[];
170 ONC_EXPORT
extern const char kLanguage
[];
171 } // namespace cellular_apn
173 namespace cellular_found_network
{
174 ONC_EXPORT
extern const char kStatus
[];
175 ONC_EXPORT
extern const char kNetworkId
[];
176 ONC_EXPORT
extern const char kShortName
[];
177 ONC_EXPORT
extern const char kLongName
[];
178 ONC_EXPORT
extern const char kTechnology
[];
179 } // namespace cellular_found_network
181 namespace sim_lock_status
{
182 ONC_EXPORT
extern const char kLockEnabled
[];
183 ONC_EXPORT
extern const char kLockType
[];
184 ONC_EXPORT
extern const char kRetriesLeft
[];
185 } // namespace sim_lock_status
187 namespace connection_state
{
188 ONC_EXPORT
extern const char kConnected
[];
189 ONC_EXPORT
extern const char kConnecting
[];
190 ONC_EXPORT
extern const char kNotConnected
[];
191 } // namespace connection_state
194 ONC_EXPORT
extern const char kGateway
[];
195 ONC_EXPORT
extern const char kIPAddress
[];
196 ONC_EXPORT
extern const char kIPv4
[];
197 ONC_EXPORT
extern const char kIPv6
[];
198 ONC_EXPORT
extern const char kNameServers
[];
199 ONC_EXPORT
extern const char kRoutingPrefix
[];
200 ONC_EXPORT
extern const char kSearchDomains
[];
201 ONC_EXPORT
extern const char kType
[];
202 ONC_EXPORT
extern const char kWebProxyAutoDiscoveryUrl
[];
203 } // namespace ipconfig
206 ONC_EXPORT
extern const char kAuthentication
[];
207 ONC_EXPORT
extern const char kAuthenticationNone
[];
208 ONC_EXPORT
extern const char kEAP
[];
209 ONC_EXPORT
extern const char k8021X
[];
210 } // namespace ethernet
213 ONC_EXPORT
extern const char kAllowGatewayARPPolling
[];
214 ONC_EXPORT
extern const char kAutoConnect
[];
215 ONC_EXPORT
extern const char kBSSID
[];
216 ONC_EXPORT
extern const char kEAP
[];
217 ONC_EXPORT
extern const char kFrequency
[];
218 ONC_EXPORT
extern const char kFrequencyList
[];
219 ONC_EXPORT
extern const char kHexSSID
[];
220 ONC_EXPORT
extern const char kHiddenSSID
[];
221 ONC_EXPORT
extern const char kPassphrase
[];
222 ONC_EXPORT
extern const char kSSID
[];
223 ONC_EXPORT
extern const char kSecurity
[];
224 ONC_EXPORT
extern const char kSecurityNone
[];
225 ONC_EXPORT
extern const char kSignalStrength
[];
226 ONC_EXPORT
extern const char kWEP_PSK
[];
227 ONC_EXPORT
extern const char kWEP_8021X
[];
228 ONC_EXPORT
extern const char kWPA_PSK
[];
229 ONC_EXPORT
extern const char kWPA2_PSK
[];
230 ONC_EXPORT
extern const char kWPA_EAP
[];
234 ONC_EXPORT
extern const char kAutoConnect
[];
235 ONC_EXPORT
extern const char kEAP
[];
236 ONC_EXPORT
extern const char kSignalStrength
[];
239 namespace client_cert
{
240 ONC_EXPORT
extern const char kClientCertPattern
[];
241 ONC_EXPORT
extern const char kClientCertRef
[];
242 ONC_EXPORT
extern const char kClientCertType
[];
243 ONC_EXPORT
extern const char kClientCertTypeNone
[];
244 ONC_EXPORT
extern const char kCommonName
[];
245 ONC_EXPORT
extern const char kEmailAddress
[];
246 ONC_EXPORT
extern const char kEnrollmentURI
[];
247 ONC_EXPORT
extern const char kIssuerCARef
[];
248 ONC_EXPORT
extern const char kIssuerCAPEMs
[];
249 ONC_EXPORT
extern const char kIssuer
[];
250 ONC_EXPORT
extern const char kLocality
[];
251 ONC_EXPORT
extern const char kOrganization
[];
252 ONC_EXPORT
extern const char kOrganizationalUnit
[];
253 ONC_EXPORT
extern const char kPattern
[];
254 ONC_EXPORT
extern const char kRef
[];
255 ONC_EXPORT
extern const char kSubject
[];
256 } // namespace client_cert
258 namespace certificate
{
259 ONC_EXPORT
extern const char kAuthority
[];
260 ONC_EXPORT
extern const char kClient
[];
261 ONC_EXPORT
extern const char kGUID
[];
262 ONC_EXPORT
extern const char kPKCS12
[];
263 ONC_EXPORT
extern const char kServer
[];
264 ONC_EXPORT
extern const char kTrustBits
[];
265 ONC_EXPORT
extern const char kType
[];
266 ONC_EXPORT
extern const char kWeb
[];
267 ONC_EXPORT
extern const char kX509
[];
268 } // namespace certificate
270 namespace encrypted
{
271 ONC_EXPORT
extern const char kAES256
[];
272 ONC_EXPORT
extern const char kCipher
[];
273 ONC_EXPORT
extern const char kCiphertext
[];
274 ONC_EXPORT
extern const char kHMACMethod
[];
275 ONC_EXPORT
extern const char kHMAC
[];
276 ONC_EXPORT
extern const char kIV
[];
277 ONC_EXPORT
extern const char kIterations
[];
278 ONC_EXPORT
extern const char kPBKDF2
[];
279 ONC_EXPORT
extern const char kSHA1
[];
280 ONC_EXPORT
extern const char kSalt
[];
281 ONC_EXPORT
extern const char kStretch
[];
282 } // namespace encrypted
285 ONC_EXPORT
extern const char kAnonymousIdentity
[];
286 ONC_EXPORT
extern const char kAutomatic
[];
287 ONC_EXPORT
extern const char kEAP_AKA
[];
288 ONC_EXPORT
extern const char kEAP_FAST
[];
289 ONC_EXPORT
extern const char kEAP_SIM
[];
290 ONC_EXPORT
extern const char kEAP_TLS
[];
291 ONC_EXPORT
extern const char kEAP_TTLS
[];
292 ONC_EXPORT
extern const char kIdentity
[];
293 ONC_EXPORT
extern const char kInner
[];
294 ONC_EXPORT
extern const char kLEAP
[];
295 ONC_EXPORT
extern const char kMD5
[];
296 ONC_EXPORT
extern const char kMSCHAPv2
[];
297 ONC_EXPORT
extern const char kOuter
[];
298 ONC_EXPORT
extern const char kPAP
[];
299 ONC_EXPORT
extern const char kPEAP
[];
300 ONC_EXPORT
extern const char kPassword
[];
301 ONC_EXPORT
extern const char kSaveCredentials
[];
302 ONC_EXPORT
extern const char kServerCAPEMs
[];
303 ONC_EXPORT
extern const char kServerCARef
[];
304 ONC_EXPORT
extern const char kServerCARefs
[];
305 ONC_EXPORT
extern const char kUseSystemCAs
[];
309 ONC_EXPORT
extern const char kAutoConnect
[];
310 ONC_EXPORT
extern const char kHost
[];
311 ONC_EXPORT
extern const char kIPsec
[];
312 ONC_EXPORT
extern const char kL2TP
[];
313 ONC_EXPORT
extern const char kOpenVPN
[];
314 ONC_EXPORT
extern const char kPassword
[];
315 ONC_EXPORT
extern const char kSaveCredentials
[];
316 ONC_EXPORT
extern const char kThirdPartyVpn
[];
317 ONC_EXPORT
extern const char kTypeL2TP_IPsec
[];
318 ONC_EXPORT
extern const char kType
[];
319 ONC_EXPORT
extern const char kUsername
[];
323 ONC_EXPORT
extern const char kAuthenticationType
[];
324 ONC_EXPORT
extern const char kCert
[];
325 ONC_EXPORT
extern const char kEAP
[];
326 ONC_EXPORT
extern const char kGroup
[];
327 ONC_EXPORT
extern const char kIKEVersion
[];
328 ONC_EXPORT
extern const char kPSK
[];
329 ONC_EXPORT
extern const char kServerCAPEMs
[];
330 ONC_EXPORT
extern const char kServerCARef
[];
331 ONC_EXPORT
extern const char kServerCARefs
[];
332 ONC_EXPORT
extern const char kXAUTH
[];
336 ONC_EXPORT
extern const char kLcpEchoDisabled
[];
337 ONC_EXPORT
extern const char kPassword
[];
338 ONC_EXPORT
extern const char kSaveCredentials
[];
339 ONC_EXPORT
extern const char kUsername
[];
343 ONC_EXPORT
extern const char kAuthNoCache
[];
344 ONC_EXPORT
extern const char kAuthRetry
[];
345 ONC_EXPORT
extern const char kAuth
[];
346 ONC_EXPORT
extern const char kCipher
[];
347 ONC_EXPORT
extern const char kCompLZO
[];
348 ONC_EXPORT
extern const char kCompNoAdapt
[];
349 ONC_EXPORT
extern const char kIgnoreDefaultRoute
[];
350 ONC_EXPORT
extern const char kInteract
[];
351 ONC_EXPORT
extern const char kKeyDirection
[];
352 ONC_EXPORT
extern const char kNoInteract
[];
353 ONC_EXPORT
extern const char kNone
[];
354 ONC_EXPORT
extern const char kNsCertType
[];
355 ONC_EXPORT
extern const char kOTP
[];
356 ONC_EXPORT
extern const char kPassword
[];
357 ONC_EXPORT
extern const char kPort
[];
358 ONC_EXPORT
extern const char kProto
[];
359 ONC_EXPORT
extern const char kPushPeerInfo
[];
360 ONC_EXPORT
extern const char kRemoteCertEKU
[];
361 ONC_EXPORT
extern const char kRemoteCertKU
[];
362 ONC_EXPORT
extern const char kRemoteCertTLS
[];
363 ONC_EXPORT
extern const char kRenegSec
[];
364 ONC_EXPORT
extern const char kServerCAPEMs
[];
365 ONC_EXPORT
extern const char kServerCARef
[];
366 ONC_EXPORT
extern const char kServerCARefs
[];
367 ONC_EXPORT
extern const char kServerCertPEM
[];
368 ONC_EXPORT
extern const char kServerCertRef
[];
369 ONC_EXPORT
extern const char kServerPollTimeout
[];
370 ONC_EXPORT
extern const char kServer
[];
371 ONC_EXPORT
extern const char kShaper
[];
372 ONC_EXPORT
extern const char kStaticChallenge
[];
373 ONC_EXPORT
extern const char kTLSAuthContents
[];
374 ONC_EXPORT
extern const char kTLSRemote
[];
375 ONC_EXPORT
extern const char kUserAuthenticationType
[];
376 ONC_EXPORT
extern const char kVerb
[];
377 ONC_EXPORT
extern const char kVerifyHash
[];
378 ONC_EXPORT
extern const char kVerifyX509
[];
379 } // namespace openvpn
381 namespace openvpn_user_auth_type
{
382 ONC_EXPORT
extern const char kNone
[];
383 ONC_EXPORT
extern const char kOTP
[];
384 ONC_EXPORT
extern const char kPassword
[];
385 ONC_EXPORT
extern const char kPasswordAndOTP
[];
386 } // openvpn_user_auth_type
388 namespace third_party_vpn
{
389 ONC_EXPORT
extern const char kExtensionID
[];
392 namespace verify_x509
{
393 ONC_EXPORT
extern const char kName
[];
394 ONC_EXPORT
extern const char kType
[];
397 ONC_EXPORT
extern const char kName
[];
398 ONC_EXPORT
extern const char kNamePrefix
[];
399 ONC_EXPORT
extern const char kSubject
[];
401 } // namespace verify_x509
403 namespace substitutes
{
404 ONC_EXPORT
extern const char kEmailField
[];
405 ONC_EXPORT
extern const char kLoginIDField
[];
406 } // namespace substitutes
409 ONC_EXPORT
extern const char kDirect
[];
410 ONC_EXPORT
extern const char kExcludeDomains
[];
411 ONC_EXPORT
extern const char kFtp
[];
412 ONC_EXPORT
extern const char kHost
[];
413 ONC_EXPORT
extern const char kHttp
[];
414 ONC_EXPORT
extern const char kHttps
[];
415 ONC_EXPORT
extern const char kManual
[];
416 ONC_EXPORT
extern const char kPAC
[];
417 ONC_EXPORT
extern const char kPort
[];
418 ONC_EXPORT
extern const char kSocks
[];
419 ONC_EXPORT
extern const char kType
[];
420 ONC_EXPORT
extern const char kWPAD
[];
423 namespace global_network_config
{
424 ONC_EXPORT
extern const char kAllowOnlyPolicyNetworksToAutoconnect
[];
425 } // global_network_config
429 #endif // COMPONENTS_ONC_ONC_CONSTANTS_H_