| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/cros/onc_constants.h" | 5 #include "chrome/browser/chromeos/cros/onc_constants.h" |
| 6 | 6 |
| 7 namespace chromeos { | 7 namespace chromeos { |
| 8 | 8 |
| 9 // Constants for ONC properties. | 9 // Constants for ONC properties. |
| 10 namespace onc { | 10 namespace onc { |
| 11 | 11 |
| 12 // Top Level ONC |
| 13 const char kCertificates[] = "Certificates"; |
| 14 const char kNetworkConfigurations[] = "NetworkConfigurations"; |
| 15 |
| 16 const char kNetworkConfiguration[] = "NetworkConfiguration"; |
| 17 |
| 18 // Common keys/values. |
| 19 const char kRecommended[] = "Recommended"; |
| 20 const char kRemove[] = "Remove"; |
| 21 |
| 22 // Network Configuration |
| 23 const char kCellular[] = "Cellular"; |
| 12 const char kEthernet[] = "Ethernet"; | 24 const char kEthernet[] = "Ethernet"; |
| 13 const char kGUID[] = "GUID"; | 25 const char kGUID[] = "GUID"; |
| 26 const char kIPConfigs[] = "IPConfigs"; |
| 14 const char kName[] = "Name"; | 27 const char kName[] = "Name"; |
| 15 const char kNetworkConfiguration[] = "NetworkConfiguration"; | 28 const char kNameServers[] = "NameServers"; |
| 16 const char kProxySettings[] = "ProxySettings"; | 29 const char kProxySettings[] = "ProxySettings"; |
| 17 const char kRecommended[] = "Recommended"; | 30 const char kSearchDomains[] = "SearchDomains"; |
| 18 const char kRemove[] = "Remove"; | |
| 19 const char kType[] = "Type"; | 31 const char kType[] = "Type"; |
| 20 const char kVPN[] = "VPN"; | 32 const char kVPN[] = "VPN"; |
| 21 const char kWiFi[] = "WiFi"; | 33 const char kWiFi[] = "WiFi"; |
| 22 | 34 |
| 23 namespace ethernet { | 35 namespace ethernet { |
| 24 const char kAuthentication[] = "Authentication"; | 36 const char kAuthentication[] = "Authentication"; |
| 25 const char kEAP[] = "EAP"; | 37 const char kEAP[] = "EAP"; |
| 38 const char kNone[] = "None"; |
| 39 const char k8021X[] = "8021X"; |
| 26 } // namespace ethernet | 40 } // namespace ethernet |
| 27 | 41 |
| 42 namespace ipconfig { |
| 43 const char kGateway[] = "Gateway"; |
| 44 const char kIPAddress[] = "IPAddress"; |
| 45 const char kIPv4[] = "IPv4"; |
| 46 const char kIPv6[] = "IPv6"; |
| 47 const char kRoutingPrefix[] = "RoutingPrefix"; |
| 48 const char kType[] = "Type"; |
| 49 } // namespace ipconfig |
| 50 |
| 28 namespace wifi { | 51 namespace wifi { |
| 29 const char kAutoConnect[] = "AutoConnect"; | 52 const char kAutoConnect[] = "AutoConnect"; |
| 30 const char kEAP[] = "EAP"; | 53 const char kEAP[] = "EAP"; |
| 31 const char kHiddenSSID[] = "HiddenSSID"; | 54 const char kHiddenSSID[] = "HiddenSSID"; |
| 55 const char kNone[] = "None"; |
| 32 const char kPassphrase[] = "Passphrase"; | 56 const char kPassphrase[] = "Passphrase"; |
| 33 const char kProxyURL[] = "ProxyURL"; | 57 const char kProxyURL[] = "ProxyURL"; |
| 34 const char kSSID[] = "SSID"; | 58 const char kSSID[] = "SSID"; |
| 35 const char kSecurity[] = "Security"; | 59 const char kSecurity[] = "Security"; |
| 60 const char kWEP_PSK[] = "WEP-PSK"; |
| 61 const char kWEP_8021X[] = "WEP-8021X"; |
| 62 const char kWPA_PSK[] = "WPA-PSK"; |
| 63 const char kWPA_EAP[] = "WPA-EAP"; |
| 36 } // namespace wifi | 64 } // namespace wifi |
| 37 | 65 |
| 38 namespace certificate { | 66 namespace certificate { |
| 67 const char kAuthority[] = "Authority"; |
| 68 const char kClient[] = "Client"; |
| 39 const char kCommonName[] = "CommonName"; | 69 const char kCommonName[] = "CommonName"; |
| 40 const char kEmailAddress[] = "EmailAddress"; | 70 const char kEmailAddress[] = "EmailAddress"; |
| 41 const char kEnrollmentURI[] = "EnrollmentURI"; | 71 const char kEnrollmentURI[] = "EnrollmentURI"; |
| 72 const char kIssuerCARef[] = "IssuerCARef"; |
| 42 const char kIssuer[] = "Issuer"; | 73 const char kIssuer[] = "Issuer"; |
| 43 const char kIssuerCARef[] = "IssuerCARef"; | |
| 44 const char kLocality[] = "Locality"; | 74 const char kLocality[] = "Locality"; |
| 45 const char kNone[] = "None"; | 75 const char kNone[] = "None"; |
| 46 const char kOrganization[] = "Organization"; | 76 const char kOrganization[] = "Organization"; |
| 47 const char kOrganizationalUnit[] = "OrganizationalUnit"; | 77 const char kOrganizationalUnit[] = "OrganizationalUnit"; |
| 78 const char kPKCS12[] = "PKCS12"; |
| 48 const char kPattern[] = "Pattern"; | 79 const char kPattern[] = "Pattern"; |
| 49 const char kRef[] = "Ref"; | 80 const char kRef[] = "Ref"; |
| 81 const char kServer[] = "Server"; |
| 50 const char kSubject[] = "Subject"; | 82 const char kSubject[] = "Subject"; |
| 83 const char kTrust[] = "Trust"; |
| 84 const char kType[] = "Type"; |
| 85 const char kX509[] = "X509"; |
| 51 } // namespace certificate | 86 } // namespace certificate |
| 52 | 87 |
| 53 namespace eap { | 88 namespace eap { |
| 54 const char kAnonymousIdentity[] = "AnonymousIdentity"; | 89 const char kAnonymousIdentity[] = "AnonymousIdentity"; |
| 90 const char kAutomatic[] = "Automatic"; |
| 55 const char kClientCertPattern[] = "ClientCertPattern"; | 91 const char kClientCertPattern[] = "ClientCertPattern"; |
| 56 const char kClientCertRef[] = "ClientCertRef"; | 92 const char kClientCertRef[] = "ClientCertRef"; |
| 57 const char kClientCertType[] = "ClientCertType"; | 93 const char kClientCertType[] = "ClientCertType"; |
| 94 const char kEAP_AKA[] = "EAP-AKA"; |
| 95 const char kEAP_FAST[] = "EAP-FAST"; |
| 96 const char kEAP_SIM[] = "EAP-SIM"; |
| 97 const char kEAP_TLS[] = "EAP-TLS"; |
| 98 const char kEAP_TTLS[] = "EAP-TTLS"; |
| 58 const char kIdentity[] = "Identity"; | 99 const char kIdentity[] = "Identity"; |
| 59 const char kInner[] = "Inner"; | 100 const char kInner[] = "Inner"; |
| 101 const char kLEAP[] = "LEAP"; |
| 102 const char kMD5[] = "MD5"; |
| 103 const char kMSCHAPv2[] = "MSCHAPv2"; |
| 60 const char kOuter[] = "Outer"; | 104 const char kOuter[] = "Outer"; |
| 105 const char kPAP[] = "PAP"; |
| 106 const char kPEAP[] = "PEAP"; |
| 61 const char kPassword[] = "Password"; | 107 const char kPassword[] = "Password"; |
| 62 const char kSaveCredentials[] = "SaveCredentials"; | 108 const char kSaveCredentials[] = "SaveCredentials"; |
| 63 const char kServerCARef[] = "ServerCARef"; | 109 const char kServerCARef[] = "ServerCARef"; |
| 64 const char kUseSystemCAs[] = "UseSystemCAs"; | 110 const char kUseSystemCAs[] = "UseSystemCAs"; |
| 65 } // namespace eap | 111 } // namespace eap |
| 66 | 112 |
| 67 namespace vpn { | 113 namespace vpn { |
| 68 const char kAuthNoCache[] = "AuthNoCache"; | 114 const char kAuthNoCache[] = "AuthNoCache"; |
| 69 const char kAuthRetry[] = "AuthRetry"; | 115 const char kAuthRetry[] = "AuthRetry"; |
| 70 const char kAuth[] = "Auth"; | 116 const char kAuth[] = "Auth"; |
| 71 const char kAuthenticationType[] = "AuthenticationType"; | 117 const char kAuthenticationType[] = "AuthenticationType"; |
| 118 const char kCert[] = "Cert"; |
| 72 const char kCipher[] = "Cipher"; | 119 const char kCipher[] = "Cipher"; |
| 73 const char kClientCertPattern[] = "ClientCertPattern"; | 120 const char kClientCertPattern[] = "ClientCertPattern"; |
| 74 const char kClientCertRef[] = "ClientCertRef"; | 121 const char kClientCertRef[] = "ClientCertRef"; |
| 75 const char kClientCertType[] = "ClientCertType"; | 122 const char kClientCertType[] = "ClientCertType"; |
| 76 const char kCompLZO[] = "CompLZO"; | 123 const char kCompLZO[] = "CompLZO"; |
| 77 const char kCompNoAdapt[] = "CompNoAdapt"; | 124 const char kCompNoAdapt[] = "CompNoAdapt"; |
| 125 const char kEAP[] = "EAP"; |
| 78 const char kGroup[] = "Group"; | 126 const char kGroup[] = "Group"; |
| 79 const char kHost[] = "Host"; | 127 const char kHost[] = "Host"; |
| 80 const char kIKEVersion[] = "IKEVersion"; | 128 const char kIKEVersion[] = "IKEVersion"; |
| 81 const char kIPsec[] = "IPsec"; | 129 const char kIPsec[] = "IPsec"; |
| 82 const char kKeyDirection[] = "KeyDirection"; | 130 const char kKeyDirection[] = "KeyDirection"; |
| 83 const char kL2TP[] = "L2TP"; | 131 const char kL2TP[] = "L2TP"; |
| 84 const char kNsCertType[] = "NsCertType"; | 132 const char kNsCertType[] = "NsCertType"; |
| 85 const char kOpenVPN[] = "OpenVPN"; | 133 const char kOpenVPN[] = "OpenVPN"; |
| 86 const char kPSK[] = "PSK"; | 134 const char kPSK[] = "PSK"; |
| 87 const char kPassword[] = "Password"; | 135 const char kPassword[] = "Password"; |
| 88 const char kPort[] = "Port"; | 136 const char kPort[] = "Port"; |
| 89 const char kProto[] = "Proto"; | 137 const char kProto[] = "Proto"; |
| 90 const char kPushPeerInfo[] = "PushPeerInfo"; | 138 const char kPushPeerInfo[] = "PushPeerInfo"; |
| 91 const char kRemoteCertEKU[] = "RemoteCertEKU"; | 139 const char kRemoteCertEKU[] = "RemoteCertEKU"; |
| 92 const char kRemoteCertKU[] = "RemoteCertKU"; | 140 const char kRemoteCertKU[] = "RemoteCertKU"; |
| 93 const char kRemoteCertTLS[] = "RemoteCertTLS"; | 141 const char kRemoteCertTLS[] = "RemoteCertTLS"; |
| 94 const char kRenegSec[] = "RenegSec"; | 142 const char kRenegSec[] = "RenegSec"; |
| 95 const char kSaveCredentials[] = "SaveCredentials"; | 143 const char kSaveCredentials[] = "SaveCredentials"; |
| 96 const char kServerCARef[] = "ServerCARef"; | 144 const char kServerCARef[] = "ServerCARef"; |
| 97 const char kServerCertRef[] = "ServerCertRef"; | 145 const char kServerCertRef[] = "ServerCertRef"; |
| 98 const char kServerPollTimeout[] = "ServerPollTimeout"; | 146 const char kServerPollTimeout[] = "ServerPollTimeout"; |
| 99 const char kShaper[] = "Shaper"; | 147 const char kShaper[] = "Shaper"; |
| 100 const char kStaticChallenge[] = "StaticChallenge"; | 148 const char kStaticChallenge[] = "StaticChallenge"; |
| 101 const char kTLSAuthContents[] = "TLSAuthContents"; | 149 const char kTLSAuthContents[] = "TLSAuthContents"; |
| 102 const char kTLSRemote[] = "TLSRemote"; | 150 const char kTLSRemote[] = "TLSRemote"; |
| 151 const char kTypeL2TP_IPsec[] = "L2TP-IPsec"; |
| 103 const char kType[] = "Type"; | 152 const char kType[] = "Type"; |
| 104 const char kUsername[] = "Username"; | 153 const char kUsername[] = "Username"; |
| 154 const char kVerb[] = "Verb"; |
| 155 const char kXAUTH[] = "XAUTH"; |
| 105 } // namespace vpn | 156 } // namespace vpn |
| 106 | 157 |
| 158 namespace openvpn { |
| 159 const char kNone[] = "none"; |
| 160 const char kInteract[] = "interact"; |
| 161 const char kNoInteract[] = "nointeract"; |
| 162 const char kServer[] = "server"; |
| 163 } // namespace openvpn |
| 164 |
| 107 namespace proxy { | 165 namespace proxy { |
| 108 const char kDirect[] = "Direct"; | 166 const char kDirect[] = "Direct"; |
| 109 const char kExcludeDomains[] = "ExcludeDomains"; | 167 const char kExcludeDomains[] = "ExcludeDomains"; |
| 110 const char kFtp[] = "FTPProxy"; | 168 const char kFtp[] = "FTPProxy"; |
| 111 const char kHost[] = "Host"; | 169 const char kHost[] = "Host"; |
| 112 const char kHttp[] = "HTTPProxy"; | 170 const char kHttp[] = "HTTPProxy"; |
| 113 const char kHttps[] = "SecureHTTPProxy"; | 171 const char kHttps[] = "SecureHTTPProxy"; |
| 114 const char kManual[] = "Manual"; | 172 const char kManual[] = "Manual"; |
| 115 const char kPAC[] = "PAC"; | 173 const char kPAC[] = "PAC"; |
| 116 const char kPort[] = "Port"; | 174 const char kPort[] = "Port"; |
| 117 const char kSocks[] = "SOCKS"; | 175 const char kSocks[] = "SOCKS"; |
| 118 const char kType[] = "Type"; | 176 const char kType[] = "Type"; |
| 119 const char kWPAD[] = "WPAD"; | 177 const char kWPAD[] = "WPAD"; |
| 120 } // namespace proxy | 178 } // namespace proxy |
| 121 | 179 |
| 122 namespace substitutes { | 180 namespace substitutes { |
| 123 const char kLoginIDField[] = "${LOGIN_ID}"; | 181 const char kLoginIDField[] = "${LOGIN_ID}"; |
| 124 const char kEmailField[] = "${LOGIN_EMAIL}"; | 182 const char kEmailField[] = "${LOGIN_EMAIL}"; |
| 125 } // namespace substitutes | 183 } // namespace substitutes |
| 126 | 184 |
| 127 } // namespace onc | 185 } // namespace onc |
| 128 | 186 |
| 129 } // namespace chromeos | 187 } // namespace chromeos |
| OLD | NEW |