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 kPaymentPortal
[];
136 ONC_EXPORT
extern const char kPRLVersion
[];
137 ONC_EXPORT
extern const char kRoamingHome
[];
138 ONC_EXPORT
extern const char kRoamingRequired
[];
139 ONC_EXPORT
extern const char kRoamingRoaming
[];
140 ONC_EXPORT
extern const char kRoamingState
[];
141 ONC_EXPORT
extern const char kServingOperator
[];
142 ONC_EXPORT
extern const char kSignalStrength
[];
143 ONC_EXPORT
extern const char kSIMLockStatus
[];
144 ONC_EXPORT
extern const char kSIMPresent
[];
145 ONC_EXPORT
extern const char kSupportedCarriers
[];
146 ONC_EXPORT
extern const char kSupportNetworkScan
[];
147 ONC_EXPORT
extern const char kTechnologyCdma1Xrtt
[];
148 ONC_EXPORT
extern const char kTechnologyEdge
[];
149 ONC_EXPORT
extern const char kTechnologyEvdo
[];
150 ONC_EXPORT
extern const char kTechnologyGprs
[];
151 ONC_EXPORT
extern const char kTechnologyGsm
[];
152 ONC_EXPORT
extern const char kTechnologyHspa
[];
153 ONC_EXPORT
extern const char kTechnologyHspaPlus
[];
154 ONC_EXPORT
extern const char kTechnologyLte
[];
155 ONC_EXPORT
extern const char kTechnologyLteAdvanced
[];
156 ONC_EXPORT
extern const char kTechnologyUmts
[];
157 } // namespace cellular
159 namespace cellular_provider
{
160 ONC_EXPORT
extern const char kCode
[];
161 ONC_EXPORT
extern const char kCountry
[];
162 ONC_EXPORT
extern const char kName
[];
163 } // namespace cellular_provider
165 namespace cellular_apn
{
166 ONC_EXPORT
extern const char kAccessPointName
[];
167 ONC_EXPORT
extern const char kName
[];
168 ONC_EXPORT
extern const char kUsername
[];
169 ONC_EXPORT
extern const char kPassword
[];
170 ONC_EXPORT
extern const char kLocalizedName
[];
171 ONC_EXPORT
extern const char kLanguage
[];
172 } // namespace cellular_apn
174 namespace cellular_found_network
{
175 ONC_EXPORT
extern const char kStatus
[];
176 ONC_EXPORT
extern const char kNetworkId
[];
177 ONC_EXPORT
extern const char kShortName
[];
178 ONC_EXPORT
extern const char kLongName
[];
179 ONC_EXPORT
extern const char kTechnology
[];
180 } // namespace cellular_found_network
182 namespace cellular_payment_portal
{
183 ONC_EXPORT
extern const char kMethod
[];
184 ONC_EXPORT
extern const char kPostData
[];
185 ONC_EXPORT
extern const char kUrl
[];
186 } // namespace cellular_payment_portal
188 namespace sim_lock_status
{
189 ONC_EXPORT
extern const char kLockEnabled
[];
190 ONC_EXPORT
extern const char kLockType
[];
191 ONC_EXPORT
extern const char kRetriesLeft
[];
192 } // namespace sim_lock_status
194 namespace connection_state
{
195 ONC_EXPORT
extern const char kConnected
[];
196 ONC_EXPORT
extern const char kConnecting
[];
197 ONC_EXPORT
extern const char kNotConnected
[];
198 } // namespace connection_state
201 ONC_EXPORT
extern const char kGateway
[];
202 ONC_EXPORT
extern const char kIPAddress
[];
203 ONC_EXPORT
extern const char kIPv4
[];
204 ONC_EXPORT
extern const char kIPv6
[];
205 ONC_EXPORT
extern const char kNameServers
[];
206 ONC_EXPORT
extern const char kRoutingPrefix
[];
207 ONC_EXPORT
extern const char kSearchDomains
[];
208 ONC_EXPORT
extern const char kType
[];
209 ONC_EXPORT
extern const char kWebProxyAutoDiscoveryUrl
[];
210 } // namespace ipconfig
213 ONC_EXPORT
extern const char kAuthentication
[];
214 ONC_EXPORT
extern const char kAuthenticationNone
[];
215 ONC_EXPORT
extern const char kEAP
[];
216 ONC_EXPORT
extern const char k8021X
[];
217 } // namespace ethernet
220 ONC_EXPORT
extern const char kAllowGatewayARPPolling
[];
221 ONC_EXPORT
extern const char kAutoConnect
[];
222 ONC_EXPORT
extern const char kBSSID
[];
223 ONC_EXPORT
extern const char kEAP
[];
224 ONC_EXPORT
extern const char kFrequency
[];
225 ONC_EXPORT
extern const char kFrequencyList
[];
226 ONC_EXPORT
extern const char kHexSSID
[];
227 ONC_EXPORT
extern const char kHiddenSSID
[];
228 ONC_EXPORT
extern const char kPassphrase
[];
229 ONC_EXPORT
extern const char kRoamThreshold
[];
230 ONC_EXPORT
extern const char kSSID
[];
231 ONC_EXPORT
extern const char kSecurity
[];
232 ONC_EXPORT
extern const char kSecurityNone
[];
233 ONC_EXPORT
extern const char kSignalStrength
[];
234 ONC_EXPORT
extern const char kWEP_PSK
[];
235 ONC_EXPORT
extern const char kWEP_8021X
[];
236 ONC_EXPORT
extern const char kWPA_PSK
[];
237 ONC_EXPORT
extern const char kWPA2_PSK
[];
238 ONC_EXPORT
extern const char kWPA_EAP
[];
242 ONC_EXPORT
extern const char kAutoConnect
[];
243 ONC_EXPORT
extern const char kEAP
[];
244 ONC_EXPORT
extern const char kSignalStrength
[];
247 namespace client_cert
{
248 ONC_EXPORT
extern const char kClientCertPattern
[];
249 ONC_EXPORT
extern const char kClientCertRef
[];
250 ONC_EXPORT
extern const char kClientCertType
[];
251 ONC_EXPORT
extern const char kClientCertTypeNone
[];
252 ONC_EXPORT
extern const char kCommonName
[];
253 ONC_EXPORT
extern const char kEmailAddress
[];
254 ONC_EXPORT
extern const char kEnrollmentURI
[];
255 ONC_EXPORT
extern const char kIssuerCARef
[];
256 ONC_EXPORT
extern const char kIssuerCAPEMs
[];
257 ONC_EXPORT
extern const char kIssuer
[];
258 ONC_EXPORT
extern const char kLocality
[];
259 ONC_EXPORT
extern const char kOrganization
[];
260 ONC_EXPORT
extern const char kOrganizationalUnit
[];
261 ONC_EXPORT
extern const char kPattern
[];
262 ONC_EXPORT
extern const char kRef
[];
263 ONC_EXPORT
extern const char kSubject
[];
264 } // namespace client_cert
266 namespace certificate
{
267 ONC_EXPORT
extern const char kAuthority
[];
268 ONC_EXPORT
extern const char kClient
[];
269 ONC_EXPORT
extern const char kGUID
[];
270 ONC_EXPORT
extern const char kPKCS12
[];
271 ONC_EXPORT
extern const char kServer
[];
272 ONC_EXPORT
extern const char kTrustBits
[];
273 ONC_EXPORT
extern const char kType
[];
274 ONC_EXPORT
extern const char kWeb
[];
275 ONC_EXPORT
extern const char kX509
[];
276 } // namespace certificate
278 namespace encrypted
{
279 ONC_EXPORT
extern const char kAES256
[];
280 ONC_EXPORT
extern const char kCipher
[];
281 ONC_EXPORT
extern const char kCiphertext
[];
282 ONC_EXPORT
extern const char kHMACMethod
[];
283 ONC_EXPORT
extern const char kHMAC
[];
284 ONC_EXPORT
extern const char kIV
[];
285 ONC_EXPORT
extern const char kIterations
[];
286 ONC_EXPORT
extern const char kPBKDF2
[];
287 ONC_EXPORT
extern const char kSHA1
[];
288 ONC_EXPORT
extern const char kSalt
[];
289 ONC_EXPORT
extern const char kStretch
[];
290 } // namespace encrypted
293 ONC_EXPORT
extern const char kAnonymousIdentity
[];
294 ONC_EXPORT
extern const char kAutomatic
[];
295 ONC_EXPORT
extern const char kEAP_AKA
[];
296 ONC_EXPORT
extern const char kEAP_FAST
[];
297 ONC_EXPORT
extern const char kEAP_SIM
[];
298 ONC_EXPORT
extern const char kEAP_TLS
[];
299 ONC_EXPORT
extern const char kEAP_TTLS
[];
300 ONC_EXPORT
extern const char kGTC
[];
301 ONC_EXPORT
extern const char kIdentity
[];
302 ONC_EXPORT
extern const char kInner
[];
303 ONC_EXPORT
extern const char kLEAP
[];
304 ONC_EXPORT
extern const char kMD5
[];
305 ONC_EXPORT
extern const char kMSCHAPv2
[];
306 ONC_EXPORT
extern const char kOuter
[];
307 ONC_EXPORT
extern const char kPAP
[];
308 ONC_EXPORT
extern const char kPEAP
[];
309 ONC_EXPORT
extern const char kPassword
[];
310 ONC_EXPORT
extern const char kSaveCredentials
[];
311 ONC_EXPORT
extern const char kServerCAPEMs
[];
312 ONC_EXPORT
extern const char kServerCARef
[];
313 ONC_EXPORT
extern const char kServerCARefs
[];
314 ONC_EXPORT
extern const char kUseSystemCAs
[];
315 ONC_EXPORT
extern const char kUseProactiveKeyCaching
[];
319 ONC_EXPORT
extern const char kAutoConnect
[];
320 ONC_EXPORT
extern const char kHost
[];
321 ONC_EXPORT
extern const char kIPsec
[];
322 ONC_EXPORT
extern const char kL2TP
[];
323 ONC_EXPORT
extern const char kOpenVPN
[];
324 ONC_EXPORT
extern const char kPassword
[];
325 ONC_EXPORT
extern const char kSaveCredentials
[];
326 ONC_EXPORT
extern const char kThirdPartyVpn
[];
327 ONC_EXPORT
extern const char kTypeL2TP_IPsec
[];
328 ONC_EXPORT
extern const char kType
[];
329 ONC_EXPORT
extern const char kUsername
[];
333 ONC_EXPORT
extern const char kAuthenticationType
[];
334 ONC_EXPORT
extern const char kCert
[];
335 ONC_EXPORT
extern const char kEAP
[];
336 ONC_EXPORT
extern const char kGroup
[];
337 ONC_EXPORT
extern const char kIKEVersion
[];
338 ONC_EXPORT
extern const char kPSK
[];
339 ONC_EXPORT
extern const char kServerCAPEMs
[];
340 ONC_EXPORT
extern const char kServerCARef
[];
341 ONC_EXPORT
extern const char kServerCARefs
[];
342 ONC_EXPORT
extern const char kXAUTH
[];
346 ONC_EXPORT
extern const char kLcpEchoDisabled
[];
347 ONC_EXPORT
extern const char kPassword
[];
348 ONC_EXPORT
extern const char kSaveCredentials
[];
349 ONC_EXPORT
extern const char kUsername
[];
353 ONC_EXPORT
extern const char kAuthNoCache
[];
354 ONC_EXPORT
extern const char kAuthRetry
[];
355 ONC_EXPORT
extern const char kAuth
[];
356 ONC_EXPORT
extern const char kCipher
[];
357 ONC_EXPORT
extern const char kCompLZO
[];
358 ONC_EXPORT
extern const char kCompNoAdapt
[];
359 ONC_EXPORT
extern const char kIgnoreDefaultRoute
[];
360 ONC_EXPORT
extern const char kInteract
[];
361 ONC_EXPORT
extern const char kKeyDirection
[];
362 ONC_EXPORT
extern const char kNoInteract
[];
363 ONC_EXPORT
extern const char kNone
[];
364 ONC_EXPORT
extern const char kNsCertType
[];
365 ONC_EXPORT
extern const char kOTP
[];
366 ONC_EXPORT
extern const char kPassword
[];
367 ONC_EXPORT
extern const char kPort
[];
368 ONC_EXPORT
extern const char kProto
[];
369 ONC_EXPORT
extern const char kPushPeerInfo
[];
370 ONC_EXPORT
extern const char kRemoteCertEKU
[];
371 ONC_EXPORT
extern const char kRemoteCertKU
[];
372 ONC_EXPORT
extern const char kRemoteCertTLS
[];
373 ONC_EXPORT
extern const char kRenegSec
[];
374 ONC_EXPORT
extern const char kServerCAPEMs
[];
375 ONC_EXPORT
extern const char kServerCARef
[];
376 ONC_EXPORT
extern const char kServerCARefs
[];
377 ONC_EXPORT
extern const char kServerCertPEM
[];
378 ONC_EXPORT
extern const char kServerCertRef
[];
379 ONC_EXPORT
extern const char kServerPollTimeout
[];
380 ONC_EXPORT
extern const char kServer
[];
381 ONC_EXPORT
extern const char kShaper
[];
382 ONC_EXPORT
extern const char kStaticChallenge
[];
383 ONC_EXPORT
extern const char kTLSAuthContents
[];
384 ONC_EXPORT
extern const char kTLSRemote
[];
385 ONC_EXPORT
extern const char kUserAuthenticationType
[];
386 ONC_EXPORT
extern const char kVerb
[];
387 ONC_EXPORT
extern const char kVerifyHash
[];
388 ONC_EXPORT
extern const char kVerifyX509
[];
389 } // namespace openvpn
391 namespace openvpn_user_auth_type
{
392 ONC_EXPORT
extern const char kNone
[];
393 ONC_EXPORT
extern const char kOTP
[];
394 ONC_EXPORT
extern const char kPassword
[];
395 ONC_EXPORT
extern const char kPasswordAndOTP
[];
396 } // openvpn_user_auth_type
398 namespace third_party_vpn
{
399 ONC_EXPORT
extern const char kExtensionID
[];
400 ONC_EXPORT
extern const char kProviderName
[];
403 namespace verify_x509
{
404 ONC_EXPORT
extern const char kName
[];
405 ONC_EXPORT
extern const char kType
[];
408 ONC_EXPORT
extern const char kName
[];
409 ONC_EXPORT
extern const char kNamePrefix
[];
410 ONC_EXPORT
extern const char kSubject
[];
412 } // namespace verify_x509
414 namespace substitutes
{
415 ONC_EXPORT
extern const char kEmailField
[];
416 ONC_EXPORT
extern const char kLoginIDField
[];
417 } // namespace substitutes
420 ONC_EXPORT
extern const char kDirect
[];
421 ONC_EXPORT
extern const char kExcludeDomains
[];
422 ONC_EXPORT
extern const char kFtp
[];
423 ONC_EXPORT
extern const char kHost
[];
424 ONC_EXPORT
extern const char kHttp
[];
425 ONC_EXPORT
extern const char kHttps
[];
426 ONC_EXPORT
extern const char kManual
[];
427 ONC_EXPORT
extern const char kPAC
[];
428 ONC_EXPORT
extern const char kPort
[];
429 ONC_EXPORT
extern const char kSocks
[];
430 ONC_EXPORT
extern const char kType
[];
431 ONC_EXPORT
extern const char kWPAD
[];
434 namespace global_network_config
{
435 ONC_EXPORT
extern const char kAllowOnlyPolicyNetworksToAutoconnect
[];
436 ONC_EXPORT
extern const char kDisableNetworkTypes
[];
437 } // global_network_config
439 namespace device_state
{
440 ONC_EXPORT
extern const char kUninitialized
[];
441 ONC_EXPORT
extern const char kDisabled
[];
442 ONC_EXPORT
extern const char kEnabling
[];
443 ONC_EXPORT
extern const char kEnabled
[];
448 #endif // COMPONENTS_ONC_ONC_CONSTANTS_H_