1 // Copyright (c) 2012 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.
5 #include "chromeos/network/onc/onc_constants.h"
9 // Constants for ONC properties.
12 const char kAugmentationActiveSetting
[] = "Active";
13 const char kAugmentationEffectiveSetting
[] = "Effective";
14 const char kAugmentationUnmanaged
[] = "Unmanaged";
15 const char kAugmentationUserPolicy
[] = "UserPolicy";
16 const char kAugmentationDevicePolicy
[] = "DevicePolicy";
17 const char kAugmentationUserSetting
[] = "UserSetting";
18 const char kAugmentationSharedSetting
[] = "SharedSetting";
19 const char kAugmentationUserEditable
[] = "UserEditable";
20 const char kAugmentationDeviceEditable
[] = "DeviceEditable";
22 // Common keys/values.
23 const char kRecommended
[] = "Recommended";
24 const char kRemove
[] = "Remove";
26 // Top Level Configuration
27 namespace toplevel_config
{
28 const char kCertificates
[] = "Certificates";
29 const char kEncryptedConfiguration
[] = "EncryptedConfiguration";
30 const char kNetworkConfigurations
[] = "NetworkConfigurations";
31 const char kType
[] = "Type";
32 const char kUnencryptedConfiguration
[] = "UnencryptedConfiguration";
33 } // namespace toplevel_config
35 // Network Configuration
36 namespace network_config
{
37 const char kCellular
[] = "Cellular";
38 const char kEthernet
[] = "Ethernet";
39 const char kGUID
[] = "GUID";
40 const char kIPConfigs
[] = "IPConfigs";
41 const char kName
[] = "Name";
42 const char kNameServers
[] = "NameServers";
43 const char kProxySettings
[] = "ProxySettings";
44 const char kSearchDomains
[] = "SearchDomains";
45 const char kServicePath
[] = "ServicePath";
46 const char kConnectionState
[] = "ConnectionState";
47 const char kType
[] = "Type";
48 const char kVPN
[] = "VPN";
49 const char kWiFi
[] = "WiFi";
50 } // namespace network_config
52 namespace network_type
{
53 const char kAllTypes
[] = "All";
54 const char kCellular
[] = "Cellular";
55 const char kEthernet
[] = "Ethernet";
56 const char kVPN
[] = "VPN";
57 const char kWiFi
[] = "WiFi";
58 } // namespace network_type
61 const char kActivateOverNonCellularNetwork
[] = "ActivateOverNonCellularNetwork";
62 const char kActivationState
[] = "ActivationState";
63 const char kAllowRoaming
[] = "AllowRoaming";
64 const char kAPN
[] = "APN";
65 const char kCarrier
[] = "Carrier";
66 const char kESN
[] = "ESN";
67 const char kFamily
[] = "Family";
68 const char kFirmwareRevision
[] = "FirmwareRevision";
69 const char kFoundNetworks
[] = "FoundNetworks";
70 const char kHardwareRevision
[] = "HardwareRevision";
71 const char kHomeProvider
[] = "HomeProvider";
72 const char kICCID
[] = "ICCID";
73 const char kIMEI
[] = "IMEI";
74 const char kIMSI
[] = "IMSI";
75 const char kManufacturer
[] = "Manufacturer";
76 const char kMDN
[] = "MDN";
77 const char kMEID
[] = "MEID";
78 const char kMIN
[] = "MIN";
79 const char kModelID
[] = "ModelID";
80 const char kNetworkTechnology
[] = "NetworkTechnology";
81 const char kOperatorCode
[] = "OperatorCode";
82 const char kOperatorName
[] = "OperatorName";
83 const char kPRLVersion
[] = "PRLVersion";
84 const char kProviderRequiresRoaming
[] = "ProviderRequiresRoaming";
85 const char kRoamingState
[] = "RoamingState";
86 const char kSelectedNetwork
[] = "SelectedNetwork";
87 const char kServingOperator
[] = "ServingOperator";
88 const char kSIMLockStatus
[] = "SIMLockStatus";
89 const char kSIMPresent
[] = "SIMPresent";
90 const char kSupportedCarriers
[] = "SupportedCarriers";
91 const char kSupportNetworkScan
[] = "SupportNetworkScan";
92 } // namespace cellular
94 namespace cellular_provider
{
95 const char kCode
[] = "Code";
96 const char kCountry
[] = "Country";
97 const char kName
[] = "Name";
98 } // namespace cellular_provider
100 namespace connection_state
{
101 const char kConnected
[] = "Connected";
102 const char kConnecting
[] = "Connecting";
103 const char kNotConnected
[] = "NotConnected";
104 } // namespace connection_state
107 const char kAuthentication
[] = "Authentication";
108 const char kEAP
[] = "EAP";
109 const char kNone
[] = "None";
110 const char k8021X
[] = "8021X";
111 } // namespace ethernet
114 const char kGateway
[] = "Gateway";
115 const char kIPAddress
[] = "IPAddress";
116 const char kIPv4
[] = "IPv4";
117 const char kIPv6
[] = "IPv6";
118 const char kRoutingPrefix
[] = "RoutingPrefix";
119 const char kType
[] = "Type";
120 } // namespace ipconfig
123 const char kAutoConnect
[] = "AutoConnect";
124 const char kBSSID
[] = "BSSID";
125 const char kEAP
[] = "EAP";
126 const char kFrequency
[] = "Frequency";
127 const char kFrequencyList
[] = "FrequencyList";
128 const char kHiddenSSID
[] = "HiddenSSID";
129 const char kNone
[] = "None";
130 const char kPassphrase
[] = "Passphrase";
131 const char kProxyURL
[] = "ProxyURL";
132 const char kSSID
[] = "SSID";
133 const char kSecurity
[] = "Security";
134 const char kSignalStrength
[] = "SignalStrength";
135 const char kWEP_8021X
[] = "WEP-8021X";
136 const char kWEP_PSK
[] = "WEP-PSK";
137 const char kWPA_EAP
[] = "WPA-EAP";
138 const char kWPA_PSK
[] = "WPA-PSK";
141 namespace certificate
{
142 const char kAuthority
[] = "Authority";
143 const char kClient
[] = "Client";
144 const char kCommonName
[] = "CommonName";
145 const char kEmailAddress
[] = "EmailAddress";
146 const char kEnrollmentURI
[] = "EnrollmentURI";
147 const char kGUID
[] = "GUID";
148 const char kIssuerCARef
[] = "IssuerCARef";
149 const char kIssuerCAPEMs
[] = "IssuerCAPEMs";
150 const char kIssuer
[] = "Issuer";
151 const char kLocality
[] = "Locality";
152 const char kNone
[] = "None";
153 const char kOrganization
[] = "Organization";
154 const char kOrganizationalUnit
[] = "OrganizationalUnit";
155 const char kPKCS12
[] = "PKCS12";
156 const char kPattern
[] = "Pattern";
157 const char kRef
[] = "Ref";
158 const char kServer
[] = "Server";
159 const char kSubject
[] = "Subject";
160 const char kTrustBits
[] = "TrustBits";
161 const char kType
[] = "Type";
162 const char kWeb
[] = "Web";
163 const char kX509
[] = "X509";
164 } // namespace certificate
166 namespace encrypted
{
167 const char kAES256
[] = "AES256";
168 const char kCipher
[] = "Cipher";
169 const char kCiphertext
[] = "Ciphertext";
170 const char kHMACMethod
[] = "HMACMethod";
171 const char kHMAC
[] = "HMAC";
172 const char kIV
[] = "IV";
173 const char kIterations
[] = "Iterations";
174 const char kPBKDF2
[] = "PBKDF2";
175 const char kSHA1
[] = "SHA1";
176 const char kSalt
[] = "Salt";
177 const char kStretch
[] = "Stretch";
178 const char kType
[] = "Type";
179 } // namespace encrypted
182 const char kAnonymousIdentity
[] = "AnonymousIdentity";
183 const char kAutomatic
[] = "Automatic";
184 const char kClientCertPattern
[] = "ClientCertPattern";
185 const char kClientCertRef
[] = "ClientCertRef";
186 const char kClientCertType
[] = "ClientCertType";
187 const char kEAP_AKA
[] = "EAP-AKA";
188 const char kEAP_FAST
[] = "EAP-FAST";
189 const char kEAP_SIM
[] = "EAP-SIM";
190 const char kEAP_TLS
[] = "EAP-TLS";
191 const char kEAP_TTLS
[] = "EAP-TTLS";
192 const char kIdentity
[] = "Identity";
193 const char kInner
[] = "Inner";
194 const char kLEAP
[] = "LEAP";
195 const char kMD5
[] = "MD5";
196 const char kMSCHAPv2
[] = "MSCHAPv2";
197 const char kOuter
[] = "Outer";
198 const char kPAP
[] = "PAP";
199 const char kPEAP
[] = "PEAP";
200 const char kPassword
[] = "Password";
201 const char kSaveCredentials
[] = "SaveCredentials";
202 const char kServerCAPEMs
[] = "ServerCAPEMs";
203 const char kServerCARef
[] = "ServerCARef";
204 const char kUseSystemCAs
[] = "UseSystemCAs";
208 const char kAutoConnect
[] = "AutoConnect";
209 const char kClientCertPattern
[] = "ClientCertPattern";
210 const char kClientCertRef
[] = "ClientCertRef";
211 const char kClientCertType
[] = "ClientCertType";
212 const char kHost
[] = "Host";
213 const char kIPsec
[] = "IPsec";
214 const char kL2TP
[] = "L2TP";
215 const char kOpenVPN
[] = "OpenVPN";
216 const char kPassword
[] = "Password";
217 const char kSaveCredentials
[] = "SaveCredentials";
218 const char kTypeL2TP_IPsec
[] = "L2TP-IPsec";
219 const char kType
[] = "Type";
220 const char kUsername
[] = "Username";
224 const char kAuthenticationType
[] = "AuthenticationType";
225 const char kCert
[] = "Cert";
226 const char kEAP
[] = "EAP";
227 const char kGroup
[] = "Group";
228 const char kIKEVersion
[] = "IKEVersion";
229 const char kPSK
[] = "PSK";
230 const char kServerCARef
[] = "ServerCARef";
231 const char kServerCAPEMs
[] = "ServerCAPEMs";
232 const char kXAUTH
[] = "XAUTH";
236 const char kAuthNoCache
[] = "AuthNoCache";
237 const char kAuthRetry
[] = "AuthRetry";
238 const char kAuth
[] = "Auth";
239 const char kCipher
[] = "Cipher";
240 const char kCompLZO
[] = "CompLZO";
241 const char kCompNoAdapt
[] = "CompNoAdapt";
242 const char kInteract
[] = "interact";
243 const char kKeyDirection
[] = "KeyDirection";
244 const char kNoInteract
[] = "nointeract";
245 const char kNone
[] = "none";
246 const char kNsCertType
[] = "NsCertType";
247 const char kPort
[] = "Port";
248 const char kProto
[] = "Proto";
249 const char kPushPeerInfo
[] = "PushPeerInfo";
250 const char kRemoteCertEKU
[] = "RemoteCertEKU";
251 const char kRemoteCertKU
[] = "RemoteCertKU";
252 const char kRemoteCertTLS
[] = "RemoteCertTLS";
253 const char kRenegSec
[] = "RenegSec";
254 const char kServerCARef
[] = "ServerCARef";
255 const char kServerCAPEMs
[] = "ServerCAPEMs";
256 const char kServerCertPEM
[] = "ServerCertPEM";
257 const char kServerCertRef
[] = "ServerCertRef";
258 const char kServerPollTimeout
[] = "ServerPollTimeout";
259 const char kServer
[] = "server";
260 const char kShaper
[] = "Shaper";
261 const char kStaticChallenge
[] = "StaticChallenge";
262 const char kTLSAuthContents
[] = "TLSAuthContents";
263 const char kTLSRemote
[] = "TLSRemote";
264 const char kVerb
[] = "Verb";
265 } // namespace openvpn
268 const char kDirect
[] = "Direct";
269 const char kExcludeDomains
[] = "ExcludeDomains";
270 const char kFtp
[] = "FTPProxy";
271 const char kHost
[] = "Host";
272 const char kHttp
[] = "HTTPProxy";
273 const char kHttps
[] = "SecureHTTPProxy";
274 const char kManual
[] = "Manual";
275 const char kPAC
[] = "PAC";
276 const char kPort
[] = "Port";
277 const char kSocks
[] = "SOCKS";
278 const char kType
[] = "Type";
279 const char kWPAD
[] = "WPAD";
282 namespace substitutes
{
283 const char kLoginIDField
[] = "${LOGIN_ID}";
284 const char kEmailField
[] = "${LOGIN_EMAIL}";
285 } // namespace substitutes
289 } // namespace chromeos