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 kIPConfigs
[];
65 ONC_EXPORT
extern const char kSavedIPConfig
[];
66 ONC_EXPORT
extern const char kStaticIPConfig
[];
67 ONC_EXPORT
extern const char kMacAddress
[];
68 ONC_EXPORT
extern const char kName
[];
69 ONC_EXPORT
extern const char kNameServers
[];
70 ONC_EXPORT
extern const char kPriority
[];
71 ONC_EXPORT
extern const char kProxySettings
[];
72 ONC_EXPORT
extern const char kSearchDomains
[];
73 ONC_EXPORT
extern const char kSource
[];
74 ONC_EXPORT
extern const char kSourceDevice
[];
75 ONC_EXPORT
extern const char kSourceDevicePolicy
[];
76 ONC_EXPORT
extern const char kSourceNone
[];
77 ONC_EXPORT
extern const char kSourceUser
[];
78 ONC_EXPORT
extern const char kSourceUserPolicy
[];
79 ONC_EXPORT
extern const char kConnectionState
[];
80 ONC_EXPORT
extern const char kRestrictedConnectivity
[];
81 ONC_EXPORT
extern const char kConnectable
[];
82 ONC_EXPORT
extern const char kErrorState
[];
83 ONC_EXPORT
extern const char kType
[];
84 ONC_EXPORT
extern const char kVPN
[];
85 ONC_EXPORT
extern const char kWiFi
[];
86 ONC_EXPORT
extern const char kWimax
[];
88 ONC_EXPORT
extern std::string
CellularProperty(const std::string
& property
);
89 ONC_EXPORT
extern std::string
VpnProperty(const std::string
& property
);
90 ONC_EXPORT
extern std::string
WifiProperty(const std::string
& property
);
92 } // namespace network_config
94 namespace network_type
{
95 ONC_EXPORT
extern const char kCellular
[];
96 ONC_EXPORT
extern const char kEthernet
[];
97 ONC_EXPORT
extern const char kVPN
[];
98 ONC_EXPORT
extern const char kWiFi
[];
99 ONC_EXPORT
extern const char kWimax
[];
100 // Patterns matching multiple types, not part of the ONC spec.
101 ONC_EXPORT
extern const char kAllTypes
[];
102 ONC_EXPORT
extern const char kWireless
[];
103 } // namespace network_type
106 ONC_EXPORT
extern const char kActivationState
[];
107 ONC_EXPORT
extern const char kActivated
[];
108 ONC_EXPORT
extern const char kActivating
[];
109 ONC_EXPORT
extern const char kNotActivated
[];
110 ONC_EXPORT
extern const char kPartiallyActivated
[];
111 ONC_EXPORT
extern const char kActivationType
[];
112 ONC_EXPORT
extern const char kAllowRoaming
[];
113 ONC_EXPORT
extern const char kAPN
[];
114 ONC_EXPORT
extern const char kAPNList
[];
115 ONC_EXPORT
extern const char kCarrier
[];
116 ONC_EXPORT
extern const char kESN
[];
117 ONC_EXPORT
extern const char kFamily
[];
118 ONC_EXPORT
extern const char kFirmwareRevision
[];
119 ONC_EXPORT
extern const char kFoundNetworks
[];
120 ONC_EXPORT
extern const char kHardwareRevision
[];
121 ONC_EXPORT
extern const char kHomeProvider
[];
122 ONC_EXPORT
extern const char kICCID
[];
123 ONC_EXPORT
extern const char kIMEI
[];
124 ONC_EXPORT
extern const char kIMSI
[];
125 ONC_EXPORT
extern const char kLastGoodAPN
[];
126 ONC_EXPORT
extern const char kManufacturer
[];
127 ONC_EXPORT
extern const char kMDN
[];
128 ONC_EXPORT
extern const char kMEID
[];
129 ONC_EXPORT
extern const char kMIN
[];
130 ONC_EXPORT
extern const char kModelID
[];
131 ONC_EXPORT
extern const char kNetworkTechnology
[];
132 ONC_EXPORT
extern const char kPRLVersion
[];
133 ONC_EXPORT
extern const char kProviderRequiresRoaming
[];
134 ONC_EXPORT
extern const char kRoamingState
[];
135 ONC_EXPORT
extern const char kHome
[];
136 ONC_EXPORT
extern const char kRoaming
[];
137 ONC_EXPORT
extern const char kServingOperator
[];
138 ONC_EXPORT
extern const char kSIMLockStatus
[];
139 ONC_EXPORT
extern const char kSIMPresent
[];
140 ONC_EXPORT
extern const char kSupportedCarriers
[];
141 ONC_EXPORT
extern const char kSupportNetworkScan
[];
142 } // namespace cellular
144 namespace cellular_provider
{
145 ONC_EXPORT
extern const char kCode
[];
146 ONC_EXPORT
extern const char kCountry
[];
147 ONC_EXPORT
extern const char kName
[];
148 } // namespace cellular_provider
150 namespace cellular_apn
{
151 ONC_EXPORT
extern const char kAccessPointName
[];
152 ONC_EXPORT
extern const char kName
[];
153 ONC_EXPORT
extern const char kUsername
[];
154 ONC_EXPORT
extern const char kPassword
[];
155 ONC_EXPORT
extern const char kLocalizedName
[];
156 ONC_EXPORT
extern const char kLanguage
[];
157 } // namespace cellular_apn
159 namespace cellular_found_network
{
160 ONC_EXPORT
extern const char kStatus
[];
161 ONC_EXPORT
extern const char kNetworkId
[];
162 ONC_EXPORT
extern const char kShortName
[];
163 ONC_EXPORT
extern const char kLongName
[];
164 ONC_EXPORT
extern const char kTechnology
[];
165 } // namespace cellular_found_network
167 namespace sim_lock_status
{
168 ONC_EXPORT
extern const char kLockEnabled
[];
169 ONC_EXPORT
extern const char kLockType
[];
170 ONC_EXPORT
extern const char kRetriesLeft
[];
171 } // namespace sim_lock_status
173 namespace connection_state
{
174 ONC_EXPORT
extern const char kConnected
[];
175 ONC_EXPORT
extern const char kConnecting
[];
176 ONC_EXPORT
extern const char kNotConnected
[];
177 } // namespace connection_state
180 ONC_EXPORT
extern const char kGateway
[];
181 ONC_EXPORT
extern const char kIPAddress
[];
182 ONC_EXPORT
extern const char kIPv4
[];
183 ONC_EXPORT
extern const char kIPv6
[];
184 ONC_EXPORT
extern const char kNameServers
[];
185 ONC_EXPORT
extern const char kRoutingPrefix
[];
186 ONC_EXPORT
extern const char kType
[];
187 ONC_EXPORT
extern const char kWebProxyAutoDiscoveryUrl
[];
188 } // namespace ipconfig
191 ONC_EXPORT
extern const char kAuthentication
[];
192 ONC_EXPORT
extern const char kAuthenticationNone
[];
193 ONC_EXPORT
extern const char kEAP
[];
194 ONC_EXPORT
extern const char k8021X
[];
195 } // namespace ethernet
198 ONC_EXPORT
extern const char kAllowGatewayARPPolling
[];
199 ONC_EXPORT
extern const char kAutoConnect
[];
200 ONC_EXPORT
extern const char kBSSID
[];
201 ONC_EXPORT
extern const char kEAP
[];
202 ONC_EXPORT
extern const char kFrequency
[];
203 ONC_EXPORT
extern const char kFrequencyList
[];
204 ONC_EXPORT
extern const char kHiddenSSID
[];
205 ONC_EXPORT
extern const char kPassphrase
[];
206 ONC_EXPORT
extern const char kSSID
[];
207 ONC_EXPORT
extern const char kSecurity
[];
208 ONC_EXPORT
extern const char kSecurityNone
[];
209 ONC_EXPORT
extern const char kSignalStrength
[];
210 ONC_EXPORT
extern const char kWEP_PSK
[];
211 ONC_EXPORT
extern const char kWEP_8021X
[];
212 ONC_EXPORT
extern const char kWPA_PSK
[];
213 ONC_EXPORT
extern const char kWPA2_PSK
[];
214 ONC_EXPORT
extern const char kWPA_EAP
[];
218 ONC_EXPORT
extern const char kAutoConnect
[];
219 ONC_EXPORT
extern const char kEAP
[];
220 ONC_EXPORT
extern const char kSignalStrength
[];
223 namespace client_cert
{
224 ONC_EXPORT
extern const char kClientCertPattern
[];
225 ONC_EXPORT
extern const char kClientCertRef
[];
226 ONC_EXPORT
extern const char kClientCertType
[];
227 ONC_EXPORT
extern const char kClientCertTypeNone
[];
228 ONC_EXPORT
extern const char kCommonName
[];
229 ONC_EXPORT
extern const char kEmailAddress
[];
230 ONC_EXPORT
extern const char kEnrollmentURI
[];
231 ONC_EXPORT
extern const char kIssuerCARef
[];
232 ONC_EXPORT
extern const char kIssuerCAPEMs
[];
233 ONC_EXPORT
extern const char kIssuer
[];
234 ONC_EXPORT
extern const char kLocality
[];
235 ONC_EXPORT
extern const char kOrganization
[];
236 ONC_EXPORT
extern const char kOrganizationalUnit
[];
237 ONC_EXPORT
extern const char kPattern
[];
238 ONC_EXPORT
extern const char kRef
[];
239 ONC_EXPORT
extern const char kSubject
[];
240 } // namespace client_cert
242 namespace certificate
{
243 ONC_EXPORT
extern const char kAuthority
[];
244 ONC_EXPORT
extern const char kClient
[];
245 ONC_EXPORT
extern const char kGUID
[];
246 ONC_EXPORT
extern const char kPKCS12
[];
247 ONC_EXPORT
extern const char kServer
[];
248 ONC_EXPORT
extern const char kTrustBits
[];
249 ONC_EXPORT
extern const char kType
[];
250 ONC_EXPORT
extern const char kWeb
[];
251 ONC_EXPORT
extern const char kX509
[];
252 } // namespace certificate
254 namespace encrypted
{
255 ONC_EXPORT
extern const char kAES256
[];
256 ONC_EXPORT
extern const char kCipher
[];
257 ONC_EXPORT
extern const char kCiphertext
[];
258 ONC_EXPORT
extern const char kHMACMethod
[];
259 ONC_EXPORT
extern const char kHMAC
[];
260 ONC_EXPORT
extern const char kIV
[];
261 ONC_EXPORT
extern const char kIterations
[];
262 ONC_EXPORT
extern const char kPBKDF2
[];
263 ONC_EXPORT
extern const char kSHA1
[];
264 ONC_EXPORT
extern const char kSalt
[];
265 ONC_EXPORT
extern const char kStretch
[];
266 } // namespace encrypted
269 ONC_EXPORT
extern const char kAnonymousIdentity
[];
270 ONC_EXPORT
extern const char kAutomatic
[];
271 ONC_EXPORT
extern const char kEAP_AKA
[];
272 ONC_EXPORT
extern const char kEAP_FAST
[];
273 ONC_EXPORT
extern const char kEAP_SIM
[];
274 ONC_EXPORT
extern const char kEAP_TLS
[];
275 ONC_EXPORT
extern const char kEAP_TTLS
[];
276 ONC_EXPORT
extern const char kIdentity
[];
277 ONC_EXPORT
extern const char kInner
[];
278 ONC_EXPORT
extern const char kLEAP
[];
279 ONC_EXPORT
extern const char kMD5
[];
280 ONC_EXPORT
extern const char kMSCHAPv2
[];
281 ONC_EXPORT
extern const char kOuter
[];
282 ONC_EXPORT
extern const char kPAP
[];
283 ONC_EXPORT
extern const char kPEAP
[];
284 ONC_EXPORT
extern const char kPassword
[];
285 ONC_EXPORT
extern const char kSaveCredentials
[];
286 ONC_EXPORT
extern const char kServerCAPEMs
[];
287 ONC_EXPORT
extern const char kServerCARef
[];
288 ONC_EXPORT
extern const char kServerCARefs
[];
289 ONC_EXPORT
extern const char kUseSystemCAs
[];
293 ONC_EXPORT
extern const char kAutoConnect
[];
294 ONC_EXPORT
extern const char kHost
[];
295 ONC_EXPORT
extern const char kIPsec
[];
296 ONC_EXPORT
extern const char kL2TP
[];
297 ONC_EXPORT
extern const char kOpenVPN
[];
298 ONC_EXPORT
extern const char kPassword
[];
299 ONC_EXPORT
extern const char kSaveCredentials
[];
300 ONC_EXPORT
extern const char kTypeL2TP_IPsec
[];
301 ONC_EXPORT
extern const char kType
[];
302 ONC_EXPORT
extern const char kUsername
[];
306 ONC_EXPORT
extern const char kAuthenticationType
[];
307 ONC_EXPORT
extern const char kCert
[];
308 ONC_EXPORT
extern const char kEAP
[];
309 ONC_EXPORT
extern const char kGroup
[];
310 ONC_EXPORT
extern const char kIKEVersion
[];
311 ONC_EXPORT
extern const char kPSK
[];
312 ONC_EXPORT
extern const char kServerCAPEMs
[];
313 ONC_EXPORT
extern const char kServerCARef
[];
314 ONC_EXPORT
extern const char kServerCARefs
[];
315 ONC_EXPORT
extern const char kXAUTH
[];
319 ONC_EXPORT
extern const char kAuthNoCache
[];
320 ONC_EXPORT
extern const char kAuthRetry
[];
321 ONC_EXPORT
extern const char kAuth
[];
322 ONC_EXPORT
extern const char kCipher
[];
323 ONC_EXPORT
extern const char kCompLZO
[];
324 ONC_EXPORT
extern const char kCompNoAdapt
[];
325 ONC_EXPORT
extern const char kIgnoreDefaultRoute
[];
326 ONC_EXPORT
extern const char kInteract
[];
327 ONC_EXPORT
extern const char kKeyDirection
[];
328 ONC_EXPORT
extern const char kNoInteract
[];
329 ONC_EXPORT
extern const char kNone
[];
330 ONC_EXPORT
extern const char kNsCertType
[];
331 ONC_EXPORT
extern const char kOTP
[];
332 ONC_EXPORT
extern const char kPassword
[];
333 ONC_EXPORT
extern const char kPort
[];
334 ONC_EXPORT
extern const char kProto
[];
335 ONC_EXPORT
extern const char kPushPeerInfo
[];
336 ONC_EXPORT
extern const char kRemoteCertEKU
[];
337 ONC_EXPORT
extern const char kRemoteCertKU
[];
338 ONC_EXPORT
extern const char kRemoteCertTLS
[];
339 ONC_EXPORT
extern const char kRenegSec
[];
340 ONC_EXPORT
extern const char kServerCAPEMs
[];
341 ONC_EXPORT
extern const char kServerCARef
[];
342 ONC_EXPORT
extern const char kServerCARefs
[];
343 ONC_EXPORT
extern const char kServerCertPEM
[];
344 ONC_EXPORT
extern const char kServerCertRef
[];
345 ONC_EXPORT
extern const char kServerPollTimeout
[];
346 ONC_EXPORT
extern const char kServer
[];
347 ONC_EXPORT
extern const char kShaper
[];
348 ONC_EXPORT
extern const char kStaticChallenge
[];
349 ONC_EXPORT
extern const char kTLSAuthContents
[];
350 ONC_EXPORT
extern const char kTLSRemote
[];
351 ONC_EXPORT
extern const char kUserAuthenticationType
[];
352 ONC_EXPORT
extern const char kVerb
[];
353 ONC_EXPORT
extern const char kVerifyHash
[];
354 ONC_EXPORT
extern const char kVerifyX509
[];
355 } // namespace openvpn
357 namespace openvpn_user_auth_type
{
358 ONC_EXPORT
extern const char kNone
[];
359 ONC_EXPORT
extern const char kOTP
[];
360 ONC_EXPORT
extern const char kPassword
[];
361 ONC_EXPORT
extern const char kPasswordAndOTP
[];
362 } // openvpn_user_auth_type
364 namespace verify_x509
{
365 ONC_EXPORT
extern const char kName
[];
366 ONC_EXPORT
extern const char kType
[];
369 ONC_EXPORT
extern const char kName
[];
370 ONC_EXPORT
extern const char kNamePrefix
[];
371 ONC_EXPORT
extern const char kSubject
[];
373 } // namespace verify_x509
375 namespace substitutes
{
376 ONC_EXPORT
extern const char kEmailField
[];
377 ONC_EXPORT
extern const char kLoginIDField
[];
378 } // namespace substitutes
381 ONC_EXPORT
extern const char kDirect
[];
382 ONC_EXPORT
extern const char kExcludeDomains
[];
383 ONC_EXPORT
extern const char kFtp
[];
384 ONC_EXPORT
extern const char kHost
[];
385 ONC_EXPORT
extern const char kHttp
[];
386 ONC_EXPORT
extern const char kHttps
[];
387 ONC_EXPORT
extern const char kManual
[];
388 ONC_EXPORT
extern const char kPAC
[];
389 ONC_EXPORT
extern const char kPort
[];
390 ONC_EXPORT
extern const char kSocks
[];
391 ONC_EXPORT
extern const char kType
[];
392 ONC_EXPORT
extern const char kWPAD
[];
395 namespace global_network_config
{
396 ONC_EXPORT
extern const char kAllowOnlyPolicyNetworksToAutoconnect
[];
397 } // global_network_config
401 #endif // COMPONENTS_ONC_ONC_CONSTANTS_H_