Home | History | Annotate | Download | only in onc
      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 
      5 #include "components/onc/onc_constants.h"
      6 
      7 // Constants for ONC properties.
      8 namespace onc {
      9 
     10 const char kAugmentationActiveSetting[] = "Active";
     11 const char kAugmentationEffectiveSetting[] = "Effective";
     12 const char kAugmentationUnmanaged[] = "Unmanaged";
     13 const char kAugmentationUserPolicy[] = "UserPolicy";
     14 const char kAugmentationDevicePolicy[] = "DevicePolicy";
     15 const char kAugmentationUserSetting[] = "UserSetting";
     16 const char kAugmentationSharedSetting[] = "SharedSetting";
     17 const char kAugmentationUserEditable[] = "UserEditable";
     18 const char kAugmentationDeviceEditable[] = "DeviceEditable";
     19 
     20 // Common keys/values.
     21 const char kRecommended[] = "Recommended";
     22 const char kRemove[] = "Remove";
     23 
     24 // Top Level Configuration
     25 namespace toplevel_config {
     26 const char kCertificates[] = "Certificates";
     27 const char kEncryptedConfiguration[] = "EncryptedConfiguration";
     28 const char kNetworkConfigurations[] = "NetworkConfigurations";
     29 const char kGlobalNetworkConfiguration[] = "GlobalNetworkConfiguration";
     30 const char kType[] = "Type";
     31 const char kUnencryptedConfiguration[] = "UnencryptedConfiguration";
     32 }  // namespace toplevel_config
     33 
     34 // Network Configuration
     35 namespace network_config {
     36 const char kCellular[] = "Cellular";
     37 const char kEthernet[] = "Ethernet";
     38 const char kGUID[] = "GUID";
     39 const char kIPConfigs[] = "IPConfigs";
     40 const char kName[] = "Name";
     41 const char kNameServers[] = "NameServers";
     42 const char kProxySettings[] = "ProxySettings";
     43 const char kSearchDomains[] = "SearchDomains";
     44 const char kServicePath[] = "ServicePath";
     45 const char kConnectionState[] = "ConnectionState";
     46 const char kType[] = "Type";
     47 const char kVPN[] = "VPN";
     48 const char kWiFi[] = "WiFi";
     49 }  // namespace network_config
     50 
     51 namespace network_type {
     52 const char kAllTypes[] = "All";
     53 const char kCellular[] = "Cellular";
     54 const char kEthernet[] = "Ethernet";
     55 const char kVPN[] = "VPN";
     56 const char kWiFi[] = "WiFi";
     57 }  // namespace network_type
     58 
     59 namespace cellular {
     60 const char kActivateOverNonCellularNetwork[] = "ActivateOverNonCellularNetwork";
     61 const char kActivationState[] = "ActivationState";
     62 const char kAllowRoaming[] = "AllowRoaming";
     63 const char kAPN[] = "APN";
     64 const char kAPNList[] = "APNList";
     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 kPRLVersion[] = "PRLVersion";
     82 const char kProviderRequiresRoaming[] = "ProviderRequiresRoaming";
     83 const char kRoamingState[] = "RoamingState";
     84 const char kSelectedNetwork[] = "SelectedNetwork";
     85 const char kServingOperator[] = "ServingOperator";
     86 const char kSIMLockStatus[] = "SIMLockStatus";
     87 const char kSIMPresent[] = "SIMPresent";
     88 const char kSupportedCarriers[] = "SupportedCarriers";
     89 const char kSupportNetworkScan[] = "SupportNetworkScan";
     90 }  // namespace cellular
     91 
     92 namespace cellular_provider {
     93 const char kCode[] = "Code";
     94 const char kCountry[] = "Country";
     95 const char kName[] = "Name";
     96 }  // namespace cellular_provider
     97 
     98 namespace cellular_apn {
     99 const char kName[] = "Name";
    100 const char kUsername[] = "Username";
    101 const char kPassword[] = "Password";
    102 }  // namespace cellular_apn
    103 
    104 namespace connection_state {
    105 const char kConnected[] = "Connected";
    106 const char kConnecting[] = "Connecting";
    107 const char kNotConnected[] = "NotConnected";
    108 }  // namespace connection_state
    109 
    110 namespace ethernet {
    111 const char kAuthentication[] = "Authentication";
    112 const char kEAP[] = "EAP";
    113 const char kNone[] = "None";
    114 const char k8021X[] = "8021X";
    115 }  // namespace ethernet
    116 
    117 namespace ipconfig {
    118 const char kGateway[] = "Gateway";
    119 const char kIPAddress[] = "IPAddress";
    120 const char kIPv4[] = "IPv4";
    121 const char kIPv6[] = "IPv6";
    122 const char kRoutingPrefix[] = "RoutingPrefix";
    123 const char kType[] = "Type";
    124 }  // namespace ipconfig
    125 
    126 namespace wifi {
    127 const char kAutoConnect[] = "AutoConnect";
    128 const char kBSSID[] = "BSSID";
    129 const char kEAP[] = "EAP";
    130 const char kFrequency[] = "Frequency";
    131 const char kFrequencyList[] = "FrequencyList";
    132 const char kHiddenSSID[] = "HiddenSSID";
    133 const char kNone[] = "None";
    134 const char kPassphrase[] = "Passphrase";
    135 const char kProxyURL[] = "ProxyURL";
    136 const char kSSID[] = "SSID";
    137 const char kSecurity[] = "Security";
    138 const char kSignalStrength[] = "SignalStrength";
    139 const char kWEP_8021X[] = "WEP-8021X";
    140 const char kWEP_PSK[] = "WEP-PSK";
    141 const char kWPA_EAP[] = "WPA-EAP";
    142 const char kWPA_PSK[] = "WPA-PSK";
    143 const char kWPA2_PSK[] = "WPA2-PSK";
    144 }  // namespace wifi
    145 
    146 namespace certificate {
    147 const char kAuthority[] = "Authority";
    148 const char kClient[] = "Client";
    149 const char kCommonName[] = "CommonName";
    150 const char kEmailAddress[] = "EmailAddress";
    151 const char kEnrollmentURI[] = "EnrollmentURI";
    152 const char kGUID[] = "GUID";
    153 const char kIssuerCARef[] = "IssuerCARef";
    154 const char kIssuerCAPEMs[] = "IssuerCAPEMs";
    155 const char kIssuer[] = "Issuer";
    156 const char kLocality[] = "Locality";
    157 const char kNone[] = "None";
    158 const char kOrganization[] = "Organization";
    159 const char kOrganizationalUnit[] = "OrganizationalUnit";
    160 const char kPKCS12[] = "PKCS12";
    161 const char kPattern[] = "Pattern";
    162 const char kRef[] = "Ref";
    163 const char kServer[] = "Server";
    164 const char kSubject[] = "Subject";
    165 const char kTrustBits[] = "TrustBits";
    166 const char kType[] = "Type";
    167 const char kWeb[] = "Web";
    168 const char kX509[] = "X509";
    169 }  // namespace certificate
    170 
    171 namespace encrypted {
    172 const char kAES256[] = "AES256";
    173 const char kCipher[] = "Cipher";
    174 const char kCiphertext[] = "Ciphertext";
    175 const char kHMACMethod[] = "HMACMethod";
    176 const char kHMAC[] = "HMAC";
    177 const char kIV[] = "IV";
    178 const char kIterations[] = "Iterations";
    179 const char kPBKDF2[] = "PBKDF2";
    180 const char kSHA1[] = "SHA1";
    181 const char kSalt[] = "Salt";
    182 const char kStretch[] = "Stretch";
    183 }  // namespace encrypted
    184 
    185 namespace eap {
    186 const char kAnonymousIdentity[] = "AnonymousIdentity";
    187 const char kAutomatic[] = "Automatic";
    188 const char kClientCertPattern[] = "ClientCertPattern";
    189 const char kClientCertRef[] = "ClientCertRef";
    190 const char kClientCertType[] = "ClientCertType";
    191 const char kEAP_AKA[] = "EAP-AKA";
    192 const char kEAP_FAST[] = "EAP-FAST";
    193 const char kEAP_SIM[] = "EAP-SIM";
    194 const char kEAP_TLS[] = "EAP-TLS";
    195 const char kEAP_TTLS[] = "EAP-TTLS";
    196 const char kIdentity[] = "Identity";
    197 const char kInner[] = "Inner";
    198 const char kLEAP[] = "LEAP";
    199 const char kMD5[] = "MD5";
    200 const char kMSCHAPv2[] = "MSCHAPv2";
    201 const char kOuter[] = "Outer";
    202 const char kPAP[] = "PAP";
    203 const char kPEAP[] = "PEAP";
    204 const char kPassword[] = "Password";
    205 const char kSaveCredentials[] = "SaveCredentials";
    206 const char kServerCAPEMs[] = "ServerCAPEMs";
    207 const char kServerCARef[] = "ServerCARef";
    208 const char kServerCARefs[] = "ServerCARefs";
    209 const char kUseSystemCAs[] = "UseSystemCAs";
    210 }  // namespace eap
    211 
    212 namespace vpn {
    213 const char kAutoConnect[] = "AutoConnect";
    214 const char kClientCertPattern[] = "ClientCertPattern";
    215 const char kClientCertRef[] = "ClientCertRef";
    216 const char kClientCertType[] = "ClientCertType";
    217 const char kHost[] = "Host";
    218 const char kIPsec[] = "IPsec";
    219 const char kL2TP[] = "L2TP";
    220 const char kOpenVPN[] = "OpenVPN";
    221 const char kPassword[] = "Password";
    222 const char kSaveCredentials[] = "SaveCredentials";
    223 const char kTypeL2TP_IPsec[] = "L2TP-IPsec";
    224 const char kType[] = "Type";
    225 const char kUsername[] = "Username";
    226 }  // namespace vpn
    227 
    228 namespace ipsec {
    229 const char kAuthenticationType[] = "AuthenticationType";
    230 const char kCert[] = "Cert";
    231 const char kEAP[] = "EAP";
    232 const char kGroup[] = "Group";
    233 const char kIKEVersion[] = "IKEVersion";
    234 const char kPSK[] = "PSK";
    235 const char kServerCAPEMs[] = "ServerCAPEMs";
    236 const char kServerCARef[] = "ServerCARef";
    237 const char kServerCARefs[] = "ServerCARefs";
    238 const char kXAUTH[] = "XAUTH";
    239 }  // namespace ipsec
    240 
    241 namespace openvpn {
    242 const char kAuthNoCache[] = "AuthNoCache";
    243 const char kAuthRetry[] = "AuthRetry";
    244 const char kAuth[] = "Auth";
    245 const char kCipher[] = "Cipher";
    246 const char kCompLZO[] = "CompLZO";
    247 const char kCompNoAdapt[] = "CompNoAdapt";
    248 const char kInteract[] = "interact";
    249 const char kKeyDirection[] = "KeyDirection";
    250 const char kNoInteract[] = "nointeract";
    251 const char kNone[] = "none";
    252 const char kNsCertType[] = "NsCertType";
    253 const char kPort[] = "Port";
    254 const char kProto[] = "Proto";
    255 const char kPushPeerInfo[] = "PushPeerInfo";
    256 const char kRemoteCertEKU[] = "RemoteCertEKU";
    257 const char kRemoteCertKU[] = "RemoteCertKU";
    258 const char kRemoteCertTLS[] = "RemoteCertTLS";
    259 const char kRenegSec[] = "RenegSec";
    260 const char kServerCAPEMs[] = "ServerCAPEMs";
    261 const char kServerCARef[] = "ServerCARef";
    262 const char kServerCARefs[] = "ServerCARefs";
    263 const char kServerCertPEM[] = "ServerCertPEM";
    264 const char kServerCertRef[] = "ServerCertRef";
    265 const char kServerPollTimeout[] = "ServerPollTimeout";
    266 const char kServer[] = "server";
    267 const char kShaper[] = "Shaper";
    268 const char kStaticChallenge[] = "StaticChallenge";
    269 const char kTLSAuthContents[] = "TLSAuthContents";
    270 const char kTLSRemote[] = "TLSRemote";
    271 const char kVerb[] = "Verb";
    272 const char kVerifyHash[] = "VerifyHash";
    273 const char kVerifyX509[] = "VerifyX509";
    274 }  // namespace openvpn
    275 
    276 namespace verify_x509 {
    277 const char kName[] = "Name";
    278 const char kType[] = "Type";
    279 
    280 namespace types {
    281 const char kName[] = "name";
    282 const char kNamePrefix[] = "name-prefix";
    283 const char kSubject[] = "subject";
    284 }  // namespace types
    285 }  // namespace verify_x509
    286 
    287 namespace proxy {
    288 const char kDirect[] = "Direct";
    289 const char kExcludeDomains[] = "ExcludeDomains";
    290 const char kFtp[] = "FTPProxy";
    291 const char kHost[] = "Host";
    292 const char kHttp[] = "HTTPProxy";
    293 const char kHttps[] = "SecureHTTPProxy";
    294 const char kManual[] = "Manual";
    295 const char kPAC[] = "PAC";
    296 const char kPort[] = "Port";
    297 const char kSocks[] = "SOCKS";
    298 const char kType[] = "Type";
    299 const char kWPAD[] = "WPAD";
    300 }  // namespace proxy
    301 
    302 namespace substitutes {
    303 const char kLoginIDField[] = "${LOGIN_ID}";
    304 const char kEmailField[] = "${LOGIN_EMAIL}";
    305 }  // namespace substitutes
    306 
    307 namespace global_network_config {
    308 const char kAllowOnlyPolicyNetworksToAutoconnect[] =
    309     "AllowOnlyPolicyNetworksToAutoconnect";
    310 }  // global_network_config
    311 
    312 }  // namespace onc
    313 
    314