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