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. 4 5 #include "chromeos/network/onc/onc_constants.h" 6 7 namespace chromeos { 8 9 // Constants for ONC properties. 10 namespace onc { 11 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"; 21 22 // Common keys/values. 23 const char kRecommended[] = "Recommended"; 24 const char kRemove[] = "Remove"; 25 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 34 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 51 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 59 60 namespace cellular { 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 93 94 namespace connection_state { 95 const char kConnected[] = "Connected"; 96 const char kConnecting[] = "Connecting"; 97 const char kNotConnected[] = "NotConnected"; 98 } // namespace connection_state 99 100 namespace ethernet { 101 const char kAuthentication[] = "Authentication"; 102 const char kEAP[] = "EAP"; 103 const char kNone[] = "None"; 104 const char k8021X[] = "8021X"; 105 } // namespace ethernet 106 107 namespace ipconfig { 108 const char kGateway[] = "Gateway"; 109 const char kIPAddress[] = "IPAddress"; 110 const char kIPv4[] = "IPv4"; 111 const char kIPv6[] = "IPv6"; 112 const char kRoutingPrefix[] = "RoutingPrefix"; 113 const char kType[] = "Type"; 114 } // namespace ipconfig 115 116 namespace wifi { 117 const char kAutoConnect[] = "AutoConnect"; 118 const char kBSSID[] = "BSSID"; 119 const char kEAP[] = "EAP"; 120 const char kFrequency[] = "Frequency"; 121 const char kFrequencyList[] = "FrequencyList"; 122 const char kHiddenSSID[] = "HiddenSSID"; 123 const char kNone[] = "None"; 124 const char kPassphrase[] = "Passphrase"; 125 const char kProxyURL[] = "ProxyURL"; 126 const char kSSID[] = "SSID"; 127 const char kSecurity[] = "Security"; 128 const char kSignalStrength[] = "SignalStrength"; 129 const char kWEP_8021X[] = "WEP-8021X"; 130 const char kWEP_PSK[] = "WEP-PSK"; 131 const char kWPA_EAP[] = "WPA-EAP"; 132 const char kWPA_PSK[] = "WPA-PSK"; 133 } // namespace wifi 134 135 namespace certificate { 136 const char kAuthority[] = "Authority"; 137 const char kClient[] = "Client"; 138 const char kCommonName[] = "CommonName"; 139 const char kEmailAddress[] = "EmailAddress"; 140 const char kEnrollmentURI[] = "EnrollmentURI"; 141 const char kGUID[] = "GUID"; 142 const char kIssuerCARef[] = "IssuerCARef"; 143 const char kIssuerCAPEMs[] = "IssuerCAPEMs"; 144 const char kIssuer[] = "Issuer"; 145 const char kLocality[] = "Locality"; 146 const char kNone[] = "None"; 147 const char kOrganization[] = "Organization"; 148 const char kOrganizationalUnit[] = "OrganizationalUnit"; 149 const char kPKCS12[] = "PKCS12"; 150 const char kPattern[] = "Pattern"; 151 const char kRef[] = "Ref"; 152 const char kServer[] = "Server"; 153 const char kSubject[] = "Subject"; 154 const char kTrustBits[] = "TrustBits"; 155 const char kType[] = "Type"; 156 const char kWeb[] = "Web"; 157 const char kX509[] = "X509"; 158 } // namespace certificate 159 160 namespace encrypted { 161 const char kAES256[] = "AES256"; 162 const char kCipher[] = "Cipher"; 163 const char kCiphertext[] = "Ciphertext"; 164 const char kHMACMethod[] = "HMACMethod"; 165 const char kHMAC[] = "HMAC"; 166 const char kIV[] = "IV"; 167 const char kIterations[] = "Iterations"; 168 const char kPBKDF2[] = "PBKDF2"; 169 const char kSHA1[] = "SHA1"; 170 const char kSalt[] = "Salt"; 171 const char kStretch[] = "Stretch"; 172 const char kType[] = "Type"; 173 } // namespace encrypted 174 175 namespace eap { 176 const char kAnonymousIdentity[] = "AnonymousIdentity"; 177 const char kAutomatic[] = "Automatic"; 178 const char kClientCertPattern[] = "ClientCertPattern"; 179 const char kClientCertRef[] = "ClientCertRef"; 180 const char kClientCertType[] = "ClientCertType"; 181 const char kEAP_AKA[] = "EAP-AKA"; 182 const char kEAP_FAST[] = "EAP-FAST"; 183 const char kEAP_SIM[] = "EAP-SIM"; 184 const char kEAP_TLS[] = "EAP-TLS"; 185 const char kEAP_TTLS[] = "EAP-TTLS"; 186 const char kIdentity[] = "Identity"; 187 const char kInner[] = "Inner"; 188 const char kLEAP[] = "LEAP"; 189 const char kMD5[] = "MD5"; 190 const char kMSCHAPv2[] = "MSCHAPv2"; 191 const char kOuter[] = "Outer"; 192 const char kPAP[] = "PAP"; 193 const char kPEAP[] = "PEAP"; 194 const char kPassword[] = "Password"; 195 const char kSaveCredentials[] = "SaveCredentials"; 196 const char kServerCAPEMs[] = "ServerCAPEMs"; 197 const char kServerCARef[] = "ServerCARef"; 198 const char kUseSystemCAs[] = "UseSystemCAs"; 199 } // namespace eap 200 201 namespace vpn { 202 const char kAutoConnect[] = "AutoConnect"; 203 const char kClientCertPattern[] = "ClientCertPattern"; 204 const char kClientCertRef[] = "ClientCertRef"; 205 const char kClientCertType[] = "ClientCertType"; 206 const char kHost[] = "Host"; 207 const char kIPsec[] = "IPsec"; 208 const char kL2TP[] = "L2TP"; 209 const char kOpenVPN[] = "OpenVPN"; 210 const char kPassword[] = "Password"; 211 const char kSaveCredentials[] = "SaveCredentials"; 212 const char kTypeL2TP_IPsec[] = "L2TP-IPsec"; 213 const char kType[] = "Type"; 214 const char kUsername[] = "Username"; 215 } // namespace vpn 216 217 namespace ipsec { 218 const char kAuthenticationType[] = "AuthenticationType"; 219 const char kCert[] = "Cert"; 220 const char kEAP[] = "EAP"; 221 const char kGroup[] = "Group"; 222 const char kIKEVersion[] = "IKEVersion"; 223 const char kPSK[] = "PSK"; 224 const char kServerCARef[] = "ServerCARef"; 225 const char kServerCAPEMs[] = "ServerCAPEMs"; 226 const char kXAUTH[] = "XAUTH"; 227 } // namespace ipsec 228 229 namespace openvpn { 230 const char kAuthNoCache[] = "AuthNoCache"; 231 const char kAuthRetry[] = "AuthRetry"; 232 const char kAuth[] = "Auth"; 233 const char kCipher[] = "Cipher"; 234 const char kCompLZO[] = "CompLZO"; 235 const char kCompNoAdapt[] = "CompNoAdapt"; 236 const char kInteract[] = "interact"; 237 const char kKeyDirection[] = "KeyDirection"; 238 const char kNoInteract[] = "nointeract"; 239 const char kNone[] = "none"; 240 const char kNsCertType[] = "NsCertType"; 241 const char kPort[] = "Port"; 242 const char kProto[] = "Proto"; 243 const char kPushPeerInfo[] = "PushPeerInfo"; 244 const char kRemoteCertEKU[] = "RemoteCertEKU"; 245 const char kRemoteCertKU[] = "RemoteCertKU"; 246 const char kRemoteCertTLS[] = "RemoteCertTLS"; 247 const char kRenegSec[] = "RenegSec"; 248 const char kServerCARef[] = "ServerCARef"; 249 const char kServerCAPEMs[] = "ServerCAPEMs"; 250 const char kServerCertPEM[] = "ServerCertPEM"; 251 const char kServerCertRef[] = "ServerCertRef"; 252 const char kServerPollTimeout[] = "ServerPollTimeout"; 253 const char kServer[] = "server"; 254 const char kShaper[] = "Shaper"; 255 const char kStaticChallenge[] = "StaticChallenge"; 256 const char kTLSAuthContents[] = "TLSAuthContents"; 257 const char kTLSRemote[] = "TLSRemote"; 258 const char kVerb[] = "Verb"; 259 } // namespace openvpn 260 261 namespace proxy { 262 const char kDirect[] = "Direct"; 263 const char kExcludeDomains[] = "ExcludeDomains"; 264 const char kFtp[] = "FTPProxy"; 265 const char kHost[] = "Host"; 266 const char kHttp[] = "HTTPProxy"; 267 const char kHttps[] = "SecureHTTPProxy"; 268 const char kManual[] = "Manual"; 269 const char kPAC[] = "PAC"; 270 const char kPort[] = "Port"; 271 const char kSocks[] = "SOCKS"; 272 const char kType[] = "Type"; 273 const char kWPAD[] = "WPAD"; 274 } // namespace proxy 275 276 namespace substitutes { 277 const char kLoginIDField[] = "${LOGIN_ID}"; 278 const char kEmailField[] = "${LOGIN_EMAIL}"; 279 } // namespace substitutes 280 281 } // namespace onc 282 283 } // namespace chromeos 284